Skip to content
Merged
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
57 changes: 57 additions & 0 deletions .github/workflows/verify-and-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Verify and Build

on:
push:
workflow_dispatch:

jobs:
verify:
name: Verify
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Install dependencies
run: npm ci --force

- name: Typecheck
run: npm run lint-typecheck
- name: ESLint
run: npm run lint-eslint
- name: Prettier
run: npm run lint-prettier
- name: Knip
run: npm run lint-knip

- name: Test
run: npm run test:ci

build:
name: Build
runs-on: ubuntu-latest
needs: verify
if: ${{ github.event_name == 'workflow_dispatch' }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Install dependencies
run: npm ci --force

- name: Build
run: npm run build
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
force=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
15 changes: 13 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,21 @@
"backgroundColor": "#ffffff"
},
"edgeToEdgeEnabled": true,
"predictiveBackGestureEnabled": false
"predictiveBackGestureEnabled": false,
"permissions": [
"android.permission.ACCESS_COARSE_LOCATION",
"android.permission.ACCESS_FINE_LOCATION"
]
},
"web": {
"favicon": "./assets/favicon.png"
}
},
"extra": {
"router": {},
"eas": {
"projectId": "2a31599b-e0fb-4b18-b1f6-5097fa42ac9a"
}
},
"owner": "sito8943"
}
}
21 changes: 21 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"cli": {
"version": ">= 20.0.0",
"appVersionSource": "remote"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
"autoIncrement": true
}
},
"submit": {
"production": {}
}
}
11 changes: 10 additions & 1 deletion knip.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ import { type KnipConfiguration } from "knip"
const config: KnipConfiguration = {
$schema: "https://unpkg.com/knip@6/schema.json",
ignoreFiles: ["dist/**", "web-build/**"],
ignoreDependencies: ["expo-updates", "expo-system-ui"],
ignoreDependencies: [
"expo-updates",
"expo-system-ui",
"@expo/vector-icons",
"eslint-config-expo",
],
// Each modlet's index.ts is its public API surface. Treating barrels as
// entries stops knip flagging re-exports only consumed inside the feature,
// while non-index implementation files are still checked for dead exports.
entry: ["src/shared/**/index.ts"],
}

export default config
Loading
Loading