diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..78ed03687 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: node_js +sudo: required +node_js: + - 8.2.1 +cache: + directories: + - node_modules +script: + - npm run build +after_success: + - git add --all . + - git commit -m "travis ci auto build" + - git push https://github.com/vueComponent/ant-design.git gh-pages diff --git a/build.sh b/build.sh index 85c177994..2526181cd 100644 --- a/build.sh +++ b/build.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +npm i rm -rf dist mkdir dist ./node_modules/.bin/webpack --config webpack.prod.config.js