Skip to content

Commit cbdcfb4

Browse files
committed
Move index.js to web_src and use webpack
1 parent cda8de2 commit cbdcfb4

File tree

8 files changed

+4746
-3783
lines changed

8 files changed

+4746
-3783
lines changed

.eslintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"env": {
3+
"es6": true
4+
}
5+
}

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ npm-update: npm-check
434434

435435
.PHONY: js
436436
js: npm
437-
npx eslint public/js
437+
npx eslint web_src/js webpack.config.js
438+
npx webpack
438439

439440
.PHONY: css
440441
css: npm

package-lock.json

Lines changed: 1283 additions & 356 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@
1212
"postcss-cli": "6.1.3",
1313
"stylelint": "10.1.0",
1414
"stylelint-config-standard": "18.3.0",
15-
"updates": "8.5.3"
15+
"updates": "8.5.3",
16+
"webpack-cli": "3.3.10"
1617
},
1718
"browserslist": [
1819
"> 1%",
1920
"last 2 firefox versions",
2021
"last 2 safari versions",
2122
"ie 11"
22-
]
23+
],
24+
"dependencies": {
25+
"webpack": "4.41.2"
26+
}
2327
}

0 commit comments

Comments
 (0)