Răsfoiți Sursa

package: remove postinstall hook

qingwei.li 9 ani în urmă
părinte
comite
bd2a196c9d
2 a modificat fișierele cu 6 adăugiri și 3 ștergeri
  1. 4 1
      Makefile
  2. 2 2
      package.json

+ 4 - 1
Makefile

@@ -8,7 +8,10 @@ build-theme-default:
 	npm run build:theme
 
 install:
-	npm i --registry=http://registry.npm.taobao.org --ignore-scripts --loglevel=error
+	npm run bootstrap
+
+install-cn:
+	npm run bootstrap --registry=http://registry.npm.taobao.org
 
 dev:
 	npm run dev

+ 2 - 2
package.json

@@ -8,13 +8,13 @@
     "src"
   ],
   "scripts": {
-    "dev": "npm i && (node bin/iconInit.js & node bin/build-entry.js) && cooking watch -c scripts/cooking.demo.js",
+    "dev": "npm run bootstrap && (node bin/iconInit.js & node bin/build-entry.js) && cooking watch -c scripts/cooking.demo.js",
     "dist": "npm run lint && del -f lib && cooking build -c scripts/cooking.conf.js,scripts/cooking.common.js -p && cooking build -c scripts/cooking.component.js -p && npm run build:theme",
     "dist:all": "node bin/build-all.js && npm run build:theme",
     "build:theme": "gulp build --gulpfile packages/theme-default/gulpfile.js && cp-cli packages/theme-default/lib lib/theme-default",
     "deploy": "cooking build -c scripts/cooking.demo.js -p",
     "gh-docs": "cooking build -c scripts/cooking.demo.js -p && gh-pages -d examples/element-ui --remote origin",
-    "postinstall": "lerna bootstrap",
+    "bootstrap": "npm i && lerna bootstrap --loglevel=error",
     "pub": "npm run dist && kp",
     "pub:all": "npm run dist:all && lerna publish",
     "lint": "eslint src/** packages/** scripts/** bin/** --ext .js,.vue --ignore-pattern node_modules"