moved npm, webpack and eslint stuff to root

This commit is contained in:
Felix Hamann 2019-05-25 22:19:27 +02:00
parent 98c5daebcf
commit 72da3d85e0
7 changed files with 7 additions and 7 deletions

2
.gitignore vendored
View File

@ -2,7 +2,7 @@ dist*
static/bundles/
static/tmp/
static/combined/
frontend/node_modules/
node_modules/
*.hi
*.o
*.sqlite3

View File

@ -6,11 +6,11 @@
"author": "",
"license": "ISC",
"scripts": {
"lint": "eslint src",
"lint": "eslint frontend/src",
"dev": "webpack --watch"
},
"husky": {
"hooks": { }
"hooks": {}
},
"lint-staged": {
"src/js/**/*.js": [

View File

@ -66,13 +66,13 @@ module.exports = {
entry: {
main: [
path.resolve(__dirname, 'src', 'main.js'),
path.resolve(__dirname, 'frontend/src', 'main.js'),
],
vendor: [
path.resolve(__dirname, 'vendor', 'main.js'),
path.resolve(__dirname, 'frontend/vendor', 'main.js'),
],
polyfills: [
path.resolve(__dirname, 'polyfills', 'main.js'),
path.resolve(__dirname, 'frontend/polyfills', 'main.js'),
],
},
@ -85,7 +85,7 @@ module.exports = {
output: {
chunkFilename: 'js/[name].[chunkname].js',
filename: 'js/[name].js',
path: path.resolve(__dirname, '..', 'static', 'bundles')
path: path.resolve(__dirname, 'static', 'bundles')
},
mode: 'development',