Skip to content

Commit c09e894

Browse files
committed
Setup travis CI
1 parent ee27347 commit c09e894

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.eslintrc.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parserOptions:
2+
ecmaVersion: 6
3+
sourceType: module
4+
env:
5+
es6: true
6+
node: true

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
- "6"
5+
script:
6+
- npm run eslint
7+
- npm run test
8+
after_success:
9+
- npm run coverage

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "Webpack loader to load react-router-config",
55
"main": "index.js",
66
"scripts": {
7-
"test": "nyc mocha"
7+
"eslint": "eslint \"**/*.js\"",
8+
"test": "nyc mocha",
9+
"coverage": "nyc report --reporter=text-lcov | coveralls"
810
},
911
"author": {
1012
"name": "grayyang",
@@ -18,6 +20,8 @@
1820
"devDependencies": {
1921
"chai": "^4.1.1",
2022
"chai-as-promised": "^7.1.1",
23+
"coveralls": "^2.13.1",
24+
"eslint": "^4.4.1",
2125
"js-promisify": "^1.1.0",
2226
"mocha": "^3.5.0",
2327
"nyc": "^11.1.0",

0 commit comments

Comments
 (0)