From 921f1de62ad11fa117d68619c4a827871c0aa87c Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 22 Sep 2024 22:17:45 -0700 Subject: [PATCH] Bootstrap command --- DEVELOPMENT.md | 2 +- package.json | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 1e244a0e..cd36fa80 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -8,7 +8,7 @@ Development requires the following tools Then, you can run the app. 1. Checkout the [plugins](https://github.com/yaakapp/plugins) repository -2. Run `YAAK_PLUGINS_DIR="..." npm run build` to generate an icon, fetch external binaries, and build local JS dependencies +2. Run `YAAK_PLUGINS_DIR="..." npm run bootstrap` to fetch external binaries, build local dependencies, etc. 3. Run the desktop app in dev mode `npm start` ## SQLite Migrations diff --git a/package.json b/package.json index 8b40c104..f4c9d1ae 100644 --- a/package.json +++ b/package.json @@ -17,15 +17,15 @@ "scripts": { "app-build": "tauri build", "app-dev": "tauri dev --no-watch --config ./src-tauri/tauri-dev.conf.json", - "tauri-before-build": "npm run vendor && npm run --workspaces --if-present build", - "tauri-before-dev": "npm run --workspaces --if-present dev", - "tauri": "tauri", + "bootstrap": "run-p bootstrap:* && npm run --workspaces --if-present build", + "bootstrap:vendor-node": "node scripts/vendor-node.cjs", + "bootstrap:vendor-plugins": "node scripts/vendor-plugins.cjs", + "bootstrap:vendor-protoc": "node scripts/vendor-protoc.cjs", "lint": "npm run --workspaces --if-present lint", - "vendor": "run-p vendor:*", - "vendor:vendor-protoc": "node scripts/vendor-protoc.cjs", - "vendor:vendor-plugins": "node scripts/vendor-plugins.cjs", - "vendor:vendor-node": "node scripts/vendor-node.cjs", - "replace-version": "node scripts/replace-version.cjs" + "replace-version": "node scripts/replace-version.cjs", + "tauri": "tauri", + "tauri-before-build": "npm run bootstrap", + "tauri-before-dev": "npm run --workspaces --if-present dev" }, "devDependencies": { "@tauri-apps/cli": "^2.0.0-rc.16",