From 496aeeb06d1d9389d7963a650d94ff290625b0cc Mon Sep 17 00:00:00 2001 From: Tunglies Date: Sun, 2 Mar 2025 14:58:59 +0800 Subject: [PATCH] chore: fast-dev and fast-build profile (#2841) * refactor: improve proxy group UI and spacing - Increased spacing in proxy-groups.tsx by adjusting the right position of the alphabet selector to provide better visual separation - Enhanced spacing in proxy-render.tsx with larger margins and padding - Increased group item margins from 8px to 10px with 16px horizontal spacing - Expanded border radius from 8px to 10px for smoother appearance - Improved ProxyHead component spacing with pl: 3, pr: 3.5 - Enhanced grid spacing in proxy collection items from 1 to 1.5 - Adjusted padding for better visual hierarchy These changes create a more polished, spacious layout with improved readability and touch targets. * - Update package.json with improved dev and build scripts: - Add fast-dev profile to development scripts - Configure build:fast with fast-release profile - Add clean command for cargo cleaning --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2cea8a7b..4a7c5a5a 100644 --- a/package.json +++ b/package.json @@ -3,11 +3,10 @@ "version": "2.1.2", "license": "GPL-3.0-only", "scripts": { - "dev": "cross-env RUST_BACKTRACE=1 tauri dev -f verge-dev", - "dev:fast": "cross-env RUST_BACKTRACE=1 tauri dev", - "dev:diff": "cross-env RUST_BACKTRACE=1 tauri dev -f verge-dev", + "dev": "cross-env RUST_BACKTRACE=1 tauri dev -f verge-dev -- --profile fast-dev", + "dev:diff": "cross-env RUST_BACKTRACE=1 tauri dev -f verge-dev -- --profile fast-dev", "build": "cross-env NODE_OPTIONS='--max-old-space-size=4096' tauri build", - "build:fast": "cross-env NODE_OPTIONS='--max-old-space-size=4096' tauri build", + "build:fast": "cross-env NODE_OPTIONS='--max-old-space-size=4096' tauri build -- --profile fast-release", "tauri": "tauri", "web:dev": "vite", "web:build": "tsc --noEmit && vite build", @@ -18,7 +17,8 @@ "portable": "node scripts/portable.mjs", "portable-fixed-webview2": "node scripts/portable-fixed-webview2.mjs", "fix-alpha-version": "node scripts/alpha_version.mjs", - "prepare": "husky" + "prepare": "husky", + "clean": "cd ./src-tauri && cargo clean && cd -" }, "dependencies": { "@dnd-kit/core": "^6.3.1",