|
|
@ -6,37 +6,37 @@ |
|
|
|
"name": "Time Safari Team" |
|
|
|
}, |
|
|
|
"scripts": { |
|
|
|
"start:web": "vite --config vite.config.web.mts --host", |
|
|
|
"serve:web": "vite preview", |
|
|
|
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src", |
|
|
|
"lint-fix": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src", |
|
|
|
"prebuild": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src && node sw_combine.js && node scripts/copy-wasm.js", |
|
|
|
"test:all": "npm run test:prerequisites && npm run build && npm run test:web && npm run test:mobile", |
|
|
|
"test:prerequisites": "node scripts/check-prerequisites.js", |
|
|
|
"test:web": "npx playwright test -c playwright.config-local.ts --trace on", |
|
|
|
"test:mobile": "npm run build:capacitor && npm run test:android && npm run test:ios", |
|
|
|
"test:android": "node scripts/test-android.js", |
|
|
|
"test:ios": "node scripts/test-ios.js", |
|
|
|
"check:android-device": "adb devices | grep -w 'device' || (echo 'No Android device connected' && exit 1)", |
|
|
|
"check:ios-device": "xcrun xctrace list devices 2>&1 | grep -w 'Booted' || (echo 'No iOS simulator running' && exit 1)", |
|
|
|
"clean:electron": "rimraf dist-electron", |
|
|
|
"build:pywebview": "vite build --config vite.config.pywebview.mts", |
|
|
|
"build:electron": "npm run clean:electron && tsc -p tsconfig.electron.json && vite build --config vite.config.electron.mts && node scripts/build-electron.js", |
|
|
|
"build:capacitor": "vite build --config vite.config.capacitor.mts", |
|
|
|
"build:web": "VITE_GIT_HASH=`git log -1 --pretty=format:%h` vite build --config vite.config.web.mts", |
|
|
|
"start:electron": "electron .", |
|
|
|
"clean:android": "adb uninstall app.timesafari.app || true", |
|
|
|
"build-start:pywebview": "vite build --config vite.config.pywebview.mts && .venv/bin/python src/pywebview/main.py", |
|
|
|
"build:android": "npm run clean:android && rm -rf dist && npm run build:web && npm run build:capacitor && cd android && ./gradlew clean && ./gradlew assembleDebug && cd .. && npx cap sync android && npx capacitor-assets generate --android && npx cap open android", |
|
|
|
"build:capacitor": "vite build --config vite.config.capacitor.mts", |
|
|
|
"build:electron": "npm run clean:electron && tsc -p tsconfig.electron.json && vite build --config vite.config.electron.mts && node scripts/build-electron.js", |
|
|
|
"build:electron-linux": "npm run build:electron && electron-builder --linux AppImage", |
|
|
|
"build:electron-linux-deb": "npm run build:electron && electron-builder --linux deb", |
|
|
|
"build:electron-linux-prod": "NODE_ENV=production npm run build:electron && electron-builder --linux AppImage", |
|
|
|
"build:electron-mac": "npm run build:electron-prod && electron-builder --mac", |
|
|
|
"build:electron-mac-universal": "npm run build:electron-prod && electron-builder --mac --universal", |
|
|
|
"build:electron-prod": "NODE_ENV=production npm run build:electron", |
|
|
|
"build-start:pywebview": "vite build --config vite.config.pywebview.mts && .venv/bin/python src/pywebview/main.py", |
|
|
|
"build:pywebview": "vite build --config vite.config.pywebview.mts", |
|
|
|
"build:web": "VITE_GIT_HASH=`git log -1 --pretty=format:%h` vite build --config vite.config.web.mts", |
|
|
|
"check:android-device": "adb devices | grep -w 'device' || (echo 'No Android device connected' && exit 1)", |
|
|
|
"check:ios-device": "xcrun xctrace list devices 2>&1 | grep -w 'Booted' || (echo 'No iOS simulator running' && exit 1)", |
|
|
|
"clean:android": "adb uninstall app.timesafari.app || true", |
|
|
|
"clean:electron": "rimraf dist-electron", |
|
|
|
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src", |
|
|
|
"lint-fix": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src", |
|
|
|
"package:pywebview-linux": "vite build --config vite.config.pywebview.mts && .venv/bin/python -m PyInstaller --name TimeSafari --add-data 'dist:www' src/pywebview/main.py", |
|
|
|
"package:pywebview-win": "vite build --config vite.config.pywebview.mts && .venv/Scripts/python -m PyInstaller --name TimeSafari --add-data 'dist;www' src/pywebview/main.py", |
|
|
|
"package:pywebview-mac": "vite build --config vite.config.pywebview.mts && .venv/bin/python -m PyInstaller --name TimeSafari --add-data 'dist:www' src/pywebview/main.py", |
|
|
|
"build:electron-mac": "npm run build:electron-prod && electron-builder --mac", |
|
|
|
"build:electron-mac-universal": "npm run build:electron-prod && electron-builder --mac --universal" |
|
|
|
"package:pywebview-win": "vite build --config vite.config.pywebview.mts && .venv/Scripts/python -m PyInstaller --name TimeSafari --add-data 'dist;www' src/pywebview/main.py", |
|
|
|
"prebuild": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src && node sw_combine.js && node scripts/copy-wasm.js", |
|
|
|
"serve:web": "vite preview", |
|
|
|
"start:electron": "electron .", |
|
|
|
"start:web": "vite --config vite.config.web.mts --host", |
|
|
|
"test:all": "npm run test:prerequisites && npm run build && npm run test:web && npm run test:mobile", |
|
|
|
"test:android": "node scripts/test-android.js", |
|
|
|
"test:ios": "node scripts/test-ios.js", |
|
|
|
"test:mobile": "npm run build:capacitor && npm run test:android && npm run test:ios", |
|
|
|
"test:prerequisites": "node scripts/check-prerequisites.js", |
|
|
|
"test:web": "npx playwright test -c playwright.config-local.ts --trace on" |
|
|
|
}, |
|
|
|
"dependencies": { |
|
|
|
"@capacitor-community/sqlite": "6.0.2", |
|
|
|