Skip to content
This repository was archived by the owner on Oct 28, 2020. It is now read-only.

Commit cc59846

Browse files
committed
fix(npm): proper babel transpile, bithound override
1 parent 5ee36b8 commit cc59846

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ before_install:
1919
- npm i -g npm@^2.0.0
2020
- npm i -g gulp
2121
before_script:
22-
- if (( "${TRAVIS_NODE_VERSION}" >= 6 )) && [ "$TRAVIS_BRANCH" = "master" ]; then export COVERAGE_REPORT=true; fi;
22+
- if (( "${TRAVIS_NODE_VERSION}" >= 6 )); then export CI_MASTER=true; fi;
23+
- if [ "$TRAVIS_BRANCH" = "master" ]; then export CI_DEPLOY=true; fi;
2324
- npm prune
2425
after_success:
2526
- npm run semantic-release

gulpfile.babel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ gulp.task('predeploy', ['doc'], () => {
120120
});
121121

122122
gulp.task('deploy', ['predeploy'], () => {
123-
if (!process.env.COVERAGE_REPORT) {
123+
if (!process.env.CI_DEPLOY) {
124124
return false;
125125
}
126126

@@ -141,7 +141,7 @@ gulp.task('nsp', (cb) => {
141141
});
142142

143143
gulp.task('bithound', () => {
144-
if (!process.env.CI) {
144+
if (!process.env.CI_MASTER) {
145145
return false;
146146
}
147147

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"devDependencies": {
3939
"babel-cli": "^6.10.1",
4040
"babel-core": "^6.10.4",
41+
"babel-plugin-add-module-exports": "^0.2.1",
4142
"babel-preset-es2015": "^6.9.0",
4243
"babel-register": "^6.9.0",
4344
"bithound": "^1.3.0",
@@ -71,6 +72,8 @@
7172
"presets": [
7273
"es2015"
7374
],
74-
"only": "gulpfile.babel.js"
75+
"plugins": [
76+
"add-module-exports"
77+
]
7578
}
7679
}

0 commit comments

Comments
 (0)