|
@@ -13,12 +13,13 @@
|
|
|
"build:file": "node build/bin/iconInit.js & node build/bin/build-entry.js & node build/bin/i18n.js & node build/bin/version.js",
|
|
|
"build:theme": "node build/bin/gen-cssfile && gulp build --gulpfile packages/theme-default/gulpfile.js && cp-cli packages/theme-default/lib lib/theme-default",
|
|
|
"build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",
|
|
|
+ "build:umd": "node build/bin/build-locale.js",
|
|
|
"clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage && lerna clean --yes",
|
|
|
"deploy": "npm run deploy:build && gh-pages -d examples/element-ui --remote eleme && del examples/element-ui",
|
|
|
"deploy:build": "npm run build:file && cooking build -c build/cooking.demo.js -p && echo element.eleme.io>>examples/element-ui/CNAME",
|
|
|
"dev": "npm run bootstrap && npm run build:file && cooking watch -c build/cooking.demo.js -p",
|
|
|
"dev:play": "npm run build:file && cross-env PLAY_ENV=true cooking watch -c build/cooking.demo.js -p",
|
|
|
- "dist": "npm run clean && npm run build:file && npm run lint && 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": "npm run clean && npm run build:file && npm run lint && cooking build -c build/cooking.conf.js,build/cooking.common.js,build/cooking.component.js -p && npm run build:utils && npm run build:umd && npm run build:theme",
|
|
|
"dist:all": "node build/bin/build-all.js && npm run build:theme",
|
|
|
"i18n": "node build/bin/i18n.js",
|
|
|
"lint": "eslint src/**/* test/**/* packages/**/*.{js,vue} build/**/* --quiet",
|
|
@@ -56,6 +57,7 @@
|
|
|
"babel-cli": "^6.14.0",
|
|
|
"babel-core": "^6.14.0",
|
|
|
"babel-loader": "^6.2.5",
|
|
|
+ "babel-plugin-add-module-exports": "^0.2.1",
|
|
|
"babel-plugin-module-resolver": "^2.2.0",
|
|
|
"babel-plugin-syntax-jsx": "^6.8.0",
|
|
|
"babel-plugin-transform-vue-jsx": "^3.3.0",
|