Skip to content

Commit

Permalink
use nyc/babel-plugin-istanbul instead of isparta
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Oct 3, 2016
1 parent a5afb12 commit 7dc5540
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"presets": ["es2015", "stage-1", "flow"],
"plugins": ["transform-runtime"]
"plugins": ["transform-runtime"],
"env": {
"coverage": {
"plugins": ["istanbul"]
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage
.nyc_output
node_modules
lib
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coverage
.nyc_output
test
node_modules
.babelrc
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ This is my personal skeleton for creating an ES2015 library npm package. You ar
* babel 6
* mocha
* chai
* isparta
* istanbul
* nyc
* babel-plugin-istanbul
* eslint
* eslint-watch
* flow
Expand Down
15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,23 @@
"flow": "flow",
"flow:watch": "flow-watch --ignore lib/ --ignore node_modules/ --watch .flowconfig --watch src/ --watch scripts/ --watch test/",
"test": "mocha $npm_package_config_mocha",
"coverage": "babel-node ./node_modules/.bin/isparta cover --report lcov _mocha -- $npm_package_config_mocha",
"coverage": "NODE_ENV=coverage nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha",
"prepublish": "npm run lint && flow && npm run coverage && rimraf lib && babel src --out-dir lib",
"postpublish": "git tag -a v$npm_package_version -m v$npm_package_version && git push origin v$npm_package_version"
},
"config": {
"mocha": "--compilers js:babel-core/register ./test/**/*.js"
},
"nyc": {
"include": [
"src/**/*.js"
],
"require": [
"babel-register"
],
"sourceMap": false,
"instrument": false
},
"repository": {
"type": "git",
"url": "git+https://github.com/jedwards1211/es2015-library-skeleton.git"
Expand All @@ -34,6 +44,7 @@
"babel-cli": "^6.16.0",
"babel-core": "^6.17.0",
"babel-eslint": "^7.0.0",
"babel-plugin-istanbul": "^2.0.1",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-flow": "^1.0.0",
Expand All @@ -46,9 +57,9 @@
"eslint-watch": "^2.1.14",
"flow-bin": "^0.33.0",
"flow-watch": "^1.0.0",
"isparta": "^4.0.0",
"istanbul": "^0.4.5",
"mocha": "^3.1.0",
"nyc": "^8.3.0",
"rimraf": "^2.5.4"
},
"dependencies": {}
Expand Down

0 comments on commit 7dc5540

Please sign in to comment.