Skip to content

Commit 756d7b3

Browse files
committed
Add travis
1 parent cf8e452 commit 756d7b3

File tree

4 files changed

+2950
-2
lines changed

4 files changed

+2950
-2
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules/
22
.npm
3-
yarn.lock
43
dist/

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- "6.11.4"
4+
- "7"
5+
- "8"
6+
script:
7+
- npm test

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"test": "node ./node_modules/jest/bin/jest",
88
"build": "node ./node_modules/babel-cli/bin/babel src --out-dir dist",
9-
"preversion": "npm test"
9+
"preversion": "npm test",
10+
"prepublish": "npm run build"
1011
},
1112
"repository": {
1213
"type": "git",

0 commit comments

Comments
 (0)