瀏覽代碼

fix dev deploy

Leopoldthecoder 8 年之前
父節點
當前提交
ecb6a96a6f
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      build/deploy-ci.sh
  2. 1 0
      package.json

+ 1 - 1
build/deploy-ci.sh

@@ -3,7 +3,7 @@ mkdir temp_web
 
 # build dev site
 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
   git clone https://$GH_TOKEN@github.com/ElementUI/dev.git && cd dev
   git config user.name "element_bot"

+ 1 - 0
package.json

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