Skip to content

Commit b815cad

Browse files
authored
Start UI Native V3
1 parent 2f41efb commit b815cad

429 files changed

Lines changed: 12444 additions & 10433 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ž.env.exampleβ€Ž

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
API_URL='https://demo.start-ui.com/api/rest'
2-
OPEN_API_URL='https://demo.start-ui.com/api/openapi.json'
1+
EXPO_PUBLIC_BASE_URL=https://demo.start-ui.com
2+
3+
# OPTIONAL TO OVERRIDE
4+
# EXPO_PUBLIC_AUTH_URL=https://demo.start-ui.com/api/auth
5+
# EXPO_PUBLIC_OPENAPI_URL=https://demo.start-ui.com/api/openapi/app/schema

β€Ž.github/assets/thumbnail.pngβ€Ž

825 KB
Loading
Lines changed: 46 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,63 @@
11
name: πŸ”Ž Code Quality
22

3+
env:
4+
EXPO_PUBLIC_API_URL: ${{ vars.API_URL }}
5+
EXPO_PUBLIC_AUTH_URL: ${{ vars.AUTH_URL }}
6+
EXPO_PUBLIC_OPENAPI_URL: ${{ vars.OPENAPI_URL }}
7+
38
on:
49
push:
5-
branches:
6-
- master
7-
- main
8-
- develop
9-
- staging
10+
branches: [main]
1011
pull_request:
1112

12-
env:
13-
API_URL: https://demo.start-ui.com/api/rest
14-
OPEN_API_URL: https://demo.start-ui.com/api/openapi.json
15-
1613
jobs:
17-
lint-code:
14+
linter:
15+
name: 🧹 Linter
1816
timeout-minutes: 10
19-
name: Lint and Type Check
2017
runs-on: ubuntu-latest
21-
2218
steps:
23-
- uses: actions/checkout@v3
19+
- name: πŸ— Setup repo
20+
uses: actions/checkout@v4
21+
22+
- name: πŸ— Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 'lts/*'
2426

25-
- uses: actions/setup-node@v2
27+
- name: πŸ“¦ Install pnpm
28+
uses: pnpm/action-setup@v4
2629
with:
27-
node-version: 22
30+
version: 10
31+
32+
- name: πŸ“¦ Install dependencies
33+
run: pnpm install
34+
35+
- name: Run eslint
36+
run: pnpm run lint:eslint
37+
38+
typescriptChecker:
39+
name: 🟦 TypeScript Checker
40+
timeout-minutes: 10
41+
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
node: [22, 'lts/*']
45+
steps:
46+
- uses: actions/checkout@v4
2847

29-
- uses: pnpm/action-setup@v4
30-
name: Install pnpm
48+
- name: Install pnpm
49+
uses: pnpm/action-setup@v4
3150
with:
32-
version: 8
33-
run_install: false
34-
35-
- name: Get pnpm store directory
36-
shell: bash
37-
run: |
38-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
39-
40-
- name: Cache node modules
41-
uses: actions/cache@v4
42-
env:
43-
cache-name: cache-node-modules
51+
version: 10
52+
53+
- name: Setup Node.js
54+
uses: actions/setup-node@v4
4455
with:
45-
path: ${{ env.STORE_PATH }}
46-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
47-
restore-keys: |
48-
${{ runner.os }}-pnpm-store-${{ env.cache-name }}-
49-
${{ runner.os }}-pnpm-store-
50-
${{ runner.os }}-
51-
52-
- name: Install dependencies
56+
node-version: ${{ matrix.node }}
57+
cache: 'pnpm'
58+
59+
- name: Install deps
5360
run: pnpm install
5461

