chore: rename build.ts -> build-main.ts

This commit is contained in:
草鞋没号 2021-04-01 11:32:55 +08:00
parent 7d9e364b15
commit da565f8ef0
2 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@
"dev": "npm run dev:all",
"dev:all": "concurrently -n=vue,ele -c=green,blue \"npm run dev:vue\" \"npm run dev:ele\"",
"dev:vue": "vite",
"dev:ele": "node -r ts-node/register script/build --env=development --watch",
"dev:ele": "node -r ts-node/register script/build-main --env=development --watch",
"build:vue": "vite build",
"build:ele": "node -r ts-node/register script/build --env=production",
"build:ele": "node -r ts-node/register script/build-main --env=production",
"build": "rimraf dist && npm run build:vue && npm run build:ele && electron-builder"
},
"build": {

View File

@ -17,7 +17,7 @@ dotenv.config({ path: join(__dirname, '../.env') })
const argv = minimist(process.argv.slice(2))
const opt = options(argv.env)
const TAG = '[script/build.ts]'
const TAG = '[build-main.ts]'
const spinner = ora(`${TAG} Electron build...`)
if (argv.watch) {