-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
123 lines (113 loc) · 2.32 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[env]
CARGO_MAKE_RUN_CODECOV = true
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
CARGO_MAKE_CARGO_BUILD_TEST_FLAGS = "--lib"
CARGO_MAKE_COVERAGE_PROVIDER = "kcov"
[tasks.build-wasm]
workspace = false
cwd = "crates/dwn-rs-wasm"
command = "wasm-pack"
args = [
"build",
"--target",
"nodejs",
"--out-name",
"index",
"--",
"--no-default-features",
"--features",
"surrealdb-wasm",
"--features",
"no-std",
]
dependencies = ["install-wasm-pack"]
[tasks.build-wasm-no-opt]
workspace = false
cwd = "crates/dwn-rs-wasm"
command = "wasm-pack"
args = [
"build",
"--no-opt",
"--target",
"nodejs",
"--out-name",
"index",
"--",
"--no-default-features",
"--features",
"surrealdb-wasm",
"--features",
"no-std",
]
dependencies = ["install-wasm-pack"]
[tasks.build-wasm-browser]
workspace = false
cwd = "crates/dwn-rs-wasm"
command = "wasm-pack"
args = [
"build",
"--target",
"web",
"--out-name",
"index",
"--out-dir",
"browsers",
"--",
"--no-default-features",
"--features",
"surrealdb-wasm",
"--features",
"no-std",
]
dependencies = ["install-wasm-pack"]
[tasks.build-wasm-browser-no-opt]
workspace = false
cwd = "crates/dwn-rs-wasm"
command = "wasm-pack"
args = [
"build",
"--no-opt",
"--target",
"web",
"--out-name",
"index",
"--out-dir",
"browsers",
"--",
"--no-default-features",
"--features",
"surrealdb-wasm",
"--features",
"no-std",
]
dependencies = ["install-wasm-pack"]
[tasks.install-npm-deps]
workspace = false
cwd = "crates/dwn-rs-wasm"
command = "npm"
args = ["install", "--include", "dev"]
[tasks.test-store-js]
workspace = false
cwd = "crates/dwn-rs-wasm"
command = "node"
args = ["node_modules/mocha/bin/mocha.js", "tests/test.js", "--bail", "--exit"]
dependencies = ["build-wasm-no-opt", "install-npm-deps"]
[tasks.test-store-js-browser]
workspace = false
cwd = "crates/dwn-rs-wasm"
command = "npx"
args = ["wtr"]
dependencies = [
"build-wasm-browser-no-opt",
"install-npm-deps",
"_playwright-install",
]
[tasks._playwright-install]
args = ["playwright", "install", "--with-deps"]
workspace = false
cwd = "crates/dwn-rs-wasm"
command = "npx"
dependencies = ["install-npm-deps"]
[tasks.test-cargo]
command = "cargo"
args = ["test", "--", "--nocapture"]