626d013547
* switch from yarn to pnpm * Remove full-nym-wasm (#6796) * Remove nym-browser-extension (#6798) * Remove nym-browser-extension * remove unused from makefile * Remove Node tester (#6800) * Remove dom-utils (#6801) * gh-actions: remove pnpm version * nuke dist and pkg * add missing dependency * set node version to 24 and pnpm version to 11 * upgrade lock file from pnpm version 9 to 11 * pnpm add approved builds * yarn -> pnpm * upgrade jest version * yarn -> pnpm * Remove unused cfg; clippy! * pnpm: when dev mode is on, unfreeze the lock file * pnpm approve more scripts * pnpm syntax error * add `pnpm i` * disable eslint temporarily while switching to biome in later PR --------- Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com> Co-authored-by: mfahampshire <maxhampshire@pm.me>
31 lines
843 B
Makefile
31 lines
843 B
Makefile
UNAME_S := $(shell uname -s)
|
|
ifeq ($(UNAME_S),Linux)
|
|
TASKSET := taskset -c 0-11
|
|
else
|
|
TASKSET :=
|
|
endif
|
|
|
|
all: build build-node
|
|
|
|
|
|
build: test build-wasm
|
|
|
|
build-wasm:
|
|
$(TASKSET) wasm-pack build --scope nymproject --target web --out-dir ../../dist/wasm/client
|
|
$(TASKSET) wasm-opt -Oz -o ../../dist/wasm/client/nym_client_wasm_bg.wasm ../../dist/wasm/client/nym_client_wasm_bg.wasm
|
|
|
|
build-debug-dev:
|
|
wasm-pack build --debug --scope nymproject --target no-modules
|
|
|
|
build-rust-node:
|
|
$(TASKSET) wasm-pack build --scope nymproject --target nodejs --out-dir ../../dist/node/wasm/client
|
|
$(TASKSET) wasm-opt -Oz -o ../../dist/node/wasm/client/nym_client_wasm_bg.wasm ../../dist/node/wasm/client/nym_client_wasm_bg.wasm
|
|
|
|
build-package-json-node:
|
|
node build-node.mjs
|
|
|
|
build-node: build-rust-node build-package-json-node
|
|
|
|
test:
|
|
wasm-pack test --node
|