Skip to content

Commit

Permalink
Fix build configuration
Browse files Browse the repository at this point in the history
But istanbul is still not instrumenting all sources, despite the `include-all-sources` option. Hopefully, this goes away when istanbul is replaced in istanbuljs/nyc#217
  • Loading branch information
JaKXz committed May 8, 2016
1 parent f64b8f1 commit 8bad1f0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"presets": ["es2015", "react", "stage-0"],
"env": {
"test": {
"plugins": ["__coverage__"]
"plugins": [
["__coverage__", { "ignore": "" }]
]
}
}
}
3 changes: 3 additions & 0 deletions .istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
instrumentation:
include-all-sources: true
es-modules: true
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,27 @@
"scripts": {
"prebuild": "npm run clean",
"build": "cross-env NODE_ENV=production webpack -p",
"clean": "rimraf dist/ coverage/",
"cover": "nyc check-coverage --lines 80 --functions 80 --branches 80",
"clean": "rimraf dist/",
"dev": "cross-env NODE_ENV=development webpack-dev-server -d --inline --hot --progress --no-info",
"lint": "npm run lint-js && npm run lint-css",
"lint-css": "stylelint './src/**/*.css'",
"lint-js": "eslint '**/*.js' --ignore-path .gitignore",
"postinstall": "npm run build",
"start": "cross-env NODE_ENV=production node server/node-server.js",
"pretest": "npm run clean && npm run lint",
"pretest": "npm run clean coverage/ & npm run lint",
"test": "nyc --reporter=lcov --reporter=text-summary mocha",
"posttest": "npm run cover",
"posttest": "nyc check-coverage",
"test:watch": "mocha --watch"
},
"nyc": {
"exclude": [
"**/*.test.js",
"test/entry.js",
"server/*",
"dist/*"
]
"test/entry.js"
],
"lines": 80,
"statements": 80,
"branches": 80,
"functions": 80
},
"devDependencies": {
"autoprefixer": "^6.3.3",
Expand Down Expand Up @@ -73,7 +74,6 @@
"history": "^2.0.1",
"html-webpack-plugin": "^2.9.0",
"immutable": "^3.7.5",
"istanbul": "^1.0.0-alpha",
"json-loader": "^0.5.3",
"mocha": "^2.3.3",
"nyc": "^6.4.3",
Expand Down

0 comments on commit 8bad1f0

Please sign in to comment.