From 7e815444ffd25f00a6bcbff8d396c4313c9d04d3 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 12 Mar 2023 18:19:20 -0700 Subject: [PATCH] Add wasm-pack --- .github/workflows/artifacts.yml | 2 +- package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index be0c7f30..cac8efa4 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -26,7 +26,7 @@ jobs: - name: build sample artifacts (updater) working-directory: ./src-tauri run: | - cargo install rsw + cargo install rsw wasm-pack npm install npm run tauri-build env: diff --git a/package.json b/package.json index 3feaaa46..6772b15a 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "version": "0.0.0", "type": "module", "scripts": { - "build": "rsw build && vite build", - "dev": "vite", - "lint": "tsc && eslint . --ext .ts,.tsx", - "preview": "vite preview", "tauri-dev": "concurrently -n app,rsw \"tauri dev\" \"rsw watch\"", "tauri-build": "npm run build:icon && tauri build", + "build": "npm run build:rsw && npm run build:frontend", + "lint": "tsc && eslint . --ext .ts,.tsx", "build:icon": "tauri icon src-tauri/icons/icon.png", + "build:rsw": "rsw build", + "build:frontend": "vite build", "test": "vitest", "coverage": "vitest run --coverage" },