moved npm, webpack and eslint stuff to root
This commit is contained in:
parent
98c5daebcf
commit
72da3d85e0
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,7 +2,7 @@ dist*
|
|||||||
static/bundles/
|
static/bundles/
|
||||||
static/tmp/
|
static/tmp/
|
||||||
static/combined/
|
static/combined/
|
||||||
frontend/node_modules/
|
node_modules/
|
||||||
*.hi
|
*.hi
|
||||||
*.o
|
*.o
|
||||||
*.sqlite3
|
*.sqlite3
|
||||||
|
|||||||
@ -6,11 +6,11 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint src",
|
"lint": "eslint frontend/src",
|
||||||
"dev": "webpack --watch"
|
"dev": "webpack --watch"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": { }
|
"hooks": {}
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"src/js/**/*.js": [
|
"src/js/**/*.js": [
|
||||||
@ -66,13 +66,13 @@ module.exports = {
|
|||||||
|
|
||||||
entry: {
|
entry: {
|
||||||
main: [
|
main: [
|
||||||
path.resolve(__dirname, 'src', 'main.js'),
|
path.resolve(__dirname, 'frontend/src', 'main.js'),
|
||||||
],
|
],
|
||||||
vendor: [
|
vendor: [
|
||||||
path.resolve(__dirname, 'vendor', 'main.js'),
|
path.resolve(__dirname, 'frontend/vendor', 'main.js'),
|
||||||
],
|
],
|
||||||
polyfills: [
|
polyfills: [
|
||||||
path.resolve(__dirname, 'polyfills', 'main.js'),
|
path.resolve(__dirname, 'frontend/polyfills', 'main.js'),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ module.exports = {
|
|||||||
output: {
|
output: {
|
||||||
chunkFilename: 'js/[name].[chunkname].js',
|
chunkFilename: 'js/[name].[chunkname].js',
|
||||||
filename: 'js/[name].js',
|
filename: 'js/[name].js',
|
||||||
path: path.resolve(__dirname, '..', 'static', 'bundles')
|
path: path.resolve(__dirname, 'static', 'bundles')
|
||||||
},
|
},
|
||||||
|
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
Loading…
Reference in New Issue
Block a user