kopia lustrzana https://github.com/wagtail/wagtail
Move webpack configuration in subfolder of client/
Move webpack configuration to a subfolder in the client directory Remove trailing whitespace Rename prd.config.js to prod.config.js Simplify lint:js target pathpull/3300/head
rodzic
87b400d00b
commit
64bb8b2989
|
@ -30,7 +30,7 @@ function entryPoints(paths) {
|
|||
|
||||
|
||||
module.exports = function exports() {
|
||||
var CLIENT_DIR = path.resolve(__dirname, 'client', 'src');
|
||||
var CLIENT_DIR = path.resolve(__dirname, '..', 'src');
|
||||
|
||||
return {
|
||||
entry: entryPoints('./wagtail/**/static_src/**/app/*.entry.js'),
|
|
@ -1,5 +1,5 @@
|
|||
var webpack = require('webpack');
|
||||
var base = require('./webpack.base.config');
|
||||
var base = require('./base.config');
|
||||
var config = base('development');
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
var webpack = require('webpack');
|
||||
var base = require('./webpack.base.config');
|
||||
var base = require('./base.config');
|
||||
var config = base('production');
|
||||
|
||||
|
|
@ -47,10 +47,10 @@
|
|||
},
|
||||
"scripts": {
|
||||
"postinstall": "cd ./client; npm install; cd ..",
|
||||
"build": "gulp build; webpack --progress --colors --config webpack.prd.config.js",
|
||||
"watch": "webpack --progress --colors --config webpack.dev.config.js & gulp watch",
|
||||
"build": "gulp build; webpack --progress --colors --config ./client/webpack/prod.config.js",
|
||||
"watch": "webpack --progress --colors --config ./client/webpack/dev.config.js & gulp watch",
|
||||
"start": "npm run watch",
|
||||
"lint:js": "eslint --max-warnings 16 webpack.*.config.js ./client/src",
|
||||
"lint:js": "eslint --max-warnings 16 ./client",
|
||||
"lint": "npm run lint:js",
|
||||
"test": "npm run test:unit",
|
||||
"test:unit": "env NODE_PATH=$NODE_PATH:$PWD/client/src mocha --compilers js:babel-core/register client/tests/**/*.test.js",
|
||||
|
|
Ładowanie…
Reference in New Issue