From 90523535e87e83667b5bb08a5945d169fdbfa637 Mon Sep 17 00:00:00 2001 From: HolbyFPV <61704528+HolbyFPV@users.noreply.github.com> Date: Sun, 1 Dec 2024 03:08:35 -0500 Subject: [PATCH] chore: add `dev:local` npm command (#171) --- CONTRIBUTING.md | 5 ++++- package.json | 1 + packages/client-api/package.json | 1 + packages/desktop/package.json | 1 + packages/settings-ui/package.json | 3 ++- 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7854173a..3fff0c54 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,8 +17,11 @@ npm i -g pnpm # Install dependencies. pnpm i -# Start in development mode. +# Start in development mode. (config: /zebar/examples/) pnpm dev + +# Start in development mode. (config: ~/.glz/zebar/) +pnpm dev:local ``` After making your changes, push to your fork and [submit a pull request](https://github.com/glzr-io/zebar/pulls). Please try to address only a single feature or fix in the PR so that it's easy to review. diff --git a/package.json b/package.json index cf214979..8141d81a 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "scripts": { "build": "pnpm run -r build", "dev": "pnpm run --filter zebar build && pnpm run --parallel dev", + "dev:local": "pnpm run --filter zebar build && pnpm run --parallel dev:local", "format": "prettier --write . && pnpm run -r format", "lint": "prettier --check . && pnpm run -r lint" }, diff --git a/packages/client-api/package.json b/packages/client-api/package.json index 4ef397dc..c6056213 100644 --- a/packages/client-api/package.json +++ b/packages/client-api/package.json @@ -22,6 +22,7 @@ "scripts": { "build": "tsup src/index.ts --format esm --dts", "dev": "npm run build -- --watch src", + "dev:local": "npm run build -- --watch src", "prepublishOnly": "npm run build" }, "dependencies": { diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 0089c250..f0e8daf8 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -4,6 +4,7 @@ "scripts": { "build": "npm run tauri build -- --verbose", "dev": "npm run tauri dev -- -- -- startup --config-dir=../../examples", + "dev:local": "npm run tauri dev -- -- -- startup", "format": "cargo fmt", "lint": "cargo fmt --check", "tauri": "tauri" diff --git a/packages/settings-ui/package.json b/packages/settings-ui/package.json index 095b5a44..c47a1c06 100644 --- a/packages/settings-ui/package.json +++ b/packages/settings-ui/package.json @@ -4,7 +4,8 @@ "description": "", "scripts": { "build": "vite build", - "dev": "vite" + "dev": "vite", + "dev:local": "vite" }, "dependencies": { "@glzr/components": "1.0.2",