Skip to content

Commit 642cf72

Browse files
committed
Use yarn and test with node 8
1 parent 90abe7d commit 642cf72

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- "4"
4+
- "8"
55
- "6"
6-
- "7"
6+
- "4"
77
script:
8-
- npm run lint
9-
- npm test
8+
- yarn lint
9+
- yarn test

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"build:commonjs": "babel src/ --out-dir lib/ --ignore __tests__,__mocks__",
99
"build:umd": "webpack --config webpack.build.js",
1010
"build:umd:min": "cross-env MINIFY=1 webpack --config webpack.build.js",
11-
"build": "npm run clean && npm run build:commonjs",
12-
"bundle": "mkdir -p dist && npm run build:umd && npm run build:umd:min",
11+
"build": "yarn run clean && yarn run build:commonjs",
12+
"bundle": "mkdir -p dist && yarn run build:umd && yarn run build:umd:min",
1313
"format": "prettier --write --single-quote --print-width 100 --trailing-comma all \"src/**/*.js\"",
1414
"lint": "eslint src",
1515
"precommit": "lint-staged",
16-
"preversion": "npm run lint && npm test && npm run build && npm run bundle && git add dist/ && git diff --quiet --exit-code --cached || git commit -n -m 'publish: Distribution'",
17-
"prepublish": "npm run build",
16+
"preversion": "yarn run lint && yarn test && yarn run build && yarn run bundle && git add dist/ && git diff --quiet --exit-code --cached || git commit -n -m 'publish: Distribution'",
17+
"prepublish": "yarn run build",
1818
"test": "jest",
1919
"start": "webpack-dev-server --inline --content-base examples/"
2020
},

0 commit comments

Comments
 (0)