create-disposabl-app 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/disposabl.js +541 -0
- package/dist/index.js +91 -8
- package/dist/templates/default/.github/scripts/android-build.sh +18 -0
- package/dist/templates/default/.github/scripts/disposabl.mjs +95 -0
- package/dist/templates/default/.github/scripts/expo-channel.sh +10 -0
- package/dist/templates/default/.github/scripts/expo-env.sh +17 -0
- package/dist/templates/default/.github/scripts/expo-fingerprint.sh +19 -0
- package/dist/templates/default/.github/scripts/expo-update.sh +11 -0
- package/dist/templates/default/.github/scripts/package-release.sh +23 -0
- package/dist/templates/default/.github/scripts/platforms.sh +37 -0
- package/dist/templates/default/.github/scripts/release-publish.sh +28 -0
- package/dist/templates/default/.github/scripts/release-source.sh +14 -0
- package/dist/templates/default/.github/scripts/verify-artifacts.sh +13 -0
- package/dist/templates/default/.github/scripts/web-deploy.sh +10 -0
- package/dist/templates/default/.github/workflows/pipeline.yml +299 -0
- package/dist/templates/default/apps/mobile/AGENTS.md +2 -2
- package/dist/templates/default/apps/mobile/README.md +4 -3
- package/dist/templates/default/apps/mobile/app.json +3 -4
- package/dist/templates/default/apps/mobile/assets/images/android-icon-foreground.png +0 -0
- package/dist/templates/default/apps/mobile/assets/images/android-icon-monochrome.png +0 -0
- package/dist/templates/default/apps/mobile/assets/images/icon.png +0 -0
- package/dist/templates/default/apps/mobile/assets/images/splash-icon.png +0 -0
- package/dist/templates/default/apps/mobile/eas.json +5 -0
- package/dist/templates/default/apps/mobile/package.json +5 -4
- package/dist/templates/default/apps/web/package.json +1 -1
- package/dist/templates/default/apps/web/src/routeTree.gen.ts +0 -44
- package/dist/templates/default/apps/web/src/router/__root.tsx +1 -1
- package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.tsx +0 -1
- package/dist/templates/default/apps/web/src/router/index.tsx +11 -3
- package/dist/templates/default/bun.lock +19 -5
- package/dist/templates/default/bunfig.toml +0 -2
- package/dist/templates/default/package.json +3 -3
- package/dist/templates/default/packages/backend/AGENTS.md +15 -13
- package/dist/templates/default/packages/backend/README.md +6 -28
- package/dist/templates/default/packages/backend/convex/_generated/ai/ai-files.state.json +1 -1
- package/dist/templates/default/packages/backend/convex/_generated/api.d.ts +32 -6
- package/dist/templates/default/packages/backend/convex/_generated/server.d.ts +8 -0
- package/dist/templates/default/packages/backend/convex/apps/actions/create.ts +19 -0
- package/dist/templates/default/packages/backend/convex/apps/internal.ts +197 -0
- package/dist/templates/default/packages/backend/convex/auth.ts +1 -1
- package/dist/templates/default/packages/backend/convex/convex.config.ts +8 -0
- package/dist/templates/default/packages/backend/convex/github/actions/http.ts +40 -0
- package/dist/templates/default/packages/backend/convex/github/actions/internal.ts +189 -0
- package/dist/templates/default/packages/backend/convex/github/actions/oidc.ts +75 -0
- package/dist/templates/default/packages/backend/convex/github/actions/provision.ts +80 -0
- package/dist/templates/default/packages/backend/convex/github/actions/tokens.ts +66 -0
- package/dist/templates/default/packages/backend/convex/github/internal.ts +34 -0
- package/dist/templates/default/packages/backend/convex/http.ts +3 -0
- package/dist/templates/default/packages/backend/convex/previews/internal.ts +270 -0
- package/dist/templates/default/packages/backend/convex/previews/token/actions/create.ts +69 -0
- package/dist/templates/default/packages/backend/convex/previews/token/actions/management.ts +133 -0
- package/dist/templates/default/packages/backend/convex/previews/token/internal.ts +1 -0
- package/dist/templates/default/packages/backend/convex/releases/internal.ts +28 -0
- package/dist/templates/default/packages/backend/convex/schema.ts +34 -4
- package/dist/templates/default/packages/backend/convex/users/index.ts +21 -0
- package/dist/templates/default/packages/backend/convex/users/internal.ts +44 -0
- package/dist/templates/default/packages/backend/convex/validator.ts +87 -0
- package/dist/templates/default/packages/backend/generate.ts +6 -1
- package/dist/templates/default/packages/backend/generated/openapi.json +961 -43
- package/dist/templates/default/packages/backend/generated/pages.json +0 -8
- package/dist/templates/default/packages/backend/generated/platforms.ts +14 -2
- package/dist/templates/default/packages/backend/package.json +1 -1
- package/dist/templates/default/packages/cli/README.md +15 -9
- package/dist/templates/default/packages/cli/auth.ts +11 -3
- package/dist/templates/default/packages/cli/commands.ts +236 -0
- package/dist/templates/default/packages/cli/index.ts +2 -142
- package/dist/templates/default/packages/cli/preview.ts +157 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/consent.tsx +2 -1
- package/dist/templates/default/packages/disposabl-kit/client/routes/route.tsx +35 -1
- package/dist/templates/default/packages/disposabl-kit/mobile/lib/logo.png +0 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/screens/account.tsx +1 -1
- package/dist/templates/default/packages/disposabl-kit/mobile/screens/home.tsx +20 -5
- package/dist/templates/default/packages/sdk/README.md +8 -4
- package/dist/templates/default/packages/sdk/src/config.ts +14 -7
- package/dist/templates/default/packages/sdk/src/generated/index.ts +48 -13
- package/dist/templates/default/packages/sdk/src/generated/sdk.gen.ts +139 -27
- package/dist/templates/default/packages/sdk/src/generated/types.gen.ts +440 -37
- package/package.json +6 -3
- package/dist/templates/default/.github/README.md +0 -99
- package/dist/templates/default/.github/actionlint.yaml +0 -6
- package/dist/templates/default/.github/workflows/pipeline.yml.example +0 -546
- package/dist/templates/default/apps/web/src/router/_authenticated/todos/$id.tsx +0 -27
- package/dist/templates/default/apps/web/src/router/_authenticated/todos/index.tsx +0 -33
- package/dist/templates/default/packages/backend/convex/todos/index.ts +0 -26
- package/dist/templates/default/packages/backend/convex/todos/internal.ts +0 -43
- package/dist/templates/default/packages/backend/convex/users.ts +0 -43
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
name: Pipeline
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
branches: [main]
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
pull-requests: read
|
|
10
|
+
concurrency:
|
|
11
|
+
group: preview-${{ github.head_ref || github.ref_name }}
|
|
12
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
13
|
+
env:
|
|
14
|
+
CHANNEL: &channel ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || 'production' }}
|
|
15
|
+
DISPOSABL_MOBILE_CHANNEL: *channel
|
|
16
|
+
EAS_ENVIRONMENT: ${{ github.event_name == 'push' && 'production' || 'preview' }}
|
|
17
|
+
EAS_CLI: eas-cli@27.2.0
|
|
18
|
+
BUN_VERSION: &bun-version "1.4.4"
|
|
19
|
+
NODE_VERSION: &node-version "24"
|
|
20
|
+
LINUX_RUNNER: &linux-runner blacksmith-4vcpu-ubuntu-2404
|
|
21
|
+
WEB_RUNNER: &web-runner blacksmith-2vcpu-ubuntu-2404
|
|
22
|
+
WINDOWS_RUNNER: blacksmith-2vcpu-windows-2025
|
|
23
|
+
RELEASE_PREFIX: app
|
|
24
|
+
DISPOSABL_ANDROID_VERSION_CODE: ${{ github.run_number }}
|
|
25
|
+
GH_TOKEN: ${{ github.token }}
|
|
26
|
+
GH_REPO: ${{ github.repository }}
|
|
27
|
+
SOURCE: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
28
|
+
SOURCE_PATH: ${{ github.event_name == 'pull_request' && format('pulls/{0}', github.event.number) || 'git/ref/heads/main' }}
|
|
29
|
+
DISPOSABL_RELEASE_VERSION: 1.0.${{ github.run_number }}
|
|
30
|
+
jobs:
|
|
31
|
+
web:
|
|
32
|
+
name: Web
|
|
33
|
+
# Fork code must not run in a job with deployment credentials.
|
|
34
|
+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
|
|
35
|
+
permissions: &release-permissions
|
|
36
|
+
contents: read
|
|
37
|
+
pull-requests: read
|
|
38
|
+
id-token: write
|
|
39
|
+
timeout-minutes: 45
|
|
40
|
+
runs-on: *web-runner
|
|
41
|
+
outputs:
|
|
42
|
+
desktop: ${{ steps.platforms.outputs.desktop }}
|
|
43
|
+
android_build: ${{ steps.fingerprint.outputs.build }}
|
|
44
|
+
android_runtime: ${{ steps.fingerprint.outputs.runtime }}
|
|
45
|
+
android_manifest: ${{ steps.fingerprint.outputs.manifest }}
|
|
46
|
+
convex_url: ${{ steps.deploy.outputs.CONVEX_URL }}
|
|
47
|
+
convex_site_url: ${{ steps.deploy.outputs.CONVEX_SITE_URL }}
|
|
48
|
+
env:
|
|
49
|
+
PLATFORM: android
|
|
50
|
+
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
|
|
51
|
+
EXPO_PROJECT_ID: ${{ vars.EXPO_PROJECT_ID }}
|
|
52
|
+
EXPO_OWNER: ${{ vars.EXPO_OWNER }}
|
|
53
|
+
EXPO_SLUG: ${{ vars.EXPO_SLUG }}
|
|
54
|
+
EXPO_NO_DOTENV: "1"
|
|
55
|
+
steps:
|
|
56
|
+
- &checkout
|
|
57
|
+
uses: actions/checkout@v6
|
|
58
|
+
with: { ref: "${{ env.SOURCE }}", persist-credentials: false }
|
|
59
|
+
- &platforms
|
|
60
|
+
name: Platforms
|
|
61
|
+
shell: bash
|
|
62
|
+
id: platforms
|
|
63
|
+
env:
|
|
64
|
+
BEFORE: ${{ github.event.before }}
|
|
65
|
+
PR: ${{ github.event.number }}
|
|
66
|
+
TRUSTED: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
|
|
67
|
+
run: bash "$GITHUB_WORKSPACE/.github/scripts/platforms.sh"
|
|
68
|
+
- &node
|
|
69
|
+
uses: actions/setup-node@v6
|
|
70
|
+
with: { node-version: *node-version, package-manager-cache: false }
|
|
71
|
+
- &app-token
|
|
72
|
+
name: Disposabl GitHub App token
|
|
73
|
+
run: node .github/scripts/disposabl.mjs token
|
|
74
|
+
- &bun
|
|
75
|
+
uses: oven-sh/setup-bun@v2
|
|
76
|
+
with: { bun-version: *bun-version }
|
|
77
|
+
- &cache
|
|
78
|
+
uses: actions/cache@v4
|
|
79
|
+
with:
|
|
80
|
+
path: ~/.bun/install/cache
|
|
81
|
+
key: bun-${{ github.job == 'desktop' && 'desktop-' || '' }}${{ runner.os }}-${{ runner.arch }}-${{ env.BUN_VERSION }}-${{ hashFiles('bun.lock') }}
|
|
82
|
+
restore-keys: bun-${{ github.job == 'desktop' && 'desktop-' || '' }}${{ runner.os }}-${{ runner.arch }}-${{ env.BUN_VERSION }}-
|
|
83
|
+
- &install
|
|
84
|
+
run: bun install --frozen-lockfile ${{ github.job == 'desktop' && '--filter desktop' || (github.job == 'android') && '--filter @disposabl/mobile' || '' }}
|
|
85
|
+
- name: Report build start
|
|
86
|
+
run: |
|
|
87
|
+
node .github/scripts/disposabl.mjs report web,api,mcp building
|
|
88
|
+
if [[ -z "$EXPO_TOKEN" ]]; then node .github/scripts/disposabl.mjs report android blocked 'Connect Expo before building Android.'; fi
|
|
89
|
+
node .github/scripts/disposabl.mjs report ios,macos blocked 'Apple builds are temporarily disabled.'
|
|
90
|
+
if [[ '${{ github.event_name }}' == pull_request ]]; then node .github/scripts/disposabl.mjs report cli,typescript-sdk blocked 'Packages publish after merge to main.'; fi
|
|
91
|
+
- name: Check
|
|
92
|
+
run: bun run check
|
|
93
|
+
- name: Build selected clients
|
|
94
|
+
run: |
|
|
95
|
+
for package in cli sdk; do
|
|
96
|
+
if test -f "packages/$package/package.json"; then bun run --cwd "packages/$package" build; fi
|
|
97
|
+
done
|
|
98
|
+
- name: Deploy
|
|
99
|
+
id: deploy
|
|
100
|
+
env:
|
|
101
|
+
TRUSTED: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
|
|
102
|
+
CONVEX_DEPLOY_KEY: ${{ secrets[github.event_name == 'push' && 'CONVEX_DEPLOY_KEY' || 'CONVEX_DEPLOY_KEY_PREVIEW'] }}
|
|
103
|
+
run: bash "$GITHUB_WORKSPACE/.github/scripts/web-deploy.sh"
|
|
104
|
+
- name: Report web result
|
|
105
|
+
if: always()
|
|
106
|
+
run: node .github/scripts/disposabl.mjs report web,api,mcp ${{ steps.deploy.outcome == 'success' && 'ready' || 'failed' }}
|
|
107
|
+
- &expo
|
|
108
|
+
name: Expo
|
|
109
|
+
if: github.job == 'android' || steps.platforms.outputs.android == 'true'
|
|
110
|
+
working-directory: apps/mobile
|
|
111
|
+
run: bash "$GITHUB_WORKSPACE/.github/scripts/expo-env.sh"
|
|
112
|
+
- name: Channel
|
|
113
|
+
if: steps.platforms.outputs.android == 'true'
|
|
114
|
+
working-directory: apps/mobile
|
|
115
|
+
run: bash "$GITHUB_WORKSPACE/.github/scripts/expo-channel.sh"
|
|
116
|
+
- name: Fingerprint
|
|
117
|
+
id: fingerprint
|
|
118
|
+
if: steps.platforms.outputs.android == 'true'
|
|
119
|
+
working-directory: apps/mobile
|
|
120
|
+
run: bash "$GITHUB_WORKSPACE/.github/scripts/expo-fingerprint.sh"
|
|
121
|
+
- name: Update
|
|
122
|
+
if: steps.fingerprint.outputs.build == 'false'
|
|
123
|
+
env:
|
|
124
|
+
TAG: ${{ steps.fingerprint.outputs.tag }}
|
|
125
|
+
SHA: ${{ steps.fingerprint.outputs.sha }}
|
|
126
|
+
RUNTIME: ${{ steps.fingerprint.outputs.runtime }}
|
|
127
|
+
MANIFEST: ${{ steps.fingerprint.outputs.manifest }}
|
|
128
|
+
run: bash "$GITHUB_WORKSPACE/.github/scripts/expo-update.sh"
|
|
129
|
+
- &publish
|
|
130
|
+
name: Publish
|
|
131
|
+
if: github.job == 'android' || (github.job == 'web' && hashFiles('dist/release/android.json') != '') || github.job == 'desktop'
|
|
132
|
+
shell: bash
|
|
133
|
+
run: bash "$GITHUB_WORKSPACE/.github/scripts/verify-artifacts.sh"
|
|
134
|
+
- &artifacts
|
|
135
|
+
name: Upload release artifacts
|
|
136
|
+
if: hashFiles('dist/release/*') != ''
|
|
137
|
+
uses: actions/upload-artifact@v4
|
|
138
|
+
with:
|
|
139
|
+
name: release-${{ env.PLATFORM }}
|
|
140
|
+
path: dist/release/
|
|
141
|
+
retention-days: 3
|
|
142
|
+
if-no-files-found: error
|
|
143
|
+
android:
|
|
144
|
+
name: Android
|
|
145
|
+
needs: web
|
|
146
|
+
if: needs.web.outputs.android_build == 'true'
|
|
147
|
+
permissions: *release-permissions
|
|
148
|
+
runs-on: *linux-runner
|
|
149
|
+
timeout-minutes: 60
|
|
150
|
+
env:
|
|
151
|
+
PLATFORM: android
|
|
152
|
+
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
|
|
153
|
+
EXPO_PROJECT_ID: ${{ vars.EXPO_PROJECT_ID }}
|
|
154
|
+
EXPO_OWNER: ${{ vars.EXPO_OWNER }}
|
|
155
|
+
EXPO_SLUG: ${{ vars.EXPO_SLUG }}
|
|
156
|
+
EXPO_NO_DOTENV: "1"
|
|
157
|
+
CONVEX_URL: ${{ needs.web.outputs.convex_url }}
|
|
158
|
+
CONVEX_SITE_URL: ${{ needs.web.outputs.convex_site_url }}
|
|
159
|
+
EXPO_PUBLIC_CONVEX_URL: ${{ needs.web.outputs.convex_url }}
|
|
160
|
+
EXPO_PUBLIC_CONVEX_SITE_URL: ${{ needs.web.outputs.convex_site_url }}
|
|
161
|
+
steps:
|
|
162
|
+
- *checkout
|
|
163
|
+
- *platforms
|
|
164
|
+
- *node
|
|
165
|
+
- *app-token
|
|
166
|
+
- *bun
|
|
167
|
+
- *cache
|
|
168
|
+
- *install
|
|
169
|
+
- name: Report mobile build
|
|
170
|
+
run: node .github/scripts/disposabl.mjs report "$PLATFORM" building
|
|
171
|
+
- *expo
|
|
172
|
+
- name: Java
|
|
173
|
+
uses: actions/setup-java@v5
|
|
174
|
+
with: { distribution: temurin, java-version: "17" }
|
|
175
|
+
- name: SDK
|
|
176
|
+
uses: android-actions/setup-android@v3
|
|
177
|
+
with: { packages: platform-tools }
|
|
178
|
+
- name: Gradle
|
|
179
|
+
uses: gradle/actions/setup-gradle@v4
|
|
180
|
+
with: { cache-read-only: false }
|
|
181
|
+
- name: Build
|
|
182
|
+
working-directory: apps/mobile
|
|
183
|
+
env:
|
|
184
|
+
RUNTIME: ${{ needs.web.outputs.android_runtime }}
|
|
185
|
+
DISPOSABL_ANDROID_CHANNEL: *channel
|
|
186
|
+
MANIFEST: ${{ needs.web.outputs.android_manifest }}
|
|
187
|
+
ANDROID_KEYSTORE_BASE64: ${{ github.event_name == 'push' && secrets.ANDROID_KEYSTORE_BASE64 || '' }}
|
|
188
|
+
ANDROID_KEYSTORE_PASSWORD: ${{ github.event_name == 'push' && secrets.ANDROID_KEYSTORE_PASSWORD || '' }}
|
|
189
|
+
ANDROID_KEY_ALIAS: ${{ github.event_name == 'push' && secrets.ANDROID_KEY_ALIAS || '' }}
|
|
190
|
+
ANDROID_KEY_PASSWORD: ${{ github.event_name == 'push' && secrets.ANDROID_KEY_PASSWORD || '' }}
|
|
191
|
+
run: bash "$GITHUB_WORKSPACE/.github/scripts/android-build.sh"
|
|
192
|
+
- *publish
|
|
193
|
+
- *artifacts
|
|
194
|
+
- name: Report Android failure
|
|
195
|
+
if: failure() || cancelled()
|
|
196
|
+
run: node .github/scripts/disposabl.mjs report android failed
|
|
197
|
+
# iOS and macOS builds remain disabled to avoid paid Apple runners.
|
|
198
|
+
desktop:
|
|
199
|
+
needs: web
|
|
200
|
+
permissions: *release-permissions
|
|
201
|
+
name: ${{ matrix.platform }}
|
|
202
|
+
if: needs.web.outputs.desktop != '[]' && needs.web.outputs.desktop != ''
|
|
203
|
+
strategy:
|
|
204
|
+
fail-fast: false
|
|
205
|
+
matrix:
|
|
206
|
+
include: ${{ fromJSON(needs.web.outputs.desktop) }}
|
|
207
|
+
runs-on: ${{ matrix.runner }}
|
|
208
|
+
timeout-minutes: 30
|
|
209
|
+
env:
|
|
210
|
+
PLATFORM: ${{ matrix.platform }}
|
|
211
|
+
DISPOSABL_DESKTOP_PLATFORM: ${{ matrix.platform }}
|
|
212
|
+
CONVEX_SITE_URL: ${{ needs.web.outputs.convex_site_url }}
|
|
213
|
+
electron_config_cache: ${{ github.workspace }}/.cache/electron
|
|
214
|
+
steps:
|
|
215
|
+
- *checkout
|
|
216
|
+
- *node
|
|
217
|
+
- *app-token
|
|
218
|
+
- *bun
|
|
219
|
+
- *cache
|
|
220
|
+
- *install
|
|
221
|
+
- name: Report desktop build
|
|
222
|
+
run: node .github/scripts/disposabl.mjs report "$PLATFORM" building
|
|
223
|
+
- name: Electron
|
|
224
|
+
uses: actions/cache@v4
|
|
225
|
+
with:
|
|
226
|
+
path: .cache/electron
|
|
227
|
+
key: electron-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('bun.lock') }}
|
|
228
|
+
- name: Packages
|
|
229
|
+
if: matrix.platform == 'linux'
|
|
230
|
+
run: command -v fakeroot && command -v rpmbuild && command -v dpkg-deb || { sudo apt-get update && sudo apt-get install -y fakeroot dpkg rpm; }
|
|
231
|
+
- name: Build
|
|
232
|
+
run: bun run --cwd apps/desktop preview
|
|
233
|
+
- *publish
|
|
234
|
+
- *artifacts
|
|
235
|
+
- name: Report desktop failure
|
|
236
|
+
if: failure() || cancelled()
|
|
237
|
+
run: node .github/scripts/disposabl.mjs report "$PLATFORM" failed
|
|
238
|
+
packages:
|
|
239
|
+
name: Package / ${{ matrix.package }}
|
|
240
|
+
needs: web
|
|
241
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
242
|
+
runs-on: ubuntu-latest
|
|
243
|
+
permissions:
|
|
244
|
+
contents: write
|
|
245
|
+
id-token: write
|
|
246
|
+
concurrency:
|
|
247
|
+
group: npm-${{ matrix.package }}
|
|
248
|
+
cancel-in-progress: false
|
|
249
|
+
queue: max
|
|
250
|
+
strategy:
|
|
251
|
+
fail-fast: false
|
|
252
|
+
matrix:
|
|
253
|
+
package: [cli, sdk]
|
|
254
|
+
env:
|
|
255
|
+
PACKAGE: ${{ matrix.package }}
|
|
256
|
+
steps:
|
|
257
|
+
- uses: actions/checkout@v6
|
|
258
|
+
with: { fetch-depth: 0, persist-credentials: false }
|
|
259
|
+
- *node
|
|
260
|
+
- *bun
|
|
261
|
+
- *cache
|
|
262
|
+
- *install
|
|
263
|
+
- *app-token
|
|
264
|
+
- name: Publish package if configured
|
|
265
|
+
run: bash .github/scripts/package-release.sh
|
|
266
|
+
|
|
267
|
+
# The publisher executes scripts from main only; the authorizer verifies workflow_sha.
|
|
268
|
+
publish:
|
|
269
|
+
needs: [web, android, desktop]
|
|
270
|
+
if: always() && !cancelled() && !contains(needs.*.result, 'failure') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
|
|
271
|
+
environment: publishing
|
|
272
|
+
runs-on: ubuntu-latest
|
|
273
|
+
timeout-minutes: 15
|
|
274
|
+
permissions:
|
|
275
|
+
contents: write
|
|
276
|
+
actions: read
|
|
277
|
+
id-token: write
|
|
278
|
+
steps:
|
|
279
|
+
- uses: actions/checkout@v6
|
|
280
|
+
with:
|
|
281
|
+
ref: main
|
|
282
|
+
persist-credentials: false
|
|
283
|
+
- uses: actions/setup-node@v6
|
|
284
|
+
with:
|
|
285
|
+
node-version: "24"
|
|
286
|
+
package-manager-cache: false
|
|
287
|
+
- name: Disposabl installation token
|
|
288
|
+
run: node .github/scripts/disposabl.mjs token
|
|
289
|
+
- name: Select release source
|
|
290
|
+
id: source
|
|
291
|
+
run: bash .github/scripts/release-source.sh
|
|
292
|
+
- uses: actions/download-artifact@v4
|
|
293
|
+
if: steps.source.outputs.current == 'true'
|
|
294
|
+
with:
|
|
295
|
+
pattern: release-*
|
|
296
|
+
path: artifacts
|
|
297
|
+
- name: Publish verified build artifacts
|
|
298
|
+
if: steps.source.outputs.current == 'true'
|
|
299
|
+
run: bash .github/scripts/release-publish.sh
|
|
@@ -14,7 +14,7 @@ Use `bunx` instead of `npx` if the project uses bun (`bun.lock` present).
|
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
npx expo install <package> # ALWAYS use instead of npm/yarn/pnpm/bun add — resolves SDK-compatible versions
|
|
17
|
-
npx expo start
|
|
17
|
+
npx expo start --dev-client # start the development-build server
|
|
18
18
|
npx expo lint # lint
|
|
19
19
|
npx tsc --noEmit # typecheck
|
|
20
20
|
npx expo-doctor # diagnose dependency and config issues
|
|
@@ -37,5 +37,5 @@ Docs: https://docs.expo.dev/eas/index.md
|
|
|
37
37
|
## Rules
|
|
38
38
|
|
|
39
39
|
- If `ios/` and `android/` directories do not exist, they are generated (Continuous Native Generation). Never create or edit them by hand — configure native behavior in `app.json` and config plugins.
|
|
40
|
-
- Expo Go
|
|
40
|
+
- Never use Expo Go. After adding a library with native code, rebuild the development client: `npx expo run:ios|android` locally, or `eas build --profile development`.
|
|
41
41
|
- Prefer recommended Expo modules over third-party libraries, and check your available skills before adding dependencies. Docs: https://docs.expo.dev/versions/latest/index.md
|
|
@@ -10,7 +10,7 @@ these reusable screens and layouts. Add custom app screens alongside them.
|
|
|
10
10
|
Routes outside `(authenticated)` are public. Put screens that require login
|
|
11
11
|
under `src/app/(authenticated)/`; its shared layout guards every descendant,
|
|
12
12
|
including direct links. The `(auth)` group contains login and signup. Successful
|
|
13
|
-
login opens the account screen, where `users.current` returns the caller's
|
|
13
|
+
login opens the account screen, where `users.index.current` returns the caller's
|
|
14
14
|
username and user ID from Convex. Logout clears the session and returns home.
|
|
15
15
|
Expo SecureStore persists tokens per deployment across app restarts.
|
|
16
16
|
|
|
@@ -49,8 +49,9 @@ start the backend, website, and Metro. Restart Metro after changing these URLs.
|
|
|
49
49
|
The cloud URL connects the mobile client; the site URL is available for HTTP
|
|
50
50
|
endpoints and is not needed for the native password flow.
|
|
51
51
|
|
|
52
|
-
Use a development build containing `expo-
|
|
53
|
-
|
|
52
|
+
Use a development build containing `expo-dev-client` and `expo-secure-store`.
|
|
53
|
+
Run `bun run android` or `bun run ios` once to install it, then use `bun run dev`.
|
|
54
|
+
Expo Go is not supported. No browser redirect or custom token exchange is needed
|
|
54
55
|
for username/password login. OAuth would require a separate browser flow.
|
|
55
56
|
|
|
56
57
|
Checked npm and the Convex Auth `reboot` branch on 2026-11-02. The latest v2 beta
|
|
@@ -8,13 +8,12 @@
|
|
|
8
8
|
"scheme": "mobile",
|
|
9
9
|
"userInterfaceStyle": "automatic",
|
|
10
10
|
"ios": {
|
|
11
|
-
"icon": "./assets/
|
|
11
|
+
"icon": "./assets/images/icon.png"
|
|
12
12
|
},
|
|
13
13
|
"android": {
|
|
14
14
|
"adaptiveIcon": {
|
|
15
|
-
"backgroundColor": "#
|
|
15
|
+
"backgroundColor": "#FFFFFF",
|
|
16
16
|
"foregroundImage": "./assets/images/android-icon-foreground.png",
|
|
17
|
-
"backgroundImage": "./assets/images/android-icon-background.png",
|
|
18
17
|
"monochromeImage": "./assets/images/android-icon-monochrome.png"
|
|
19
18
|
},
|
|
20
19
|
"predictiveBackGestureEnabled": false
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
[
|
|
27
26
|
"expo-splash-screen",
|
|
28
27
|
{
|
|
29
|
-
"backgroundColor": "#
|
|
28
|
+
"backgroundColor": "#FFFFFF",
|
|
30
29
|
"image": "./assets/images/splash-icon.png",
|
|
31
30
|
"imageWidth": 76
|
|
32
31
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
"main": "expo-router/entry",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@convex-dev/auth": "catalog:",
|
|
7
|
+
"@disposabl/disposabl-kit": "workspace:*",
|
|
7
8
|
"@expo/ui": "~58.0.23",
|
|
8
9
|
"convex": "catalog:",
|
|
9
10
|
"expo": "~58.0.19",
|
|
10
11
|
"expo-constants": "~58.0.13",
|
|
12
|
+
"expo-dev-client": "~58.0.18",
|
|
11
13
|
"expo-device": "~58.0.5",
|
|
12
14
|
"expo-font": "~58.0.10",
|
|
13
15
|
"expo-glass-effect": "~58.0.5",
|
|
@@ -27,8 +29,7 @@
|
|
|
27
29
|
"react-native-reanimated": "4.7.1",
|
|
28
30
|
"react-native-safe-area-context": "~5.10.1",
|
|
29
31
|
"react-native-screens": "~4.30.0",
|
|
30
|
-
"react-native-worklets": "0.13.0"
|
|
31
|
-
"@disposabl/disposabl-kit": "workspace:*"
|
|
32
|
+
"react-native-worklets": "0.13.0"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@types/react": "~19.3.0",
|
|
@@ -37,11 +38,11 @@
|
|
|
37
38
|
"typescript": "~6.0.3"
|
|
38
39
|
},
|
|
39
40
|
"scripts": {
|
|
40
|
-
"start": "expo start",
|
|
41
|
+
"start": "expo start --dev-client",
|
|
41
42
|
"android": "expo run:android",
|
|
42
43
|
"ios": "expo run:ios",
|
|
43
44
|
"lint": "cd ../.. && apps/mobile/node_modules/.bin/eslint --config apps/mobile/eslint.config.js apps/mobile/src packages/disposabl-kit/mobile",
|
|
44
|
-
"dev": "expo start",
|
|
45
|
+
"dev": "expo start --dev-client",
|
|
45
46
|
"typecheck": "tsc --noEmit",
|
|
46
47
|
"build:ios": "bunx eas-cli@27.2.0 build --platform ios --profile ios-preview --local"
|
|
47
48
|
},
|
|
@@ -17,8 +17,6 @@ import { Route as DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPa
|
|
|
17
17
|
import { Route as DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesSignUpRouteImport } from './../../../packages/disposabl-kit/client/routes/_auth-pages/signUp'
|
|
18
18
|
import { Route as AuthenticatedDashboardRouteImport } from './router/_authenticated/dashboard'
|
|
19
19
|
import { Route as AuthenticatedDashboardDotapiKeysRouteImport } from './router/_authenticated/dashboard.api-keys'
|
|
20
|
-
import { Route as AuthenticatedTodosIndexRouteImport } from './router/_authenticated/todos/index'
|
|
21
|
-
import { Route as AuthenticatedTodosIdRouteImport } from './router/_authenticated/todos/$id'
|
|
22
20
|
|
|
23
21
|
const DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesRouteRoute =
|
|
24
22
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesRouteRouteImport.update(
|
|
@@ -80,18 +78,6 @@ const AuthenticatedDashboardDotapiKeysRoute =
|
|
|
80
78
|
path: '/api-keys',
|
|
81
79
|
getParentRoute: () => AuthenticatedDashboardRoute,
|
|
82
80
|
} as any)
|
|
83
|
-
const AuthenticatedTodosIndexRoute = AuthenticatedTodosIndexRouteImport.update({
|
|
84
|
-
id: '/todos/',
|
|
85
|
-
path: '/todos/',
|
|
86
|
-
getParentRoute: () =>
|
|
87
|
-
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthenticatedRouteRoute,
|
|
88
|
-
} as any)
|
|
89
|
-
const AuthenticatedTodosIdRoute = AuthenticatedTodosIdRouteImport.update({
|
|
90
|
-
id: '/todos/$id',
|
|
91
|
-
path: '/todos/$id',
|
|
92
|
-
getParentRoute: () =>
|
|
93
|
-
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthenticatedRouteRoute,
|
|
94
|
-
} as any)
|
|
95
81
|
|
|
96
82
|
export interface FileRoutesByFullPath {
|
|
97
83
|
'/': typeof IndexRoute
|
|
@@ -100,8 +86,6 @@ export interface FileRoutesByFullPath {
|
|
|
100
86
|
'/signup': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesSignUpRoute
|
|
101
87
|
'/dashboard': typeof AuthenticatedDashboardRouteWithChildren
|
|
102
88
|
'/dashboard/api-keys': typeof AuthenticatedDashboardDotapiKeysRoute
|
|
103
|
-
'/todos/$id': typeof AuthenticatedTodosIdRoute
|
|
104
|
-
'/todos/': typeof AuthenticatedTodosIndexRoute
|
|
105
89
|
}
|
|
106
90
|
export interface FileRoutesByTo {
|
|
107
91
|
'/': typeof IndexRoute
|
|
@@ -110,8 +94,6 @@ export interface FileRoutesByTo {
|
|
|
110
94
|
'/signup': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesSignUpRoute
|
|
111
95
|
'/dashboard': typeof AuthenticatedDashboardRouteWithChildren
|
|
112
96
|
'/dashboard/api-keys': typeof AuthenticatedDashboardDotapiKeysRoute
|
|
113
|
-
'/todos/$id': typeof AuthenticatedTodosIdRoute
|
|
114
|
-
'/todos': typeof AuthenticatedTodosIndexRoute
|
|
115
97
|
}
|
|
116
98
|
export interface FileRoutesById {
|
|
117
99
|
__root__: typeof rootRouteImport
|
|
@@ -123,8 +105,6 @@ export interface FileRoutesById {
|
|
|
123
105
|
'/_providers/': typeof IndexRoute
|
|
124
106
|
'/_providers/_authenticated/dashboard': typeof AuthenticatedDashboardRouteWithChildren
|
|
125
107
|
'/_providers/_authenticated/dashboard/api-keys': typeof AuthenticatedDashboardDotapiKeysRoute
|
|
126
|
-
'/_providers/_authenticated/todos/$id': typeof AuthenticatedTodosIdRoute
|
|
127
|
-
'/_providers/_authenticated/todos/': typeof AuthenticatedTodosIndexRoute
|
|
128
108
|
}
|
|
129
109
|
export interface FileRouteTypes {
|
|
130
110
|
fileRoutesByFullPath: FileRoutesByFullPath
|
|
@@ -135,8 +115,6 @@ export interface FileRouteTypes {
|
|
|
135
115
|
| '/signup'
|
|
136
116
|
| '/dashboard'
|
|
137
117
|
| '/dashboard/api-keys'
|
|
138
|
-
| '/todos/$id'
|
|
139
|
-
| '/todos/'
|
|
140
118
|
fileRoutesByTo: FileRoutesByTo
|
|
141
119
|
to:
|
|
142
120
|
| '/'
|
|
@@ -145,8 +123,6 @@ export interface FileRouteTypes {
|
|
|
145
123
|
| '/signup'
|
|
146
124
|
| '/dashboard'
|
|
147
125
|
| '/dashboard/api-keys'
|
|
148
|
-
| '/todos/$id'
|
|
149
|
-
| '/todos'
|
|
150
126
|
id:
|
|
151
127
|
| '__root__'
|
|
152
128
|
| '/_providers'
|
|
@@ -157,8 +133,6 @@ export interface FileRouteTypes {
|
|
|
157
133
|
| '/_providers/'
|
|
158
134
|
| '/_providers/_authenticated/dashboard'
|
|
159
135
|
| '/_providers/_authenticated/dashboard/api-keys'
|
|
160
|
-
| '/_providers/_authenticated/todos/$id'
|
|
161
|
-
| '/_providers/_authenticated/todos/'
|
|
162
136
|
fileRoutesById: FileRoutesById
|
|
163
137
|
}
|
|
164
138
|
export interface RootRouteChildren {
|
|
@@ -223,20 +197,6 @@ declare module '@tanstack/react-router' {
|
|
|
223
197
|
preLoaderRoute: typeof AuthenticatedDashboardDotapiKeysRouteImport
|
|
224
198
|
parentRoute: typeof AuthenticatedDashboardRoute
|
|
225
199
|
}
|
|
226
|
-
'/_providers/_authenticated/todos/': {
|
|
227
|
-
id: '/_providers/_authenticated/todos/'
|
|
228
|
-
path: '/todos'
|
|
229
|
-
fullPath: '/todos/'
|
|
230
|
-
preLoaderRoute: typeof AuthenticatedTodosIndexRouteImport
|
|
231
|
-
parentRoute: typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthenticatedRouteRoute
|
|
232
|
-
}
|
|
233
|
-
'/_providers/_authenticated/todos/$id': {
|
|
234
|
-
id: '/_providers/_authenticated/todos/$id'
|
|
235
|
-
path: '/todos/$id'
|
|
236
|
-
fullPath: '/todos/$id'
|
|
237
|
-
preLoaderRoute: typeof AuthenticatedTodosIdRouteImport
|
|
238
|
-
parentRoute: typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthenticatedRouteRoute
|
|
239
|
-
}
|
|
240
200
|
}
|
|
241
201
|
}
|
|
242
202
|
|
|
@@ -257,15 +217,11 @@ const AuthenticatedDashboardRouteWithChildren =
|
|
|
257
217
|
|
|
258
218
|
interface DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthenticatedRouteRouteChildren {
|
|
259
219
|
AuthenticatedDashboardRoute: typeof AuthenticatedDashboardRouteWithChildren
|
|
260
|
-
AuthenticatedTodosIdRoute: typeof AuthenticatedTodosIdRoute
|
|
261
|
-
AuthenticatedTodosIndexRoute: typeof AuthenticatedTodosIndexRoute
|
|
262
220
|
}
|
|
263
221
|
|
|
264
222
|
const DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthenticatedRouteRouteChildren: DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthenticatedRouteRouteChildren =
|
|
265
223
|
{
|
|
266
224
|
AuthenticatedDashboardRoute: AuthenticatedDashboardRouteWithChildren,
|
|
267
|
-
AuthenticatedTodosIdRoute: AuthenticatedTodosIdRoute,
|
|
268
|
-
AuthenticatedTodosIndexRoute: AuthenticatedTodosIndexRoute,
|
|
269
225
|
}
|
|
270
226
|
|
|
271
227
|
const DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthenticatedRouteRouteWithChildren =
|
|
@@ -18,7 +18,6 @@ function Dashboard() {
|
|
|
18
18
|
<main className="mx-auto max-w-xl space-y-4 p-6">
|
|
19
19
|
<h1 className="text-2xl font-semibold">Dashboard</h1>
|
|
20
20
|
<nav className="flex gap-4">
|
|
21
|
-
<Link to="/todos">Todos</Link>
|
|
22
21
|
{config.platforms.includes("api") && (
|
|
23
22
|
<Link to="/dashboard/api-keys">API keys</Link>
|
|
24
23
|
)}
|
|
@@ -6,10 +6,18 @@ export const Route = createFileRoute("/_providers/")({
|
|
|
6
6
|
{ title: "Disposabl | Build your app" },
|
|
7
7
|
{
|
|
8
8
|
name: "description",
|
|
9
|
-
content:
|
|
10
|
-
"Create apps for web, mobile, desktop, and developer tools. Draft, preview, publish.",
|
|
9
|
+
content: "A clean starting point for your next application.",
|
|
11
10
|
},
|
|
12
11
|
],
|
|
13
12
|
}),
|
|
14
|
-
component: () =>
|
|
13
|
+
component: () => (
|
|
14
|
+
<main className="mx-auto max-w-5xl px-6 py-24">
|
|
15
|
+
<h1 className="max-w-2xl text-4xl font-semibold tracking-tight sm:text-5xl">
|
|
16
|
+
A clean start for your next app.
|
|
17
|
+
</h1>
|
|
18
|
+
<p className="mt-6 max-w-xl text-lg text-neutral-600">
|
|
19
|
+
Build something useful with a simple foundation ready to make your own.
|
|
20
|
+
</p>
|
|
21
|
+
</main>
|
|
22
|
+
),
|
|
15
23
|
});
|