Merge pull request #153 from QingWei-Li/fix/update-build-script
Refactor build scripts, fix #148
Showing
build/config.js
0 → 100644
build/release.sh
0 → 100644
| ... | @@ -5,19 +5,21 @@ | ... | @@ -5,19 +5,21 @@ |
| "main": "lib/element-ui.common.js", | "main": "lib/element-ui.common.js", | ||
| "files": [ | "files": [ | ||
| "lib", | "lib", | ||
| "src" | "src", | ||
| "packages" | |||
| ], | ], | ||
| "scripts": { | "scripts": { | ||
| "build:file": "node bin/iconInit.js & node bin/build-entry.js", | "build:file": "node build/bin/iconInit.js & node build/bin/build-entry.js", | ||
| "dev": "npm run bootstrap && npm run build:file && cooking watch -c scripts/cooking.demo.js -p", | "dev": "npm run bootstrap && npm run build:file && cooking watch -c build/cooking.demo.js -p", | ||
| "dist": "npm run lint && npm run build:file && del -f lib && cooking build -c scripts/cooking.conf.js,scripts/cooking.common.js,scripts/cooking.component.js -p && npm run build:theme", | "dist": "npm run lint && npm run build:file && del -f lib && cooking build -c build/cooking.conf.js,build/cooking.common.js,build/cooking.component.js -p && npm run build:utils && npm run build:theme", | ||
| "dist:all": "node bin/build-all.js && npm run build:theme", | "dist:all": "node build/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", | "build:theme": "gulp build --gulpfile packages/theme-default/gulpfile.js && cp-cli packages/theme-default/lib lib/theme-default", | ||
| "deploy": "npm run build:file && cooking build -c scripts/cooking.demo.js -p && echo element.eleme.io>>examples/element-ui/CNAME && gh-pages -d examples/element-ui --remote eleme && del examples/element-ui", | "deploy": "npm run build:file && cooking build -c build/cooking.demo.js -p && echo element.eleme.io>>examples/element-ui/CNAME && gh-pages -d examples/element-ui --remote eleme && del examples/element-ui", | ||
| "bootstrap": "npm i && lerna bootstrap --loglevel=error", | "bootstrap": "npm i && lerna bootstrap", | ||
| "pub": "npm run dist && kp", | "pub": "sh build/release.sh", | ||
| "pub:all": "npm run dist:all && lerna publish", | "pub:all": "npm run dist:all && lerna publish", | ||
| "lint": "eslint src/** packages/** scripts/** bin/** --ext .js,.vue --ignore-pattern node_modules" | "build:utils": "babel src/utils --out-dir lib/utils", | ||
| "lint": "eslint src/** packages/** build/** --ext .js,.vue --quiet" | |||
| }, | }, | ||
| "repository": { | "repository": { | ||
| "type": "git", | "type": "git", | ||
| ... | @@ -33,6 +35,7 @@ | ... | @@ -33,6 +35,7 @@ |
| "url": "https://github.com/elemefe/element/issues" | "url": "https://github.com/elemefe/element/issues" | ||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "babel-cli": "^6.14.0", | |||
| "babel-core": "^6.14.0", | "babel-core": "^6.14.0", | ||
| "babel-helper-vue-jsx-merge-props": "^2.0.0", | "babel-helper-vue-jsx-merge-props": "^2.0.0", | ||
| "babel-loader": "^6.2.5", | "babel-loader": "^6.2.5", | ||
| ... | @@ -56,7 +59,6 @@ | ... | @@ -56,7 +59,6 @@ |
| "html-webpack-plugin": "^2.22.0", | "html-webpack-plugin": "^2.22.0", | ||
| "json-loader": "^0.5.4", | "json-loader": "^0.5.4", | ||
| "json-templater": "^1.0.4", | "json-templater": "^1.0.4", | ||
| "kanpai": "^0.7.0", | |||
| "lerna": "2.0.0-beta.18", | "lerna": "2.0.0-beta.18", | ||
| "markdown-it": "^6.1.1", | "markdown-it": "^6.1.1", | ||
| "markdown-it-container": "^2.0.0", | "markdown-it-container": "^2.0.0", | ||
| ... | ... |
Please register or sign in to comment