Skip to content

Commit 78c8a08

Browse files
committed
fix(testing): update babel and code coverage
This change updates us to babel 6 for compilation and nyc instead of istanbul for code coverage. We also updated blob to the latest version. Closes #156 Closes #140 Closes #106 Closes #51
1 parent a019303 commit 78c8a08

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ coverage/
44
artifacts/
55
/dist
66
npm-debug.log
7+
.nyc_output
78
test/tools/trigger-appveyor-tests.sh

package.json

+16-7
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"description": "Git commit, but play nice with conventions.",
55
"main": "src/index.js",
66
"scripts": {
7-
"check-coverage": "istanbul check-coverage --statements 80 --branches 80 --functions 80 --lines 80 ",
7+
"check-coverage": "nyc check-coverage --statements 80 --branches 80 --functions 80 --lines 80 ",
88
"commit": "node bin/git-cz",
99
"build": "babel src --out-dir dist",
1010
"build:watch": "babel --watch src --out-dir dist",
1111
"prepublish": "npm run build",
12-
"report-coverage": "cat ./coverage/lcov.info | codecov",
12+
"report-coverage": "nyc report --reporter=lcov | codecov",
1313
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
1414
"start": "npm run test:watch",
15-
"test": "istanbul cover -x ./test node_modules/mocha/bin/_mocha -- -R spec test/tests/index.js --compilers js:babel/register",
15+
"test": "nyc --require babel-core/register _mocha -- test/tests/index.js",
1616
"test:watch": "nodemon -q --ignore test/.tmp/ --ignore test/artifacts/ --ignore coverage/ --exec \"npm run test\" --",
1717
"test:windows": "node ./test/tools/trigger-appveyor-tests.js"
1818
},
@@ -47,14 +47,17 @@
4747
"license": "MIT",
4848
"devDependencies": {
4949
"axios": "0.9.1",
50-
"babel": "5.8.34",
50+
"babel-cli": "6.6.5",
51+
"babel-core": "6.6.5",
52+
"babel-preset-es2015": "6.6.0",
53+
"babel-preset-stage-2": "6.5.0",
5154
"chai": "3.5.0",
5255
"codecov.io": "0.1.6",
5356
"ghooks": "1.0.3",
54-
"istanbul": "0.3.22",
5557
"mocha": "2.4.5",
5658
"node-uuid": "1.4.7",
5759
"nodemon": "1.9.1",
60+
"nyc": "6.0.0",
5861
"rimraf": "2.5.2",
5962
"semantic-release": "^4.3.5",
6063
"semver": "5.1.0"
@@ -65,14 +68,20 @@
6568
"dedent": "0.6.0",
6669
"detect-indent": "4.0.0",
6770
"find-node-modules": "1.0.1",
68-
"glob": "7.0.0",
71+
"find-root": "^1.0.0",
72+
"glob": "7.0.3",
6973
"gulp": "3.9.1",
7074
"gulp-git": "1.7.0",
7175
"inquirer": "0.12.0",
7276
"lodash": "4.6.1",
73-
"find-root": "^1.0.0",
7477
"minimist": "1.2.0",
7578
"shelljs": "0.5.3",
7679
"strip-json-comments": "2.0.1"
80+
},
81+
"babel": {
82+
"presets": [
83+
"es2015",
84+
"stage-2"
85+
]
7786
}
7887
}

0 commit comments

Comments
 (0)