103d907781
This prevents cases say where the web app is running in a terminal, but when we try to run the desktop app it silently switches to a different and then failing to load in a manner that is harder to debug compared to if it'd failed outright. Ref: - https://github.com/vercel/next.js/discussions/23932#discussioncomment-599284
50 lines
2.9 KiB
JSON
50 lines
2.9 KiB
JSON
{
|
|
"name": "ente-web",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"workspaces": [
|
|
"apps/*",
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"build": "yarn build:photos",
|
|
"build:accounts": "yarn workspace accounts next build",
|
|
"build:auth": "yarn workspace auth next build",
|
|
"build:cast": "yarn workspace cast next build",
|
|
"build:payments": "yarn workspace payments build",
|
|
"build:photos": "yarn workspace photos next build",
|
|
"build:staff": "yarn workspace staff build",
|
|
"deploy:accounts": "open 'https://github.com/ente-io/ente/compare/deploy/accounts...main?quick_pull=1&title=[web]+Deploy+accounts&body=Deploy+accounts.ente.io'",
|
|
"deploy:auth": "open 'https://github.com/ente-io/ente/compare/deploy/auth...main?quick_pull=1&title=[web]+Deploy+auth&body=Deploy+auth.ente.io'",
|
|
"deploy:cast": "open 'https://github.com/ente-io/ente/compare/deploy/cast...main?quick_pull=1&title=[web]+Deploy+cast&body=Deploy+cast.ente.io'",
|
|
"deploy:payments": "open 'https://github.com/ente-io/ente/compare/deploy/payments...main?quick_pull=1&title=[web]+Deploy+payments&body=Deploy+payments.ente.io'",
|
|
"deploy:photos": "open 'https://github.com/ente-io/ente/compare/deploy/photos...main?quick_pull=1&title=[web]+Deploy+photos&body=Deploy+web.ente.io'",
|
|
"dev": "yarn dev:photos",
|
|
"dev:accounts": "yarn workspace accounts next dev -p 3001",
|
|
"dev:albums": "yarn workspace photos next dev -p 3002",
|
|
"dev:auth": "yarn workspace auth next dev -p 3000",
|
|
"dev:cast": "yarn workspace cast next dev -p 3001",
|
|
"dev:payments": "yarn workspace payments dev",
|
|
"dev:photos": "yarn workspace photos next dev -p 3000",
|
|
"dev:staff": "yarn workspace staff dev",
|
|
"lint": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --check --log-level warn .\" \"yarn workspaces run eslint --report-unused-disable-directives .\" \"yarn workspaces run tsc\"",
|
|
"lint-fix": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --write --log-level warn .\" \"yarn workspaces run eslint --report-unused-disable-directives --fix .\" \"yarn workspaces run tsc\"",
|
|
"preview": "yarn preview:photos",
|
|
"preview:accounts": "yarn build:accounts && python3 -m http.server -d apps/accounts/out 3001",
|
|
"preview:auth": "yarn build:auth && python3 -m http.server -d apps/auth/out 3000",
|
|
"preview:cast": "yarn build:cast && python3 -m http.server -d apps/accounts/out 3001",
|
|
"preview:payments": "yarn workspace payments preview",
|
|
"preview:photos": "yarn build:photos && python3 -m http.server -d apps/photos/out 3000",
|
|
"preview:staff": "yarn workspace staff preview"
|
|
},
|
|
"resolutions": {
|
|
"libsodium": "0.7.9"
|
|
},
|
|
"devDependencies": {
|
|
"concurrently": "^8.2.2",
|
|
"eslint": "^8",
|
|
"prettier": "^3",
|
|
"typescript": "^5"
|
|
},
|
|
"packageManager": "yarn@1.22.21"
|
|
}
|