mirror of
https://github.com/vacp2p/zerokit.git
synced 2025-01-10 22:36:17 +00:00
13a2c61355
* added wasm-strip fixed docs * requested change * fix installdeps * fix ubuntu * fix macos --------- Co-authored-by: tyshkor <tyshko1@gmail.com>
32 lines
659 B
TOML
32 lines
659 B
TOML
[tasks.pack-build]
|
|
command = "wasm-pack"
|
|
args = ["build", "--release", "--target", "web", "--scope", "waku"]
|
|
|
|
[tasks.pack-rename]
|
|
script = "sed -i.bak 's/rln-wasm/zerokit-rln-wasm/g' pkg/package.json && rm pkg/package.json.bak"
|
|
|
|
[tasks.build]
|
|
clear = true
|
|
dependencies = [
|
|
"pack-build",
|
|
"pack-rename",
|
|
"post-build"
|
|
]
|
|
|
|
[tasks.post-build]
|
|
command = "wasm-strip"
|
|
args = ["./pkg/rln_wasm_bg.wasm"]
|
|
|
|
[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"]
|