浏览代码

!26 :wrench: 增加 scripts,用于处理安装依赖与镜像问题
Merge pull request !26 from 徐晓伟/main-pre

MaxKeyTop 1 年之前
父节点
当前提交
f72f0ce56f

+ 1 - 0
maxkey-web-frontend/maxkey-web-app/package.json

@@ -21,6 +21,7 @@
     "scaffold"
   ],
   "scripts": {
+    "npm:pre": "npm install --ignore-scripts --registry https://registry.npmmirror.com || npm install --ignore-scripts --registry https://registry.npmjs.org",
     "ng-high-memory": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng",
     "ng": "ng",
     "start": "ng s -o  --serve-path=/maxkey/ --port=8527",

+ 1 - 0
maxkey-web-frontend/maxkey-web-mgt-app/package.json

@@ -21,6 +21,7 @@
     "scaffold"
   ],
   "scripts": {
+    "npm:pre": "npm install --ignore-scripts --registry https://registry.npmmirror.com || npm install --ignore-scripts --registry https://registry.npmjs.org",
     "ng-high-memory": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng",
     "ng": "ng",
     "start": "ng s -o  --serve-path=/maxkey-mgt/ --port=8526",