Skip to content
Snippets Groups Projects
Commit 08dc8372 authored by Jack Reed's avatar Jack Reed
Browse files

split out dev build to separate task

parent 147c6c69
Branches
No related tags found
No related merge requests found
const path = require('path');
module.exports = [
{
entry: './__tests__/integration/react-example/index.jsx',
output: {
path: path.join(__dirname, '__tests__/integration/react-example'),
filename: 'test-react.build.js',
},
resolve: { extensions: ['.js', '.jsx'] },
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'babel-loader',
},
],
},
},
];
......@@ -6,9 +6,10 @@
"scripts": {
"lint": "node_modules/.bin/eslint ./",
"server": "node_modules/.bin/http-server -p 4444",
"test": "npm run lint && npm run build && node_modules/.bin/jest",
"test": "npm run lint && npm run build && npm run build:dev && node_modules/.bin/jest",
"test:watch": "npm test -- --watch",
"build": "node_modules/.bin/webpack"
"build": "node_modules/.bin/webpack",
"build:dev": "node_modules/.bin/webpack --config integrations.config.js"
},
"author": "Drew Winget <scipioaffricanus@gmail.com> (https://aeschylus.net/)",
"license": "MIT",
......
const path = require('path');
module.exports = [
{
entry: './index.js',
......@@ -19,21 +17,4 @@ module.exports = [
],
},
},
{
entry: './__tests__/integration/react-example/index.jsx',
output: {
path: path.join(__dirname, '__tests__/integration/react-example'),
filename: 'test-react.build.js',
},
resolve: { extensions: ['.js', '.jsx'] },
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'babel-loader',
},
],
},
},
];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment