From e4e6d48e30da944192263f7ad812dfa78f03ae27 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 12 Nov 2019 17:22:16 +0800 Subject: [PATCH] =?UTF-8?q?Move=20less=20from=20public/=20to=20web=5Fsrc/?= =?UTF-8?q?=20so=20that=20it=20will=20not=20be=20packe=E2=80=A6=20(#8908)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 6 +++--- {public => web_src}/less/_admin.less | 0 {public => web_src}/less/_base.less | 0 {public => web_src}/less/_dashboard.less | 0 {public => web_src}/less/_editor.less | 0 {public => web_src}/less/_emojify.less | 0 {public => web_src}/less/_explore.less | 0 {public => web_src}/less/_form.less | 0 {public => web_src}/less/_home.less | 0 {public => web_src}/less/_install.less | 0 {public => web_src}/less/_markdown.less | 0 {public => web_src}/less/_organization.less | 0 {public => web_src}/less/_repository.less | 0 {public => web_src}/less/_review.less | 0 {public => web_src}/less/_tribute.less | 0 {public => web_src}/less/_user.less | 0 {public => web_src}/less/index.less | 0 {public => web_src}/less/themes/_base.less | 0 {public => web_src}/less/themes/arc-green.less | 0 19 files changed, 3 insertions(+), 3 deletions(-) rename {public => web_src}/less/_admin.less (100%) rename {public => web_src}/less/_base.less (100%) rename {public => web_src}/less/_dashboard.less (100%) rename {public => web_src}/less/_editor.less (100%) rename {public => web_src}/less/_emojify.less (100%) rename {public => web_src}/less/_explore.less (100%) rename {public => web_src}/less/_form.less (100%) rename {public => web_src}/less/_home.less (100%) rename {public => web_src}/less/_install.less (100%) rename {public => web_src}/less/_markdown.less (100%) rename {public => web_src}/less/_organization.less (100%) rename {public => web_src}/less/_repository.less (100%) rename {public => web_src}/less/_review.less (100%) rename {public => web_src}/less/_tribute.less (100%) rename {public => web_src}/less/_user.less (100%) rename {public => web_src}/less/index.less (100%) rename {public => web_src}/less/themes/_base.less (100%) rename {public => web_src}/less/themes/arc-green.less (100%) diff --git a/Makefile b/Makefile index 34685dea93c3..69eb088ba778 100644 --- a/Makefile +++ b/Makefile @@ -438,9 +438,9 @@ js: npm .PHONY: css css: npm - 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 stylelint web_src/less + npx lessc --clean-css="--s0 -b" web_src/less/index.less public/css/index.css + $(foreach file, $(filter-out web_src/less/themes/_base.less, $(wildcard web_src/less/themes/*)),npx lessc --clean-css="--s0 -b" web_src/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;) npx postcss --use autoprefixer --no-map --replace public/css/* @diff=$$(git diff public/css/*); \ diff --git a/public/less/_admin.less b/web_src/less/_admin.less similarity index 100% rename from public/less/_admin.less rename to web_src/less/_admin.less diff --git a/public/less/_base.less b/web_src/less/_base.less similarity index 100% rename from public/less/_base.less rename to web_src/less/_base.less diff --git a/public/less/_dashboard.less b/web_src/less/_dashboard.less similarity index 100% rename from public/less/_dashboard.less rename to web_src/less/_dashboard.less diff --git a/public/less/_editor.less b/web_src/less/_editor.less similarity index 100% rename from public/less/_editor.less rename to web_src/less/_editor.less diff --git a/public/less/_emojify.less b/web_src/less/_emojify.less similarity index 100% rename from public/less/_emojify.less rename to web_src/less/_emojify.less diff --git a/public/less/_explore.less b/web_src/less/_explore.less similarity index 100% rename from public/less/_explore.less rename to web_src/less/_explore.less diff --git a/public/less/_form.less b/web_src/less/_form.less similarity index 100% rename from public/less/_form.less rename to web_src/less/_form.less diff --git a/public/less/_home.less b/web_src/less/_home.less similarity index 100% rename from public/less/_home.less rename to web_src/less/_home.less diff --git a/public/less/_install.less b/web_src/less/_install.less similarity index 100% rename from public/less/_install.less rename to web_src/less/_install.less diff --git a/public/less/_markdown.less b/web_src/less/_markdown.less similarity index 100% rename from public/less/_markdown.less rename to web_src/less/_markdown.less diff --git a/public/less/_organization.less b/web_src/less/_organization.less similarity index 100% rename from public/less/_organization.less rename to web_src/less/_organization.less diff --git a/public/less/_repository.less b/web_src/less/_repository.less similarity index 100% rename from public/less/_repository.less rename to web_src/less/_repository.less diff --git a/public/less/_review.less b/web_src/less/_review.less similarity index 100% rename from public/less/_review.less rename to web_src/less/_review.less diff --git a/public/less/_tribute.less b/web_src/less/_tribute.less similarity index 100% rename from public/less/_tribute.less rename to web_src/less/_tribute.less diff --git a/public/less/_user.less b/web_src/less/_user.less similarity index 100% rename from public/less/_user.less rename to web_src/less/_user.less diff --git a/public/less/index.less b/web_src/less/index.less similarity index 100% rename from public/less/index.less rename to web_src/less/index.less diff --git a/public/less/themes/_base.less b/web_src/less/themes/_base.less similarity index 100% rename from public/less/themes/_base.less rename to web_src/less/themes/_base.less diff --git a/public/less/themes/arc-green.less b/web_src/less/themes/arc-green.less similarity index 100% rename from public/less/themes/arc-green.less rename to web_src/less/themes/arc-green.less