generated from RustLangES/cfworker-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
41 lines (32 loc) · 1.05 KB
/
Makefile.toml
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
[config]
skip_core_tasks = true
skip_git_env_info = true
skip_rust_env_info = true
skip_crate_env_info = true
[env]
CARGO_MAKE_WORKSPACE_EMULATION = true
CARGO_MAKE_CRATE_WORKSPACE_MEMBERS = ["./crates/backend/", "./crates/models/", "./frontend"]
[tasks.default]
alias = "dev"
[tasks.build]
dependencies = ["build-frontend"]
[tasks.dev]
dependencies = ["run-backend", "run-frontend"]
[tasks.init]
dependencies = ["init-nix", "init-npx"]
[tasks.init-nix]
condition.env_true = ["IN_NIX_SHELL"]
script.pre = "wrangler d1 create forms"
script.main = "wrangler d1 apply forms"
script.post = "echo 'Your Database has created with name: forms'"
[tasks.init-npx]
condition.env_false = ["IN_NIX_SHELL"]
script.pre = "npx wrangler d1 create forms"
script.main = "npx wrangler d1 migrations apply forms"
script.post = "echo 'Your Database has created with name: forms'"
[tasks.migration-new]
command = "wrangler"
args = ["d1", "migrations", "create", "mail-subscriptions"]
[tasks.migration-apply]
command = "wrangler"
args = ["d1", "migrations", "apply", "mail-subscriptions"]