Skip to content

Commit af89806

Browse files
committed
Try fixing build steps
1 parent fd2a85a commit af89806

File tree

3 files changed

+217
-4
lines changed

3 files changed

+217
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
include:
1818
- stage: Deploy
1919
# We have already run tests
20-
script: skip
20+
script: npm run build
2121
# We want to run install step and keep built files for release
2222
skip_cleanup: true
2323
if: tag is not blank

package-lock.json

Lines changed: 206 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@
88
"!*~"
99
],
1010
"scripts": {
11-
"test": "gulp build && gulp test",
12-
"ci-test": "gulp build && nyc npm test && coveralls <coverage/lcov.info",
13-
"release": "release-it"
11+
"build": "gulp build",
12+
"test": "npm run build && gulp test",
13+
"ci-test": "nyc npm test && coveralls <coverage/lcov.info",
14+
"release": "npm test && release-it"
15+
},
16+
"husky": {
17+
"hooks": {
18+
"pre-push": "npm test"
19+
}
1420
},
1521
"description": "Log all process errors: uncaught exceptions, warnings and improperly handled promises",
1622
"keywords": [
@@ -78,6 +84,7 @@
7884
"gulp": "^4.0.0",
7985
"gulp-jscpd": "0.0.8",
8086
"has-ansi": "^3.0.0",
87+
"husky": "^1.2.0",
8188
"js-yaml": "^3.12.0",
8289
"lolex": "^3.0.0",
8390
"nyc": "^13.1.0",

0 commit comments

Comments
 (0)