Skip to content

Commit

Permalink
📝 (package.json): update build script to compile wasm before extensio…
Browse files Browse the repository at this point in the history
…n and view

  🚀 (package.json): add watch:wasm script to watch for changes in wasm code
  ♻️ (package.json): refactor watch script to include watch:wasm and run concurrently
  • Loading branch information
isfopo committed Oct 27, 2024
1 parent 267624b commit ea8b2c1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,16 @@
},
"scripts": {
"vscode:prepublish": "npm run compile",
"build": "npm run compile:view && npm run compile:extension && cargo build --target wasm32-unknown-unknown",
"generate:model": "wit2ts --outDir ./src ./wit",
"compile:wasm": "cargo build --target wasm32-unknown-unknown",
"compile:extension": "tsc -b",
"compile:view": "webpack --config src/view/webpack.config.mjs",
"build": "npm run compile:view && npm run compile:extension && npm run compile:wasm",
"watch:wasm": "cargo build --target wasm32-unknown-unknown",
"watch:extension": "tsc -b -w",
"watch:view": "webpack --config src/view/webpack.config.mjs --watch",
"watch": "concurrently \"npm run watch:view\" \"npm run watch:extension\" && cargo build --target wasm32-unknown-unknown",
"watch": "npm run watch:wasm && concurrently \"npm run watch:view\" \"npm run watch:extension\"",
"lint": "eslint ./src",
"generate:model": "wit2ts --outDir ./src ./wit",
"serve": "serve --cors -l 5000 --ssl-cert $HOME/certs/localhost.pem --ssl-key $HOME/certs/localhost-key.pem",
"clean": "rm -rf node_modules && npm install"
}
Expand Down

0 comments on commit ea8b2c1

Please sign in to comment.