Skip to content

Commit b6650ef

Browse files
committed
update: package.json
1 parent cde3fb7 commit b6650ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

admin/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"build:stage": "vue-cli-service build --mode staging",
1111
"preview": "node build/index.js --preview",
1212
"lint": "eslint --ext .js,.vue src",
13+
"build": "vue-cli-service build && npm run move && npm run git",
14+
"move": "rm -rf ../laravel/public/static && cp -r dist/* ../laravel/public",
15+
"git": "git add ../laravel/public/static/* && git add ../laravel/public/index.html && git commit -m \"chore(view): 构建前端\"",
1316
"test:unit": "jest --clearCache && vue-cli-service test:unit",
1417
"test:ci": "npm run lint && npm run test:unit",
1518
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml"

0 commit comments

Comments
 (0)