Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
plugins: [
"plugins": [
"transform-decorators-legacy",
["transform-es2015-template-literals", { "loose": true }],
"transform-es2015-literals",
Expand All @@ -22,5 +22,10 @@
"transform-object-rest-spread",
"transform-react-jsx",
"syntax-jsx"
]
],
"env": {
"test": {
"plugins": ["istanbul"]
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ npm-debug.log
.DS_Store
dist
lib
.nyc_output
coverage
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ node_js:
- "5"
script:
- npm run lint
- npm test
- npm run test:cov
after_success:
- npm run coverage
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment: false
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
"clean": "rimraf lib dist coverage",
"lint": "eslint src test",
"prepublish": "npm run clean && npm run build",
"test": "mocha --compilers js:babel-register --recursive --require ./test/setup.js",
"test": "cross-env NODE_ENV=test mocha --compilers js:babel-register --recursive --require ./test/setup.js",
"test:watch": "npm test -- --watch",
"test:cov": "babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive"
"test:cov": "cross-env NODE_ENV=test nyc npm test",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -47,6 +48,7 @@
"babel-eslint": "^6.1.2",
"babel-loader": "^6.2.0",
"babel-plugin-check-es2015-constants": "^6.3.13",
"babel-plugin-istanbul": "^2.0.0",
"babel-plugin-syntax-jsx": "^6.3.13",
"babel-plugin-transform-decorators-legacy": "^1.2.0",
"babel-plugin-transform-es2015-arrow-functions": "^6.3.13",
Expand All @@ -70,17 +72,18 @@
"babel-plugin-transform-react-display-name": "^6.4.0",
"babel-plugin-transform-react-jsx": "^6.4.0",
"babel-register": "^6.3.13",
"codecov": "^1.0.1",
"cross-env": "^1.0.7",
"es3ify": "^0.2.0",
"eslint": "^3.3.1",
"eslint-plugin-import": "^1.13.0",
"eslint-plugin-react": "^6.1.1",
"expect": "^1.8.0",
"glob": "^6.0.4",
"isparta": "4.0.0",
"istanbul": "^0.3.17",
"istanbul": "^0.4.4",
"jsdom": "~5.4.3",
"mocha": "^2.2.5",
"nyc": "^8.1.0",
"react": "^0.14.0",
"react-addons-test-utils": "^0.14.0",
"react-dom": "^0.14.0",
Expand All @@ -102,5 +105,9 @@
"transform": [
"loose-envify"
]
},
"nyc": {
"sourceMap": false,
"instrument": false
}
}