mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 00:05:09 +00:00
fieldmate: chore(release): Trigger rebuild after fieldmate release (#2)
This commit is contained in:
parent
1d4637f720
commit
e168100ea6
3 changed files with 19 additions and 17 deletions
|
|
@ -1 +1 @@
|
||||||
1750971957
|
1750981457
|
||||||
|
|
|
||||||
28
Makefile
28
Makefile
|
|
@ -1,10 +1,3 @@
|
||||||
# Default help formatter
|
|
||||||
.DEFAULT_GOAL := help
|
|
||||||
|
|
||||||
# Colors
|
|
||||||
GREEN := \033[0;32m
|
|
||||||
RESET := \033[0m
|
|
||||||
|
|
||||||
# Help generator (targets with ##)
|
# Help generator (targets with ##)
|
||||||
help: ## Show this help message
|
help: ## Show this help message
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
@ -14,15 +7,18 @@ help: ## Show this help message
|
||||||
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
# 1. Pre-commit check: trailing whitespace only
|
# 1. Run all linters and formatters from pre-commit config
|
||||||
lint: ## Run pre-commit check for trailing whitespace
|
lint: ## Run all configured pre-commit hooks (includes formatting & checks)
|
||||||
pre-commit run trailing-whitespace --all-files
|
pre-commit run --all-files
|
||||||
|
|
||||||
# 2. Format all files with prettier
|
# 2. Only run formatting hooks (e.g. Prettier, Black, Isort)
|
||||||
format: ## Run Prettier on the whole repo
|
format: ## Run formatting-only hooks from pre-commit
|
||||||
npx prettier --write .
|
pre-commit run prettier --all-files || true
|
||||||
|
pre-commit run black --all-files || true
|
||||||
|
pre-commit run isort --all-files || true
|
||||||
|
pre-commit run shfmt --all-files || true
|
||||||
|
|
||||||
# 3a-c. Stage, commit & push
|
# 3. Stage, commit & push
|
||||||
push: ## Add all files, commit (ask for message), and push
|
push: ## Add all files, commit (ask for message), and push
|
||||||
@git add .
|
@git add .
|
||||||
@read -p "Enter commit message: " msg; \
|
@read -p "Enter commit message: " msg; \
|
||||||
|
|
@ -33,9 +29,9 @@ push: ## Add all files, commit (ask for message), and push
|
||||||
amend: ## Amend last commit without editing the message
|
amend: ## Amend last commit without editing the message
|
||||||
git commit --amend --no-edit
|
git commit --amend --no-edit
|
||||||
|
|
||||||
# Add-ons you might like:
|
# Add-ons:
|
||||||
|
|
||||||
check-hooks: ## Run all configured pre-commit hooks
|
check-hooks: ## Run all pre-commit hooks (full check)
|
||||||
pre-commit run --all-files
|
pre-commit run --all-files
|
||||||
|
|
||||||
install-hooks: ## Install pre-commit hooks in .git/hooks
|
install-hooks: ## Install pre-commit hooks in .git/hooks
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,12 @@
|
||||||
"main",
|
"main",
|
||||||
"dev"
|
"dev"
|
||||||
],
|
],
|
||||||
|
"releaseRules": [
|
||||||
|
{
|
||||||
|
"type": "fieldmate",
|
||||||
|
"release": "patch"
|
||||||
|
}
|
||||||
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue