forked from PeopleForBikes/brokenspoke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
28 lines (21 loc) · 648 Bytes
/
Justfile
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
# Meta task running ALL the CI tasks at onces.
ci: lint
# Meta task running all the linters at once.
lint: lint-md lint-spellcheck
# Lint markown files.
lint-md:
npx --yes markdownlint-cli2 "**/*.md" "#.venv" "#docs/themes" "#target/*" "#target"
# Check spelling.
lint-spellcheck:
npx --yes cspell --no-progress --show-suggestions --show-context "**/*.md"
# Meta tasks running all formatters at once.
fmt: fmt-md fmt-just
# Format the justfile.
fmt-just:
just --fmt --unstable
# Format markdown files.
fmt-md:
npx --yes prettier --write --prose-wrap always "**/*.md"
# Build the documentation
docs:
cd docs && zola build