From e96f501ec0a9371dc0a23145d022c1972fe976a6 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 10 Oct 2026 07:46:34 -0600 Subject: [PATCH] add 'npm run dev' for a quick dev-startup command --- BUILDING.md | 10 +++++----- README.md | 12 ++++++------ package.json | 1 + 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index a6f618b8..fd810b72 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -10,7 +10,7 @@ This guide explains how to build TimeSafari for different platforms using the co # 🖥️ Web Development npm install # setup -- and pkgx.dev `dev` command before this will set environment with npm, etc npm run build:web:serve -- --test # Start with test endorser server -npm run build:web:dev # Start development server with hot reload with local endorser server +npm run dev # Start development server with hot reload with local endorser server npm run build:web:prod # Production build # 📱 Mobile Development @@ -44,7 +44,7 @@ npm run test:web # Run web tests to verify setup ```bash # Start web development server -npm run build:web:dev # Opens http://localhost:8080 +npm run dev # Opens http://localhost:8080 # For mobile development npm run build:ios # Opens Xcode with iOS project @@ -225,7 +225,7 @@ npm install ```bash # Local development -npm run build:web:dev # Start development server with hot reload +npm run dev # Start development server with hot reload (shortcut for `build:web:dev`) # Web builds npm run build:web # Development build (starts dev server with hot reload) @@ -241,7 +241,7 @@ npm run build:web:docker:prod # Production build with Docker containerizat ### Local Development -Start the development server using `npm run build:web:dev` or `npm run build:web` (both start the development server with hot reload). +Start the development server using `npm run dev` (a shortcut for `npm run build:web:dev`) or `npm run build:web` (both start the development server with hot reload). ### Web Build for Server @@ -2407,7 +2407,7 @@ npm run clean:electron # Electron only # Clean and rebuild npm run clean:all npm install -npm run build:web:dev +npm run dev ``` ## Appendix B: Vite Configuration Files Reference diff --git a/README.md b/README.md index 61f92435..8b4bb72b 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ npm install ### Web ```bash -npm run build:web:dev +npm run dev ``` Then go to [the test page](http://localhost:8080/test) and click "Become User 0" to take action on the platform. @@ -98,16 +98,16 @@ TimeSafari supports configurable logging levels via the `VITE_LOG_LEVEL` environ ```bash # Show only errors -VITE_LOG_LEVEL=error npm run build:web:dev +VITE_LOG_LEVEL=error npm run dev # Show warnings and errors -VITE_LOG_LEVEL=warn npm run build:web:dev +VITE_LOG_LEVEL=warn npm run dev # Show info, warnings, and errors (default) -VITE_LOG_LEVEL=info npm run build:web:dev +VITE_LOG_LEVEL=info npm run dev # Show all log levels including debug -VITE_LOG_LEVEL=debug npm run build:web:dev +VITE_LOG_LEVEL=debug npm run dev ``` ### Available Levels @@ -147,7 +147,7 @@ Platform-specific end-to-end guides: # Then restart your development server npm run build:electron:dev # For Electron -npm run build:web:dev # For Web +npm run dev # For Web ``` ### What It Does diff --git a/package.json b/package.json index 9be05cc5..198374e9 100644 --- a/package.json +++ b/package.json @@ -110,6 +110,7 @@ "clean:electron": "./scripts/build-electron.sh --clean", "clean:ios": "rm -rf ios/App/build ios/App/Pods ios/App/output ios/App/App/public ios/DerivedData ios/capacitor-cordova-ios-plugins ios/App/App/capacitor.config.json ios/App/App/config.xml || true", "deps:update-daily-notification-plugin": "npm install @timesafari/daily-notification-plugin@git+https://gitea.anomalistdesign.com/trent_larson/daily-notification-plugin.git#master", + "dev": "npm run build:web:dev", "docker:down": "docker-compose down", "docker:logs": "docker-compose logs -f", "docker:up": "docker-compose up",