更名为fite-app

master
yutent 2023-03-01 11:20:07 +08:00
parent e75cf01c62
commit a75bae921f
3 changed files with 10 additions and 10 deletions

View File

@ -34,7 +34,7 @@ const root = normalize(
dirname(import.meta.url.slice(process.platform === 'win32' ? 8 : 7)) dirname(import.meta.url.slice(process.platform === 'win32' ? 8 : 7))
) )
const DEFAULT_NAME = 'vue-live-app' const DEFAULT_NAME = 'fite-app'
let targetDir = '' let targetDir = ''
@ -59,7 +59,7 @@ function isEmpty(dir) {
function getVueLiveVersion() { function getVueLiveVersion() {
return new Promise(yes => { return new Promise(yes => {
request('https://registry.npmmirror.com/@bytedo/vue-live', res => { request('https://registry.npmmirror.com/fite', res => {
let data = '' let data = ''
res.on('data', chunk => (data += chunk)) res.on('data', chunk => (data += chunk))
res.on('end', _ => { res.on('end', _ => {
@ -67,7 +67,7 @@ function getVueLiveVersion() {
data = JSON.parse(data) data = JSON.parse(data)
yes(data['dist-tags'].latest) yes(data['dist-tags'].latest)
} catch (e) { } catch (e) {
yes('0.1.1') yes('0.3.1')
} }
}) })
}).end() }).end()

View File

@ -10,14 +10,14 @@ export function writePackageJson(file, name, version) {
fs.echo( fs.echo(
JSON.stringify( JSON.stringify(
{ {
name: name || 'vue-live-app', name: name || 'fite-app',
type: 'module', type: 'module',
scripts: { scripts: {
start: 'vue-live dev', start: 'fite dev',
build: 'vue-live build' build: 'fite build'
}, },
devDependencies: { devDependencies: {
'@bytedo/vue-live': `^${version}` fite: `^${version}`
} }
}, },
null, null,

View File

@ -1,9 +1,9 @@
{ {
"name": "create-vue-live", "name": "create-fite-app",
"type": "module", "type": "module",
"version": "1.0.5", "version": "1.0.0",
"bin": { "bin": {
"create-vue-live": "index.js" "create-fite-app": "index.js"
}, },
"dependencies": { "dependencies": {
"iofs": "^1.5.2", "iofs": "^1.5.2",