From a75bae921f6f9e1d07c89f3259f5e1156cfd5c58 Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 1 Mar 2023 11:20:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E5=90=8D=E4=B8=BAfite-app?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 6 +++--- lib/demo-config.js | 8 ++++---- package.json | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index 8c178c7..8fe5b24 100755 --- a/index.js +++ b/index.js @@ -34,7 +34,7 @@ const root = normalize( dirname(import.meta.url.slice(process.platform === 'win32' ? 8 : 7)) ) -const DEFAULT_NAME = 'vue-live-app' +const DEFAULT_NAME = 'fite-app' let targetDir = '' @@ -59,7 +59,7 @@ function isEmpty(dir) { function getVueLiveVersion() { return new Promise(yes => { - request('https://registry.npmmirror.com/@bytedo/vue-live', res => { + request('https://registry.npmmirror.com/fite', res => { let data = '' res.on('data', chunk => (data += chunk)) res.on('end', _ => { @@ -67,7 +67,7 @@ function getVueLiveVersion() { data = JSON.parse(data) yes(data['dist-tags'].latest) } catch (e) { - yes('0.1.1') + yes('0.3.1') } }) }).end() diff --git a/lib/demo-config.js b/lib/demo-config.js index 07ef0e5..c1bbcfc 100644 --- a/lib/demo-config.js +++ b/lib/demo-config.js @@ -10,14 +10,14 @@ export function writePackageJson(file, name, version) { fs.echo( JSON.stringify( { - name: name || 'vue-live-app', + name: name || 'fite-app', type: 'module', scripts: { - start: 'vue-live dev', - build: 'vue-live build' + start: 'fite dev', + build: 'fite build' }, devDependencies: { - '@bytedo/vue-live': `^${version}` + fite: `^${version}` } }, null, diff --git a/package.json b/package.json index b9c7dba..c8b2eae 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "create-vue-live", + "name": "create-fite-app", "type": "module", - "version": "1.0.5", + "version": "1.0.0", "bin": { - "create-vue-live": "index.js" + "create-fite-app": "index.js" }, "dependencies": { "iofs": "^1.5.2",