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",