diff options
author | Xaver Maierhofer <xaver.maierhofer@xwissen.info> | 2019-05-14 02:54:23 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-05-14 08:54:23 +0800 |
commit | 3957b40021a7e017fc118a72fb5de38034427f00 (patch) | |
tree | 964ebe0d9c2b98a21ae6339c534c8a5233b9161a /Makefile | |
parent | c0fc6cd9a8ae438f5759f2ee88d395bf7e1dbe1d (diff) | |
download | gitea-3957b40021a7e017fc118a72fb5de38034427f00.tar.gz gitea-3957b40021a7e017fc118a72fb5de38034427f00.zip |
Add less linter via npx (#6936)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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);) |