forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move some scripts from 'build' to 'tools' directory, misc refactors (g…
…o-gitea#29844) - Move some scripts from `build` to new `tools` dir. Eventually i would like to move all but let's do it step-by-step. - Add dir to eslint and move the files into vars. - Update docs accordingly. - While updating docs I noticed we were incorrectly having `public/img` path still in a few places. Replace those with the current `public/assets/img`. --------- Co-authored-by: Nanguan Lin <[email protected]> Co-authored-by: Giteabot <[email protected]>
- Loading branch information
1 parent
5ca65d3
commit 095fdd6
Showing
10 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,6 +147,8 @@ TAR_EXCLUDES := .git data indexers queues log node_modules $(EXECUTABLE) $(FOMAN | |
GO_DIRS := build cmd models modules routers services tests | ||
WEB_DIRS := web_src/js web_src/css | ||
|
||
ESLINT_FILES := web_src/js tools *.config.js tests/e2e | ||
STYLELINT_FILES := web_src/css web_src/js/components/*.vue | ||
SPELLCHECK_FILES := $(GO_DIRS) $(WEB_DIRS) docs/content templates options/locale/locale_en-US.ini .github | ||
EDITORCONFIG_FILES := templates .github/workflows options/locale/locale_en-US.ini | ||
|
||
|
@@ -375,19 +377,19 @@ lint-backend-fix: lint-go-fix lint-go-vet lint-editorconfig | |
|
||
.PHONY: lint-js | ||
lint-js: node_modules | ||
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js tests/e2e | ||
npx eslint --color --max-warnings=0 --ext js,vue $(ESLINT_FILES) | ||
|
||
.PHONY: lint-js-fix | ||
lint-js-fix: node_modules | ||
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js tests/e2e --fix | ||
npx eslint --color --max-warnings=0 --ext js,vue $(ESLINT_FILES) --fix | ||
|
||
.PHONY: lint-css | ||
lint-css: node_modules | ||
npx stylelint --color --max-warnings=0 web_src/css web_src/js/components/*.vue | ||
npx stylelint --color --max-warnings=0 $(STYLELINT_FILES) | ||
|
||
.PHONY: lint-css-fix | ||
lint-css-fix: node_modules | ||
npx stylelint --color --max-warnings=0 web_src/css web_src/js/components/*.vue --fix | ||
npx stylelint --color --max-warnings=0 $(STYLELINT_FILES) --fix | ||
|
||
.PHONY: lint-swagger | ||
lint-swagger: node_modules | ||
|
@@ -444,7 +446,7 @@ lint-yaml: .venv | |
|
||
.PHONY: watch | ||
watch: | ||
@bash build/watch.sh | ||
@bash tools/watch.sh | ||
|
||
.PHONY: watch-frontend | ||
watch-frontend: node-check node_modules | ||
|
@@ -916,7 +918,7 @@ $(WEBPACK_DEST): $(WEBPACK_SOURCES) $(WEBPACK_CONFIGS) package-lock.json | |
.PHONY: svg | ||
svg: node-check | node_modules | ||
rm -rf $(SVG_DEST_DIR) | ||
node build/generate-svg.js | ||
node tools/generate-svg.js | ||
|
||
.PHONY: svg-check | ||
svg-check: svg | ||
|
@@ -960,7 +962,7 @@ generate-gitignore: | |
.PHONY: generate-images | ||
generate-images: | node_modules | ||
npm install --no-save [email protected] imagemin-zopfli@7 | ||
node build/generate-images.js $(TAGS) | ||
node tools/generate-images.js $(TAGS) | ||
|
||
.PHONY: generate-manpage | ||
generate-manpage: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.