更名为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))
)
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()

View File

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

View File

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