-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
move some scripts from 'build' to 'tools' directory, misc refactors #29844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6f444c4
move some scripts from 'build' to 'tools' directory
silverwind ea9ec28
fix ESLINT_FILES
silverwind 1437dd8
Update .dockerignore
silverwind 8ed29f2
move eslint disables inline
silverwind 5d90704
Update docs/content/development/hacking-on-gitea.zh-cn.md
silverwind 00d7860
Update docs/content/development/hacking-on-gitea.zh-cn.md
silverwind 242e905
Update docs/content/administration/cmd-embedded.zh-cn.md
silverwind 33f9a28
Merge branch 'main' into toolsdir
GiteaBot af5193b
Merge branch 'main' into toolsdir
GiteaBot 50d4521
Merge branch 'main' into toolsdir
GiteaBot 992b29f
Merge branch 'main' into toolsdir
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.