chore: update build scripts to include separate build commands for nightly and development modes

This commit is contained in:
Nikita Galaiko 2023-09-28 13:31:40 +02:00 committed by GitButler
parent 3b6aafc705
commit 80f43ffe32
6 changed files with 12 additions and 2 deletions

View File

@ -5,6 +5,8 @@
"dev": "pnpm --filter @gitbutler/ui run dev",
"test": "pnpm --filter @gitbutler/ui run test",
"build": "pnpm --filter @gitbutler/ui run build",
"build:nightly": "pnpm --filter @gitbutler/ui run build:nightly",
"build:development": "pnpm --filter @gitbutler/ui run build:development",
"check": "pnpm --filter @gitbutler/ui run check",
"lint": "pnpm --filter @gitbutler/ui run lint",
"format": "pnpm --filter @gitbutler/ui run format",

View File

@ -48,7 +48,7 @@ sha2 = "0.10.6"
similar = { version = "2.2.1", features = ["unicode"] }
ssh-key = { version = "0.6.1", features = [ "alloc", "ed25519" ] }
tantivy = "0.20.2"
tauri = { version = "1.4", features = [ "window-maximize", "window-unmaximize", "process-relaunch", "dialog-open", "fs-read-file", "path-all", "protocol-asset", "shell-open", "system-tray", "window-start-dragging"] }
tauri = { version = "1.4", features = [ "updater", "window-maximize", "window-unmaximize", "process-relaunch", "dialog-open", "fs-read-file", "path-all", "protocol-asset", "shell-open", "system-tray", "window-start-dragging"] }
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
tempfile = "3.8"
thiserror = "1.0.44"

View File

@ -1,7 +1,7 @@
{
"build": {
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build",
"beforeBuildCommand": "pnpm build:development",
"devPath": "http://localhost:1420",
"distDir": "../ui/build",
"withGlobalTauri": false

View File

@ -1,4 +1,7 @@
{
"build": {
"beforeBuildCommand": "pnpm build:nightly"
},
"package": {
"productName": "GitButler Nightly"
},

View File

@ -1,4 +1,7 @@
{
"build": {
"beforeBuildCommand": "pnpm build"
},
"package": {
"productName": "GitButler"
},

View File

@ -6,6 +6,8 @@
"scripts": {
"dev": "vite dev",
"test": "vitest run --mode development",
"build:development": "vite build --mode development",
"build:nightly": "vite build --mode nightly",
"build": "vite build",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "pnpm check --watch",