Commit d5142a3adfef02079c6c0d7f2f90646b4ad0b570

Authored by ly525
Committed by 小小鲁班
1 parent fa0ed9fa

fix: build engine if front-end build

front-end/h5/package.json
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 "scripts": { 5 "scripts": {
6 "dev": "vue-cli-service serve", 6 "dev": "vue-cli-service serve",
7 "serve": "vue-cli-service serve", 7 "serve": "vue-cli-service serve",
8 - "build": "npm run build:editor && npm run build:editor", 8 + "build": "npm run build:editor && npm run build:engine",
9 "lint": "vue-cli-service lint --fix", 9 "lint": "vue-cli-service lint --fix",
10 "deploy": "rm -rf dist && npm run build:editor && npm run build:engine && ./deploy.sh", 10 "deploy": "rm -rf dist && npm run build:editor && npm run build:engine && ./deploy.sh",
11 "test:e2e": "vue-cli-service test:e2e", 11 "test:e2e": "vue-cli-service test:e2e",
luban-h5.sh
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 # @Author: ly525 4 # @Author: ly525
5 # @Date: 2020-01-10 22:23:34 5 # @Date: 2020-01-10 22:23:34
6 # @LastEditors : ly525 6 # @LastEditors : ly525
7 - # @LastEditTime : 2020-01-11 09:11:36 7 + # @LastEditTime : 2020-01-11 09:37:40
8 # @FilePath: /luban-h5/luban-h5.sh 8 # @FilePath: /luban-h5/luban-h5.sh
9 # @Github: https://github.com/ly525/luban-h5 9 # @Github: https://github.com/ly525/luban-h5
10 # @Description: Do not edit 10 # @Description: Do not edit
@@ -54,7 +54,7 @@ luban_h5_init() { @@ -54,7 +54,7 @@ luban_h5_init() {
54 cd ${cur_dir} 54 cd ${cur_dir}
55 55
56 # 在后端目录,编译后台管理系统 56 # 在后端目录,编译后台管理系统
57 - cd back-end/h5-api && yarn && yarn build 57 + cd back-end/h5-api && yarn && NODE_ENV=production yarn build
58 cd ${cur_dir} 58 cd ${cur_dir}
59 } 59 }
60 60