-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjustfile
More file actions
47 lines (37 loc) · 1.23 KB
/
Copy pathjustfile
File metadata and controls
47 lines (37 loc) · 1.23 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
40
41
42
43
44
45
46
47
watch +args='lcheck --all':
cargo watch --clear --exec '{{ args }}'
clippy: (watch 'lclippy --tests --all --all-targets -- --deny warnings')
test: (watch 'ltest --all')
vim-test:
nvim --headless -u vim/test/highlight.vim
vim-demo:
nvim --cmd 'set rtp^={{ justfile_directory() }}/vim' -c Boilerplate vim/test/demo.html
ci:
cargo clippy --all --all-targets -- --deny warnings
cargo fmt --all -- --check
cargo test --all
cargo test --all --features axum
cargo test --all --features reload
cargo build --target thumbv6m-none-eabi --package boilerplate
cargo build --target thumbv6m-none-eabi --package boilerplate-tests
publish:
#!/usr/bin/env bash
set -euxo pipefail
rm -rf tmp/release
git clone git@github.com:casey/boilerplate.git tmp/release
VERSION=`sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/\1/p' Cargo.toml | head -1`
cd tmp/release
git tag -a $VERSION -m "Release $VERSION"
git push origin $VERSION
cargo publish --workspace
cd ../..
rm -rf tmp/release
outdated:
cargo outdated --root-deps-only --workspace
unused:
cargo +nightly udeps --workspace
update-changelog:
echo >> CHANGELOG.md
git log --pretty='format:- %s' >> CHANGELOG.md
update-contributors:
changeling update-contributors