Merge pull request #152 from orangemug/feature/circle-ci-artifact-builds

Per branch / commit builds
This commit is contained in:
Orange Mug 2017-07-22 13:43:47 +01:00 committed by GitHub
commit fff1363134
2 changed files with 15 additions and 1 deletions

6
circle.yml Normal file
View file

@ -0,0 +1,6 @@
machine:
node:
version: 6
test:
post:
- npm run build

View file

@ -6,6 +6,14 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var WebpackCleanupPlugin = require('webpack-cleanup-plugin');
var OUTPATH;
if(process.env.CIRCLE_ARTIFACTS) {
OUTPATH = path.join(process.env.CIRCLE_ARTIFACTS, "build");
}
else {
OUTPATH = path.join(__dirname, '..', 'public');
}
module.exports = {
entry: {
app: './src/index.jsx',
@ -32,7 +40,7 @@ module.exports = {
]
},
output: {
path: path.join(__dirname, '..', 'public'),
path: OUTPATH,
filename: '[name].[chunkhash].js',
chunkFilename: '[chunkhash].js'
},