summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorXaver Maierhofer <xaver.maierhofer@xwissen.info>2019-05-14 02:54:23 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-05-14 08:54:23 +0800
commit3957b40021a7e017fc118a72fb5de38034427f00 (patch)
tree964ebe0d9c2b98a21ae6339c534c8a5233b9161a /Makefile
parentc0fc6cd9a8ae438f5759f2ee88d395bf7e1dbe1d (diff)
downloadgitea-3957b40021a7e017fc118a72fb5de38034427f00.tar.gz
gitea-3957b40021a7e017fc118a72fb5de38034427f00.zip
Add less linter via npx (#6936)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 424ea9dedb..2b77ce5dca 100644
--- a/Makefile
+++ b/Makefile
@@ -388,6 +388,7 @@ generate-stylesheets:
exit 1; \
fi;
$(eval BROWSERS := "> 1%, last 2 firefox versions, last 2 safari versions, ie 11")
+ npx lesshint 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;)
$(foreach file, $(wildcard public/css/*),npx postcss --use autoprefixer --autoprefixer.browsers $(BROWSERS) -o $(file) $(file);)