Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
chore(nyc): uses nyc instead of babel-istanbul (#22)
Browse files Browse the repository at this point in the history
* chore(nyc): uses `nyc` instead of `babel-istanbul`

* chore(nyc): uses `babel-register` instead of `babel-core/register`
  • Loading branch information
mdreizin authored Jul 5, 2016
1 parent 59ca926 commit 3ba201c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"env": {
"test": {
"plugins": [
"istanbul"
]
}
},
"presets": [
"es2015"
],
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ build/Release
# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules
.nyc_output
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio

Expand Down
5 changes: 0 additions & 5 deletions .istanbul.yml

This file was deleted.

21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,26 @@
"scripts": {
"clean": "rm -rf ./dist && rm -rf ./coverage && rm -rf ./docs",
"eslint": "eslint ./ --cache",
"test": "babel-node ./jasmine.js",
"build": "babel ./src --out-dir ./dist --source-maps",
"cover": "babel-node ./node_modules/.bin/babel-istanbul cover jasmine JASMINE_CONFIG_PATH=./jasmine.json",
"build": "babel src --out-dir dist --source-maps",
"test": "babel-node jasmine.js",
"cover": "NODE_ENV=test nyc --reporter=lcov jasmine JASMINE_CONFIG_PATH=jasmine.json",
"postcover": "nyc report",
"codeclimate": "codeclimate-test-reporter < ./coverage/lcov.info",
"gitdown": "gitdown ./.gitdown/README.md --output-file ./README.md",
"jsdoc": "jsdoc ./src -c ./jsdoc.json",
"gh-pages": "gh-pages -r https://${GH_TOKEN}@github.com/mdreizin/webpack-config.git -d docs",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"nyc": {
"include": [
"src/*.js"
],
"require": [
"babel-register"
],
"sourceMap": false,
"instrument": false
},
"repository": {
"type": "git",
"url": "https://github.com/mdreizin/webpack-config.git"
Expand All @@ -35,10 +46,11 @@
"devDependencies": {
"babel-cli": "^6.9.0",
"babel-eslint": "^6.0.4",
"babel-istanbul": "^0.11.0",
"babel-plugin-istanbul": "^1.0.2",
"babel-plugin-transform-builtin-extend": "^1.1.0",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-es2015": "^6.9.0",
"babel-register": "^6.9.0",
"codeclimate-test-reporter": "^0.3.1",
"eslint": "^3.0.0",
"eslint-config-mdreizin": "^1.1.1",
Expand All @@ -48,6 +60,7 @@
"jasmine": "^2.4.1",
"jasmine-spec-reporter": "^2.4.0",
"jsdoc": "^3.4.0",
"nyc": "^6.6.1",
"semantic-release": "^4.3.5",
"travis-after-all": "^1.4.4"
},
Expand Down

0 comments on commit 3ba201c

Please sign in to comment.