-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathjustfile
30 lines (24 loc) · 945 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
default:
@just --list
generate-all:
just generate-component
just generate-hello-world
just generate-simple
just generate-simple-async
# The purpose of these targets is to make it easy to make changes to the templates and then
# regenerate the generated projects and view the expected changes in a git diff.
generate-component:
rm -rv component-generated
cargo generate --path ./component \
--name component-generated \
--define project-description="An example generated using the component template" \
--define use-gitserver=false
generate-hello-world:
rm -rv hello-world-generated
cargo generate --path ./hello-world --name hello-world-generated
generate-simple:
rm -rv simple-generated
cargo generate --path ./simple --name simple-generated
generate-simple-async:
rm -rv simple-async-generated
cargo generate --path ./simple-async --name simple-async-generated