-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
justfile
43 lines (35 loc) · 992 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
check:
cargo fmt -- --check
cargo clippy
pedantic:
cargo fmt -- --check
cargo clippy -- -W clippy::pedantic
fmt:
cargo fmt
fix:
cargo clippy --fix
pedantic_fix:
cargo clippy --fix -- -W clippy::pedantic
watch:
cargo watch -c -q -x "run example ../site_example -vvvv"
[doc('Bump version in Cargo.toml')]
[group('maintainer')]
bumpversion TAG:
#!/usr/bin/env bash
cargo set-version --version || cargo install -y [email protected]
cargo set-version --package marmite --locked "{{ TAG }}"
cargo generate-lockfile
just fmt
git add ./Cargo.toml ./Cargo.lock
git commit -m "chore: bump version to {{ TAG }}"
[doc('Push a new tag to the repository')]
[group('maintainer')]
pushtag TAG:
#!/usr/bin/env bash
git tag -a "{{ TAG }}" -m "chore: push {{ TAG }}"
git push --tags
[doc('Publish a new version (bumpversion + pushtag)')]
[group('maintainer')]
publish TAG:
just bumpversion {{ TAG }}
just pushtag {{ TAG }}