소스 검색

:wrench: 增加 scripts,用于处理安装依赖与镜像问题
https://gitee.com/dromara/MaxKey/issues/I81133

徐晓伟 1 년 전
부모
커밋
81366ec259
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      maxkey-web-frontend/maxkey-web-app/package.json
  2. 1 0
      maxkey-web-frontend/maxkey-web-mgt-app/package.json

+ 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",