55-
- name: TypeScript check
56-
run: pnpm lint:staged
62+
- name: Run Typescript checker
63+
run: pnpm run lint:ts
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: πŸ”¨ EAS build
2+
3+
env:
4+
EXPO_PUBLIC_API_URL: ${{ vars.API_URL }}
5+
EXPO_PUBLIC_AUTH_URL: ${{ vars.AUTH_URL }}
6+
EXPO_PUBLIC_OPENAPI_URL: ${{ vars.OPENAPI_URL }}
7+
8+
on:
9+
push:
10+
branches: [main]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: πŸ— Setup repo
17+
uses: actions/checkout@v5
18+
19+
- name: πŸ— Setup Node
20+
uses: actions/setup-node@v5
21+
with:
22+
node-version: 'lts/*'
23+
cache: 'pnpm'
24+
25+
- name: πŸ— Setup EAS
26+
uses: expo/expo-github-action@v8
27+
with:
28+
eas-version: latest
29+
token: ${{ secrets.EXPO_TOKEN }}
30+
31+
- name: πŸ“¦ Install dependencies
32+
run: pnpm install
33+
34+
- name: πŸš€ Build app
35+
run: eas build --non-interactive
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: πŸ“± EAS Preview
2+
3+
env:
4+
EXPO_PUBLIC_API_URL: ${{ vars.API_URL }}
5+
EXPO_PUBLIC_AUTH_URL: ${{ vars.AUTH_URL }}
6+
EXPO_PUBLIC_OPENAPI_URL: ${{ vars.OPENAPI_URL }}
7+
8+
on: [pull_request]
9+
jobs:
10+
preview:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: πŸ— Setup repo
14+
uses: actions/checkout@v4
15+
16+
- name: πŸ— Setup pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 10
20+
21+
- name: πŸ— Setup Node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 'lts/*'
25+
26+
- name: πŸ— Setup EAS
27+
uses: expo/expo-github-action@v8
28+
with:
29+
eas-version: latest
30+
token: ${{ secrets.EXPO_TOKEN }}
31+
32+
- name: πŸ“¦ Install dependencies
33+
run: pnpm install
34+
35+
- name: πŸš€ Create preview
36+
uses: expo/expo-github-action/preview@v8
37+
with:
38+
# `github.event.pull_request.head.ref` is only available on `pull_request` triggers.
39+
# Use your own, or keep the automatically inferred branch name from `--auto`, when using different triggers.
40+
command: eas update --auto --branch ${{ github.event.pull_request.head.ref }}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: πŸš€ EAS update
2+
3+
env:
4+
EXPO_PUBLIC_API_URL: ${{ vars.API_URL }}
5+
EXPO_PUBLIC_AUTH_URL: ${{ vars.AUTH_URL }}
6+
EXPO_PUBLIC_OPENAPI_URL: ${{ vars.OPENAPI_URL }}
7+
8+
on:
9+
push:
10+
branches: [main]
11+
12+
jobs:
13+
update:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: πŸ— Setup repo
17+
uses: actions/checkout@v5
18+
19+
- name: πŸ— Setup Node
20+
uses: actions/setup-node@v5
21+
with:
22+
node-version: 'lts/*'
23+
cache: 'pnpm'
24+
25+
- name: πŸ— Setup EAS
26+
uses: expo/expo-github-action@v8
27+
with:
28+
eas-version: latest
29+
token: ${{ secrets.EXPO_TOKEN }}
30+
31+
- name: πŸ“¦ Install dependencies
32+
run: pnpm install
33+
34+
- name: πŸš€ Create update
35+
run: eas update --auto --non-interactive

β€Ž.github/workflows/preview.ymlβ€Ž

Lines changed: 0 additions & 49 deletions
This file was deleted.

β€Ž.github/workflows/update.ymlβ€Ž

Lines changed: 0 additions & 51 deletions
This file was deleted.

β€Ž.gitignoreβ€Ž

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,54 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
14
node_modules/
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# Expo
212
.expo/
313
dist/
4-
npm-debug.*
14+
web-build/
15+
expo-env.d.ts
16+
17+
# Native
18+
.kotlin/
19+
*.orig.*
520
*.jks
621
*.p8
722
*.p12
823
*.key
924
*.mobileprovision
10-
*.orig.*
11-
web-build/
1225

13-
# macOS
14-
.DS_Store
15-
16-
# Temporary files created by Metro to check the health of the file watcher
26+
# Metro
1727
.metro-health-check*
18-
src/api/generated-api.*
1928

29+
# debug
30+
npm-debug.log*
31+
yarn-debug.log*
32+
yarn-error.log*
33+
34+
# misc
35+
.DS_Store
36+
*.pem
37+
/.vscode/*
38+
!/.vscode/extensions.json
39+
!/.vscode/settings.example.json
40+
.idea/
41+
.eslintcache
42+
.db
43+
tsconfig.tsbuildinfo
44+
45+
# local env files
2046
.env
21-
.env.production
47+
.env.local
48+
.env.development.local
49+
.env.test.local
50+
.env.production.local
2251

23-
devices.json
2452

25-
# VSCode
26-
/.vscode/*
27-
!/.vscode/extensions.json
53+
.tanstack
54+
src/lib/hey-api/generated/*

β€Ž.npmrcβ€Ž

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
Β (0)