Skip to content

Commit afe5087

Browse files
lunnysapk
authored andcommitted
Move index.js to web_src and use webpack to pack them (#8598)
* Move index.js to web_src and use webpack * Fix initHeatMap * update eslint and move webpack to devDependencies * update index.js * add eslint env node
1 parent 71395df commit afe5087

File tree

12 files changed

+4747
-3793
lines changed

12 files changed

+4747
-3793
lines changed

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
browser: true
1111
jquery: true
1212
es6: true
13+
node: true
1314

1415
globals:
1516
Clipboard: false

Makefile

+2-1
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

+1,283-356
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
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": "4.41.2",
17+
"webpack-cli": "3.3.10"
1618
},
1719
"browserslist": [
1820
"> 1%",

0 commit comments

Comments
 (0)