add 'npm run dev' for a quick dev-startup command

This commit is contained in:
2026-10-10 07:46:34 -06:00
parent 7af00aff6f
commit e96f501ec0
3 changed files with 12 additions and 11 deletions
+5 -5
View File
@@ -10,7 +10,7 @@ This guide explains how to build TimeSafari for different platforms using the co
# 🖥️ Web Development # 🖥️ Web Development
npm install # setup -- and pkgx.dev `dev` command before this will set environment with npm, etc 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: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 npm run build:web:prod # Production build
# 📱 Mobile Development # 📱 Mobile Development
@@ -44,7 +44,7 @@ npm run test:web # Run web tests to verify setup
```bash ```bash
# Start web development server # Start web development server
npm run build:web:dev # Opens http://localhost:8080 npm run dev # Opens http://localhost:8080
# For mobile development # For mobile development
npm run build:ios # Opens Xcode with iOS project npm run build:ios # Opens Xcode with iOS project
@@ -225,7 +225,7 @@ npm install
```bash ```bash
# Local development # 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 # Web builds
npm run build:web # Development build (starts dev server with hot reload) 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 ### 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 ### Web Build for Server
@@ -2407,7 +2407,7 @@ npm run clean:electron # Electron only
# Clean and rebuild # Clean and rebuild
npm run clean:all npm run clean:all
npm install npm install
npm run build:web:dev npm run dev
``` ```
## Appendix B: Vite Configuration Files Reference ## Appendix B: Vite Configuration Files Reference
+6 -6
View File
@@ -20,7 +20,7 @@ npm install
### Web ### Web
```bash ```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. 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 ```bash
# Show only errors # Show only errors
VITE_LOG_LEVEL=error npm run build:web:dev VITE_LOG_LEVEL=error npm run dev
# Show warnings and errors # 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) # 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 # Show all log levels including debug
VITE_LOG_LEVEL=debug npm run build:web:dev VITE_LOG_LEVEL=debug npm run dev
``` ```
### Available Levels ### Available Levels
@@ -147,7 +147,7 @@ Platform-specific end-to-end guides:
# Then restart your development server # Then restart your development server
npm run build:electron:dev # For Electron npm run build:electron:dev # For Electron
npm run build:web:dev # For Web npm run dev # For Web
``` ```
### What It Does ### What It Does
+1
View File
@@ -110,6 +110,7 @@
"clean:electron": "./scripts/build-electron.sh --clean", "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", "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", "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:down": "docker-compose down",
"docker:logs": "docker-compose logs -f", "docker:logs": "docker-compose logs -f",
"docker:up": "docker-compose up", "docker:up": "docker-compose up",