Commit 05d22b16 authored by 薛智杰's avatar 薛智杰

feat: 测试环境启动时补充 build:test

parent 25cbf1bc
......@@ -5,7 +5,7 @@
"scripts": {
"start": "cross-env NODE_ENV=production egg-scripts start --port 9052 --workers 1",
"start:pre": "cross-env NODE_ENV=production egg-scripts start --port 9052 --workers 1",
"test": "npm run tsc && cross-env NODE_ENV=production EGG_SERVER_ENV=sit egg-scripts start --port 80 --workers 1",
"test": "npm run tsc && npm run build:test && cross-env NODE_ENV=production EGG_SERVER_ENV=sit egg-scripts start --port 80 --workers 1",
"test2": "cross-env NODE_ENV=production EGG_SERVER_ENV=sit egg-scripts start --port 9000 --workers 1",
"stop": "egg-scripts stop",
"backend": "nohup egg-scripts start --port 7001 --workers 4",
......@@ -13,7 +13,7 @@
"debug": "egg-bin debug -r egg-ts-helper/register",
"apollo": "node bin/apollo.js",
"build": "npm run tsc && cross-env NODE_ENV=production APOLLO_CLUSTER=3C npm run apollo && cross-env COS_ENV=production easy build --devtool",
"build:test": "npm run tsc && cross-env NODE_ENV=test APOLLO_CLUSTER=k8s npm run apollo && cross-env NODE_ENV=production COS_ENV=production easy build --devtool",
"build:test": "cross-env NODE_ENV=test APOLLO_CLUSTER=k8s npm run apollo && cross-env NODE_ENV=production COS_ENV=production easy build --devtool",
"build:pre": "cross-env NODE_ENV=production APOLLO_CLUSTER=3PRE npm run apollo && cross-env COS_ENV=test easy build --devtool",
"tsc": "ets && tsc -p tsconfig.json",
"clean": "ets clean",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment