Skip to content

Commit

Permalink
fix: add build step to build wasm (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtsukino authored Jun 11, 2024
1 parent 7aff348 commit 4144099
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions build-wasm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# changing directory to ./rs/verifier
cd ./rs/verifier

# checking if node_modules directory exists
if [ ! -d "./node_modules" ]; then
# install the dependencies using npm i command if node_modules not found
npm i
fi

# build the project using npm run build command
npm run build
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
"main": "index.js",
"scripts": {
"build:ui": "NODE_ENV=production webpack --config webpack.web.config.js",
"build:wasm": "build-wasm.sh",
"watch:ui": "NODE_ENV=development webpack --config webpack.web.config.js --watch",
"dev:ui": "NODE_ENV=development webpack-dev-server --config webpack.web.config.js --hot",
"build:server": "NODE_ENV=production webpack --config webpack.server.config.js",
"watch:server": "NODE_ENV=development webpack --config webpack.server.config.js --watch",
"nodemon:server": "NODE_ENV=development nodemon build/server/index.bundle.js",
"dev:server": "NODE_ENV=development concurrently npm:watch:server npm:nodemon:server",
"start": "node build/server/index.bundle.js",
"build": "concurrently npm:build:ui npm:build:server",
"build": "concurrently npm:build:wasm npm:build:ui npm:build:server",
"dev": "concurrently npm:watch:ui npm:dev:server",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
Expand Down
Binary file modified rs/verifier/index.node
Binary file not shown.

0 comments on commit 4144099

Please sign in to comment.