Skip to content

Commit

Permalink
Move index.js to web_src and use webpack to pack them (#8598)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
lunny authored and sapk committed Nov 13, 2019
1 parent 71395df commit afe5087
Show file tree
Hide file tree
Showing 12 changed files with 4,747 additions and 3,793 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
browser: true
jquery: true
es6: true
node: true

globals:
Clipboard: false
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ npm-update: npm-check

.PHONY: js
js: npm
npx eslint public/js
npx eslint web_src/js webpack.config.js
npx webpack

.PHONY: css
css: npm
Expand Down
1,639 changes: 1,283 additions & 356 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"postcss-cli": "6.1.3",
"stylelint": "10.1.0",
"stylelint-config-standard": "18.3.0",
"updates": "8.5.3"
"updates": "8.5.3",
"webpack": "4.41.2",
"webpack-cli": "3.3.10"
},
"browserslist": [
"> 1%",
Expand Down
Loading

0 comments on commit afe5087

Please sign in to comment.