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>
35 lines
896 B
Makefile
35 lines
896 B
Makefile
UNAME_S := $(shell uname -s)
|
|
ifeq ($(UNAME_S),Linux)
|
|
TASKSET := taskset -c 0-11
|
|
else
|
|
TASKSET :=
|
|
endif
|
|
|
|
build: build-go-opt build-rust build-package-json
|
|
|
|
check-fmt: check-fmt-go check-fmt-rust
|
|
|
|
build-go:
|
|
$(MAKE) -C go-mix-conn build-go
|
|
|
|
build-go-opt:
|
|
$(MAKE) -C go-mix-conn build-go-opt
|
|
|
|
build-rust:
|
|
$(TASKSET) wasm-pack build --scope nymproject --target web --out-dir ../../dist/wasm/mix-fetch
|
|
# $(TASKSET) wasm-pack build --scope nymproject --target no-modules --out-dir ../../dist/wasm/mix-fetch
|
|
$(TASKSET) wasm-opt -Oz -o ../../dist/wasm/mix-fetch/mix_fetch_wasm_bg.wasm ../../dist/wasm/mix-fetch/mix_fetch_wasm_bg.wasm
|
|
|
|
build-rust-debug:
|
|
wasm-pack build --debug --scope nymproject --target no-modules
|
|
|
|
build-package-json:
|
|
node build.mjs
|
|
|
|
check-fmt-go:
|
|
$(MAKE) -C go-mix-conn check-fmt
|
|
|
|
check-fmt-rust:
|
|
cargo fmt --check
|
|
cargo clippy --target wasm32-unknown-unknown -- -Dwarnings
|