Skip to content

Commit d8762a3

Browse files
committed
(ci): add Travis CI support
- don't have tests yet, so for now just test lint, transpile/bundle, and pack - alter the test command to use the production build
1 parent 6b2a880 commit d8762a3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
# default is the very old 0.10.48; match local version instead
3+
node_js: '8.9'
4+
5+
before_script: npm run lint
6+
script: npm test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"lint": "standard --parser babel-eslint",
88
"lint:fix": "standard --parser babel-eslint --fix",
9-
"test": "webpack && npm pack",
9+
"test": "npm run dist && npm pack",
1010
"start": "webpack-dev-server -d --inline --hot",
1111
"dist": "webpack -p --config webpack.production.config.js",
1212
"pub": "npm run dist && npm publish"

0 commit comments

Comments
 (0)