提交 77360614 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

run clean before dist, to replace redist(#152)

上级 890137bc
......@@ -44,7 +44,7 @@ script:
- npm --version
- shellcheck bin/*.sh
- npm run lint
- npm run redist
- npm run dist
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then WECHATY_LOG=silly npm run test:phantomjs; fi
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then WECHATY_LOG=silly npm run test:chrome; fi
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then WECHATY_LOG=verbose npm run nycava; fi
......@@ -67,7 +67,7 @@ after_success:
before_deploy:
- npm version
- npm run redist
- npm run dist
deploy:
provider: npm
......
......@@ -16,8 +16,7 @@
},
"scripts": {
"ts-node": "ts-node",
"dist": "tsc && shx cp package.json dist/ && shx cp src/puppet-web/*.js dist/src/puppet-web/",
"redist": "npm run clean && npm run dist",
"dist": "npm run clean && tsc && shx cp package.json dist/ && shx cp src/puppet-web/*.js dist/src/puppet-web/",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"doctor": "ts-node bin/doctor",
"clean": "shx rm -fr dist/*",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册