Clean up code. Reorganize files. Port stuff from other branches. + more
This turns the project into a monorepo using pnpm workspaces, dramatically simplifying the build process. It also fixes a lot of bugs and just generally makes the codebase a lot cleaner.
This commit is contained in:
11
packages/solver/package.json
Normal file
11
packages/solver/package.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "solver",
|
||||
"description": "Zig WASM POW solver, not an actual node package, just using this so that pnpm will build it for me",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "pnpm run build:wasm && pnpm run minify",
|
||||
"build:wasm": "zig build --release=fast -Dtarget=wasm32-freestanding -Dcpu=generic+bulk_memory+bulk_memory_opt+simd128+tail_call",
|
||||
"minify": "wasm-opt --strip-debug --strip-dwarf -O4 -o zig-out/bin/solver.wasm zig-out/bin/solver.wasm && wasm-opt --strip-debug --strip-dwarf -O4 -o zig-out/bin/validator.wasm zig-out/bin/validator.wasm"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user