This repository has been archived by the owner on Jan 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9be332
commit 954bc19
Showing
2 changed files
with
24 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
restore: | ||
uv sync --frozen --all-groups | ||
default: run-check-phat-nguoi | ||
|
||
run: | ||
alias s := gen-schemas | ||
alias w := build-web | ||
alias wd:= web-dev | ||
|
||
restore-dependencies: | ||
[ -d '.venv' ] || uv sync --frozen --all-groups | ||
|
||
run-check-phat-nguoi: restore-dependencies | ||
uv run check-phat-nguoi --frozen | ||
|
||
gen-schemas: | ||
just gen-config-schema | ||
gen-schemas: restore-dependencies | ||
uv run generate-schemas --frozen | ||
|
||
gen-config-schema: | ||
gen-config-schema: restore-dependencies | ||
uv run gen-config-schema --frozen | ||
|
||
web-mkdocs: | ||
web-dev: restore-dependencies | ||
rm ./site/ -rf | ||
uv run mkdocs serve | ||
|
||
build-web-mkdocs: restore-dependencies | ||
rm ./site/ -rf | ||
uv run mkdocs build | ||
|
||
web-schemas: | ||
rm ./schemas_site/ -rf | ||
mkdir ./schemas_site | ||
uv run generate-schema-doc ./schemas/ ./schemas_site/ | ||
|
||
web: | ||
just web-mkdocs | ||
just web-schemas | ||
mkdir ./site/schemas/ | ||
mv ./schemas_site/* ./site/schemas/ | ||
rm ./schemas_site/ -r | ||
build-web-schemas: restore-dependencies gen-schemas | ||
rm ./site/schemas/ -rf | ||
mkdir ./site/schemas/ -p | ||
uv run generate-schema-doc ./schemas/ ./site/schemas/ | ||
|
||
build-web: restore-dependencies build-web-mkdocs build-web-schemas |