summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-06-27 08:36:37 +0200
committerJonas Franz <info@jonasfranz.software>2019-06-27 08:36:36 +0200
commitc37ec66ee25b95525b9c8dfddd5a6f9a798150fe (patch)
tree4d941d3fa70d4a296157c90be075730af40f8158 /Makefile
parentda230412574daa9697b4cef24c7be6209b8884dc (diff)
downloadgitea-c37ec66ee25b95525b9c8dfddd5a6f9a798150fe.tar.gz
gitea-c37ec66ee25b95525b9c8dfddd5a6f9a798150fe.zip
replace lesshint with stylelint (#7305)
New CSS linter which is much more powerfull than the previous one. Configuration is default but I had to remove a few rules that were throwing too many or weird errors. More importantly, the linter will exit with code 1 on errors so now our build will fail if the CSS linter fails which should eliminate linter errors being introduced without notice.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0ab014226b..be66cb3ef3 100644
--- a/Makefile
+++ b/Makefile
@@ -392,7 +392,7 @@ js: npm
.PHONY: css
css: npm
- npx lesshint public/less/
+ npx stylelint public/less
npx lessc --clean-css="--s0 -b" public/less/index.less public/css/index.css
$(foreach file, $(filter-out public/less/themes/_base.less, $(wildcard public/less/themes/*)),npx lessc --clean-css="--s0 -b" public/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;)
npx postcss --use autoprefixer --no-map --replace public/css/*