diff options
author | silverwind <me@silverwind.io> | 2020-12-27 15:24:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-27 15:24:27 +0100 |
commit | 50a2dd52baed6a998cca332761c3e9eccf0157a9 (patch) | |
tree | 4c5a2ca412a208ba510bcbff14ce2731c79dbb2e /Makefile | |
parent | fe403725f45e4515ce89d6a4dfd01e9698d38ad9 (diff) | |
download | gitea-50a2dd52baed6a998cca332761c3e9eccf0157a9.tar.gz gitea-50a2dd52baed6a998cca332761c3e9eccf0157a9.zip |
Update JS dependencies and webpack (#14118)
* Update JS dependencies
- Update all JS dependencies
- Adapt webpack config for version 5
- Update to Less 4.0, adapting usage of removed mixin syntax
- Enable new ESLint rules and fix discovered issues
* update license-webpack-plugin to fix missing licenses
* update license-webpack-plugin once more to get webpack into the license output
* switch to license-checker-webpack-plugin again for performance
* update deps again
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -317,8 +317,8 @@ lint: lint-frontend lint-backend .PHONY: lint-frontend lint-frontend: node_modules - npx eslint --max-warnings=0 web_src/js build templates webpack.config.js - npx stylelint --max-warnings=0 web_src/less + npx eslint --color --max-warnings=0 web_src/js build templates webpack.config.js + npx stylelint --color --max-warnings=0 web_src/less .PHONY: lint-backend lint-backend: golangci-lint revive vet @@ -330,7 +330,7 @@ watch: .PHONY: watch-frontend watch-frontend: node-check node_modules rm -rf $(WEBPACK_DEST_ENTRIES) - NODE_ENV=development npx webpack --hide-modules --display-entrypoints=false --watch --progress + NODE_ENV=development npx webpack --watch --progress .PHONY: watch-backend watch-backend: go-check @@ -660,7 +660,7 @@ webpack: $(WEBPACK_DEST) $(WEBPACK_DEST): $(WEBPACK_SOURCES) $(WEBPACK_CONFIGS) package-lock.json | node_modules rm -rf $(WEBPACK_DEST_ENTRIES) - npx webpack --hide-modules --display-entrypoints=false + npx webpack @touch $(WEBPACK_DEST) .PHONY: svg |