mirror of https://github.com/ElemeFE/element
fix dev deploy
parent
2ff91352be
commit
ecb6a96a6f
|
@ -3,7 +3,7 @@ mkdir temp_web
|
||||||
|
|
||||||
# build dev site
|
# build dev site
|
||||||
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$GH_TOKEN" ]; then
|
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$GH_TOKEN" ]; then
|
||||||
CI_ENV=/dev/ ./node_modules/.bin/cooking build -c build/cooking.demo.js
|
npm run deploy:dev
|
||||||
cd temp_web
|
cd temp_web
|
||||||
git clone https://$GH_TOKEN@github.com/ElementUI/dev.git && cd dev
|
git clone https://$GH_TOKEN@github.com/ElementUI/dev.git && cd dev
|
||||||
git config user.name "element_bot"
|
git config user.name "element_bot"
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
"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: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:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",
|
||||||
"clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage && lerna clean --yes",
|
"clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage && lerna clean --yes",
|
||||||
|
"deploy:dev": "npm run build:file && CI_ENV=/dev/ cooking build -c build/cooking.demo.js",
|
||||||
"deploy:build": "npm run build:file && cooking build -c build/cooking.demo.js -p && echo element.eleme.io>>examples/element-ui/CNAME",
|
"deploy:build": "npm run build:file && cooking build -c build/cooking.demo.js -p && echo element.eleme.io>>examples/element-ui/CNAME",
|
||||||
"deploy": "npm run deploy:build && gh-pages -d examples/element-ui --remote eleme && del examples/element-ui",
|
"deploy": "npm run deploy:build && gh-pages -d examples/element-ui --remote eleme && del examples/element-ui",
|
||||||
"dev": "npm run bootstrap && npm run build:file && cooking watch -c build/cooking.demo.js -p",
|
"dev": "npm run bootstrap && npm run build:file && cooking watch -c build/cooking.demo.js -p",
|
||||||
|
|
Loading…
Reference in New Issue