Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,8 @@ jobs:
- name: Checks (lint, format, typecheck)
run: npm run check

- name: Export build
- name: Export Android build
run: npx expo export --platform android --output-dir dist

- name: Export Web build
run: npx expo export --platform web --output-dir dist-web && test -f dist-web/index.html
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_modules/
# Expo
.expo/
dist/
dist-web/
web-build/
expo-env.d.ts

Expand Down
7 changes: 6 additions & 1 deletion frontend/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
],
"package": "com.anonymous.timeflow"
},
"plugins": ["expo-sqlite", "expo-location", "@irvingouj/expo-audio-stream"]
"plugins": ["expo-sqlite", "expo-location", "@irvingouj/expo-audio-stream"],
"web": {
"bundler": "metro",
"output": "single",
"favicon": "./assets/icon.png"
}
}
}
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web",
"export:web": "expo export --platform web --output-dir dist",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
Expand All @@ -58,7 +59,7 @@
"typecheck": "tsc --noEmit",
"check": "npm run lint && npm run format:check && npm run typecheck && npm run test",
"postinstall": "patch-package",
"verify:ci": "npm run check && expo export --platform android --output-dir dist"
"verify:ci": "npm run check && expo export --platform android --output-dir dist && expo export --platform web --output-dir dist-web"
},
"private": true,
"jest": {
Expand Down
14 changes: 14 additions & 0 deletions frontend/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"buildCommand": "npx expo export -p web",
"outputDirectory": "dist",
"installCommand": "npm ci",
"devCommand": "npx expo start --web",
"cleanUrls": true,
"framework": null,
"rewrites": [
{
"source": "/:path*",
"destination": "/"
}
]
}
Loading