2022-09-24 14:27:46 +00:00
|
|
|
[tasks.pack-build]
|
|
|
|
command = "wasm-pack"
|
|
|
|
args = ["build", "--release", "--target", "web", "--scope", "waku"]
|
|
|
|
|
|
|
|
[tasks.pack-rename]
|
2022-11-21 15:41:38 +00:00
|
|
|
script = "sed -i.bak 's/rln-wasm/zerokit-rln-wasm/g' pkg/package.json && rm pkg/package.json.bak"
|
2022-09-24 14:27:46 +00:00
|
|
|
|
|
|
|
[tasks.build]
|
|
|
|
clear = true
|
|
|
|
dependencies = [
|
|
|
|
"pack-build",
|
2023-03-24 04:00:48 +00:00
|
|
|
"pack-rename",
|
|
|
|
"post-build"
|
2022-09-24 14:27:46 +00:00
|
|
|
]
|
|
|
|
|
2023-03-24 04:00:48 +00:00
|
|
|
[tasks.post-build]
|
|
|
|
command = "wasm-strip"
|
|
|
|
args = ["./pkg/rln_wasm_bg.wasm"]
|
|
|
|
|
2022-09-24 14:27:46 +00:00
|
|
|
[tasks.test]
|
|
|
|
command = "wasm-pack"
|
|
|
|
args = ["test", "--release", "--node"]
|
|
|
|
dependencies = ["build"]
|
|
|
|
|
|
|
|
[tasks.login]
|
|
|
|
command = "wasm-pack"
|
|
|
|
args = ["login"]
|
|
|
|
|
|
|
|
[tasks.publish]
|
|
|
|
command = "wasm-pack"
|
|
|
|
args = ["publish", "--access", "public", "--target", "web"]
|