Skip to content

Commit

Permalink
fix(testing): update babel and code coverage
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jimthedev committed Mar 8, 2016
1 parent a019303 commit 78c8a08
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ coverage/
artifacts/
/dist
npm-debug.log
.nyc_output
test/tools/trigger-appveyor-tests.sh
23 changes: 16 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"description": "Git commit, but play nice with conventions.",
"main": "src/index.js",
"scripts": {
"check-coverage": "istanbul check-coverage --statements 80 --branches 80 --functions 80 --lines 80 ",
"check-coverage": "nyc check-coverage --statements 80 --branches 80 --functions 80 --lines 80 ",
"commit": "node bin/git-cz",
"build": "babel src --out-dir dist",
"build:watch": "babel --watch src --out-dir dist",
"prepublish": "npm run build",
"report-coverage": "cat ./coverage/lcov.info | codecov",
"report-coverage": "nyc report --reporter=lcov | codecov",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"start": "npm run test:watch",
"test": "istanbul cover -x ./test node_modules/mocha/bin/_mocha -- -R spec test/tests/index.js --compilers js:babel/register",
"test": "nyc --require babel-core/register _mocha -- test/tests/index.js",
"test:watch": "nodemon -q --ignore test/.tmp/ --ignore test/artifacts/ --ignore coverage/ --exec \"npm run test\" --",
"test:windows": "node ./test/tools/trigger-appveyor-tests.js"
},
Expand Down Expand Up @@ -47,14 +47,17 @@
"license": "MIT",
"devDependencies": {
"axios": "0.9.1",
"babel": "5.8.34",
"babel-cli": "6.6.5",
"babel-core": "6.6.5",
"babel-preset-es2015": "6.6.0",
"babel-preset-stage-2": "6.5.0",
"chai": "3.5.0",
"codecov.io": "0.1.6",
"ghooks": "1.0.3",
"istanbul": "0.3.22",
"mocha": "2.4.5",
"node-uuid": "1.4.7",
"nodemon": "1.9.1",
"nyc": "6.0.0",
"rimraf": "2.5.2",
"semantic-release": "^4.3.5",
"semver": "5.1.0"
Expand All @@ -65,14 +68,20 @@
"dedent": "0.6.0",
"detect-indent": "4.0.0",
"find-node-modules": "1.0.1",
"glob": "7.0.0",
"find-root": "^1.0.0",
"glob": "7.0.3",
"gulp": "3.9.1",
"gulp-git": "1.7.0",
"inquirer": "0.12.0",
"lodash": "4.6.1",
"find-root": "^1.0.0",
"minimist": "1.2.0",
"shelljs": "0.5.3",
"strip-json-comments": "2.0.1"
},
"babel": {
"presets": [
"es2015",
"stage-2"
]
}
}

0 comments on commit 78c8a08

Please sign in to comment.