Add(cover): add cover(alls) scripts and javascript testing

This commit is contained in:
Berkeley Martinez
2016-06-30 15:50:58 -07:00
parent 94a297c570
commit 33c1a0ba7f

View File

@ -19,11 +19,14 @@
"lint-utils": "jsonlint -q server/utils/*.json",
"lint-js": "eslint --ext=.js,.jsx server/ common/ config/ client/",
"lint-json": "npm run lint-server && npm run lint-challenges && npm run lint-resources && npm run lint-utils",
"test-challenges": "babel-node seed/test-challenges.js | tap-spec",
"test-challenges": "npm run test-challenges",
"pretest": "npm run lint",
"test": "npm run test-challenges",
"snyk-protect": "snyk protect",
"prepublish": "npm run snyk-protect"
"prepublish": "npm run snyk-protect",
"test-js": "tape -r babel-register 'common/**/*.test.js'",
"test": "npm run test-js && npm run test-challenges",
"cover": "babel-node ./node_modules/.bin/babel-istanbul cover tape common/**/*.test.js",
"coveralls": "npm run cover && istanbul-coveralls"
},
"license": "(BSD-3-Clause AND CC-BY-SA-4.0)",
"dependencies": {
@ -118,6 +121,7 @@
"babel-cli": "^6.3.17",
"babel-core": "^6.3.26",
"babel-eslint": "^6.1.2",
"babel-istanbul": "^0.11.0",
"babel-loader": "^6.2.1",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.3.13",
@ -147,6 +151,7 @@
"gulp-uglify": "^1.5.1",
"gulp-util": "^3.0.6",
"happy": "0.0.1",
"istanbul-coveralls": "^1.0.3",
"json-loader": "~0.5.2",
"jsonlint": "^1.6.2",
"less": "^2.5.1",