Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
39 lines (38 loc) · 1.31 KB
/
Copy pathjustfile
File metadata and controls
39 lines (38 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
rendered := "_rendered/demo-project"
# List available recipes
[private]
default:
@just --list
# Lint the template repo and template GitHub workflows
actionlint:
actionlint .github/workflows/*.yml template/.github/workflows/*.yml
# Scan staged changes for secrets
betterleaks:
betterleaks git --pre-commit --staged --redact
# Run the git hooks on staged files
prek:
prek
# Render a demo project from the current template (includes uncommitted changes)
render:
rm -rf {{ rendered }}
uvx copier copy --trust --defaults --vcs-ref HEAD \
--data project_name=demo-project \
--data github_repo=example-owner/demo-project \
--data use_docs=true \
--data use_releases=true \
. {{ rendered }}
# Install Homebrew tools from the Brewfile
setup:
brew bundle install
# Render a demo project and run its lint, spell check, tests, docs build, dependency audit, and workflow audit
check: render
cd {{ rendered }} && just sync
cd {{ rendered }} && just ci-lint
cd {{ rendered }} && uvx typos
cd {{ rendered }} && just coverage
cd {{ rendered }} && just docs-build
cd {{ rendered }} && just audit
cd {{ rendered }} && uvx zizmor --offline .
# Audit the template repo and template GitHub workflows for security issues
zizmor:
zizmor . template --collect all