summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/package.json
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-08-22 16:55:57 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-08-22 16:56:09 +0800
commitd0f5347dc16b5aa9fc95eb520fbc9a1c7b672b09 (patch)
treeb3891d8de290d755d7f0f00d35bb77d3b89ad747 /usecaseui-portal/package.json
parent56923755c761897cc86ca2457667fcc3e6a0e43f (diff)
feat: change the project structure and add mock data function
Change-Id: I381845bff5eb37d1fab3eba8cf1ae7838df523b7 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/package.json')
-rw-r--r--usecaseui-portal/package.json9
1 files changed, 8 insertions, 1 deletions
diff --git a/usecaseui-portal/package.json b/usecaseui-portal/package.json
index 70035a3c..e85f2365 100644
--- a/usecaseui-portal/package.json
+++ b/usecaseui-portal/package.json
@@ -5,10 +5,14 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
+ "server": "ng serve --host='0.0.0.0' --proxy-config proxy.conf.json",
"build": "ng build --prod --aot",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
+ "mockproxy": "ng serve --host='0.0.0.0' --proxy-config localproxy.conf.json",
+ "mockconfig": "node ./src/app/mock/server.js --port 3004",
+ "mock": "npm run mockconfig & npm run mockproxy",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},
"private": true,
@@ -27,7 +31,9 @@
"core-js": "^2.4.1",
"d3": "^3.5.17",
"echarts": "^4.1.0",
- "jquery": "^3.3.1",
+ "faker": "^4.1.0",
+ "jquery": "^3.4.1",
+ "lodash": "^4.17.15",
"ng-zorro-antd": "^0.7.1",
"ngx-echarts": "^2.2.0",
"rxjs": "^5.5.6",
@@ -43,6 +49,7 @@
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
+ "json-server": "^0.15.0",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",