Permalink
Browse files

Configure webpack and mocha on the same rc

  • Loading branch information...
rricard committed Nov 29, 2015
1 parent a41308a commit bf62e380b15db455142dbdcd54efccbd09fe556c
Showing with 9 additions and 5 deletions.
  1. +4 −0 .babelrc
  2. +2 −1 package.json
  3. +3 −4 webpack.config.js
@@ -0,0 +1,4 @@
{
"presets": ["es2015"],
"plugins": ["syntax-flow", "transform-flow-strip-types"]
}
@@ -6,7 +6,7 @@
"scripts": {
"start": "webpack --watch",
"prepublish": "webpack",
"test": "exit 1"
"test": "mocha --compilers js:babel-core/register --recursive tests/"
},
"bin": "./bin/run.js",
"repository": {
@@ -32,6 +32,7 @@
"babel-plugin-transform-flow-strip-types": "^6.1.18",
"babel-preset-es2015": "^6.1.18",
"json-loader": "^0.5.3",
"mocha": "^2.3.4",
"webpack": "^1.12.8"
}
}
@@ -27,10 +27,9 @@ module.exports = {
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['es2015'],
plugins: ['syntax-flow', 'transform-flow-strip-types']
}
query: JSON.parse(
fs.readFileSync(path.join(__dirname, ".babelrc"), {encoding: "utf8"})
)
},
{
test: /\.json$/,

0 comments on commit bf62e38

Please sign in to comment.