From ea8b2c181d925b74f31589752c488b375f0094bc Mon Sep 17 00:00:00 2001 From: Isaac Poole Date: Sun, 27 Oct 2024 12:37:03 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20(package.json):=20update=20build?= =?UTF-8?q?=20script=20to=20compile=20wasm=20before=20extension=20and=20vi?= =?UTF-8?q?ew=20=20=20=F0=9F=9A=80=20(package.json):=20add=20watch:wasm=20?= =?UTF-8?q?script=20to=20watch=20for=20changes=20in=20wasm=20code=20=20=20?= =?UTF-8?q?=E2=99=BB=EF=B8=8F=20(package.json):=20refactor=20watch=20scrip?= =?UTF-8?q?t=20to=20include=20watch:wasm=20and=20run=20concurrently?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5034402..fe4c278 100644 --- a/package.json +++ b/package.json @@ -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" }