create-disposabl-app 0.10.1 → 0.10.3
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/dist/disposabl.js +3 -3
- package/dist/index.js +2 -2
- package/dist/templates/default/.github/README.md +11 -16
- package/dist/templates/default/.github/scripts/release.sh +8 -2
- package/dist/templates/default/.github/workflows/pipeline.yml +5 -5
- package/dist/templates/default/apps/desktop/README.md +1 -1
- package/dist/templates/default/apps/mobile/README.md +2 -2
- package/dist/templates/default/packages/cli/commands.ts +2 -2
- package/dist/templates/default/packages/disposabl-kit/server/release/README.md +1 -1
- package/dist/templates/default/packages/skill/SKILL.md +8 -11
- package/package.json +1 -1
package/dist/disposabl.js
CHANGED
|
@@ -255,7 +255,7 @@ Sign in to Expo if needed and choose Delete project. Then rerun this command to
|
|
|
255
255
|
// ../cli/package.json
|
|
256
256
|
var package_default = {
|
|
257
257
|
name: "@disposabl/cli",
|
|
258
|
-
version: "0.10.
|
|
258
|
+
version: "0.10.3",
|
|
259
259
|
type: "module",
|
|
260
260
|
description: "Command-line access to your Disposabl app",
|
|
261
261
|
license: "MIT",
|
|
@@ -494,7 +494,7 @@ async function runCli(argv = process.argv, serviceOrigin = SERVICE_ORIGIN) {
|
|
|
494
494
|
const command = parent.command(parts.at(-1));
|
|
495
495
|
const connectionStatus = path === "/api/connections/status";
|
|
496
496
|
if (connectionStatus)
|
|
497
|
-
command.option("--wait", "Open setup and continue when GitHub
|
|
497
|
+
command.option("--wait", "Open setup and continue when GitHub and Convex are ready");
|
|
498
498
|
if (connectionStatus)
|
|
499
499
|
command.option("--mobile", "Also wait for Expo when creating a mobile app");
|
|
500
500
|
const deleteApp = path === "/api/apps/delete";
|
|
@@ -569,7 +569,7 @@ async function runCli(argv = process.argv, serviceOrigin = SERVICE_ORIGIN) {
|
|
|
569
569
|
const ready = () => value.ready && (!options.mobile || Boolean(value.expo));
|
|
570
570
|
if (connectionStatus && options.wait && !ready()) {
|
|
571
571
|
const url = `${base}/dashboard/connections?mobile=${options.mobile ? "1" : "0"}`;
|
|
572
|
-
console.error(`
|
|
572
|
+
console.error(`Connect your personal GitHub account or organization, and Convex (plus Expo for mobile):
|
|
573
573
|
${url}
|
|
574
574
|
Waiting for connections. Press Ctrl+C to keep your files and finish later.`);
|
|
575
575
|
openUrl(url);
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
8
8
|
import { Command, CommanderError } from "commander";
|
|
9
9
|
import * as p2 from "@clack/prompts";
|
|
10
10
|
// package.json
|
|
11
|
-
var version = "0.10.
|
|
11
|
+
var version = "0.10.3";
|
|
12
12
|
|
|
13
13
|
// ../disposabl-kit/platforms.ts
|
|
14
14
|
var platforms = [
|
|
@@ -546,7 +546,7 @@ async function setupApp(directory, name, run = runDisposabl) {
|
|
|
546
546
|
...mobile ? ["--mobile"] : []
|
|
547
547
|
]);
|
|
548
548
|
if (!connections.ready)
|
|
549
|
-
throw new Error("
|
|
549
|
+
throw new Error("Connect your personal GitHub account or an organization, then connect Convex at https://www.disposabl.dev/dashboard/connections, then retry from the parent directory: bun create disposabl-app@latest " + basename3(directory) + ". Your app files and login are saved.");
|
|
550
550
|
if (config.appId) {
|
|
551
551
|
const app = await run(["apps", "get", "--appId", config.appId]);
|
|
552
552
|
if (JSON.stringify([...app.platforms].sort()) !== JSON.stringify([...config.platforms].sort()))
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
# App builds
|
|
2
2
|
|
|
3
|
-
Install Disposabl
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Select All repositories when installing Blacksmith so newly generated apps can
|
|
7
|
-
run their workflows. A confirmation in Disposabl records the user's setup;
|
|
8
|
-
only a completed runner job proves that repository access works.
|
|
3
|
+
Install Disposabl on your personal GitHub account or an organization you administer,
|
|
4
|
+
then connect Convex. New GitHub users can create a free personal account first.
|
|
5
|
+
An organization is optional. No separate runner service is required.
|
|
9
6
|
|
|
10
|
-
Web and
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
publishing and protected release jobs
|
|
14
|
-
trusted publishing configuration.
|
|
7
|
+
Web, Android and Linux desktop builds use GitHub-hosted `ubuntu-24.04` runners.
|
|
8
|
+
Windows desktop uses `windows-2025`; macOS desktop and iOS simulator previews use
|
|
9
|
+
`macos-26` with its default Xcode. Production iOS uses EAS Build. Package
|
|
10
|
+
publishing and protected release jobs use GitHub-hosted Ubuntu.
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
[
|
|
20
|
-
All provider accounts are free to create; build and hosting usage limits apply.
|
|
12
|
+
Generated apps include these runner settings. Existing app repositories retain
|
|
13
|
+
the workflow they were created with until it is updated.
|
|
14
|
+
GitHub Actions and other services have usage limits; charges may apply beyond
|
|
15
|
+
included allowances. See [GitHub-hosted runners](https://docs.github.com/en/actions/reference/runners/github-hosted-runners).
|
|
@@ -52,12 +52,18 @@ for platform in android linux windows; do
|
|
|
52
52
|
if [[ "$CHANNEL" == production ]]; then tag+="-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"; fi
|
|
53
53
|
printf 'Platform: %s\nSource: %s\n' "$platform" "$SOURCE" > "$RUNNER_TEMP/release-notes.md"
|
|
54
54
|
if [[ -f "$directory/android.json" ]]; then printf '<!-- android %s -->\n' "$(jq -c . "$directory/android.json")" >> "$RUNNER_TEMP/release-notes.md"; fi
|
|
55
|
-
if gh release view "$tag" --json assets > "$RUNNER_TEMP/previous-release.json"; then
|
|
55
|
+
if gh release view "$tag" --json assets,isDraft > "$RUNNER_TEMP/previous-release.json"; then
|
|
56
56
|
gh release upload "$tag" "$directory/"* --clobber
|
|
57
57
|
while IFS= read -r asset; do
|
|
58
58
|
if [[ ! -f "$directory/$asset" ]]; then check_source; gh release delete-asset "$tag" "$asset" --yes; fi
|
|
59
59
|
done < <(jq -r '.assets[].name' "$RUNNER_TEMP/previous-release.json")
|
|
60
|
-
|
|
60
|
+
check_source
|
|
61
|
+
if [[ "$(jq -r .isDraft "$RUNNER_TEMP/previous-release.json")" == true ]]; then
|
|
62
|
+
# Drafts may not have a tag yet after a partially failed publish.
|
|
63
|
+
gh release edit "$tag" --target "$SOURCE"
|
|
64
|
+
else
|
|
65
|
+
gh api --method PATCH "repos/$GH_REPO/git/refs/tags/$tag" -f sha="$SOURCE" -F force=true > /dev/null
|
|
66
|
+
fi
|
|
61
67
|
else
|
|
62
68
|
gh release create "$tag" "$directory/"* --draft --target "$SOURCE" --title "$CHANNEL / $platform" --notes-file "$RUNNER_TEMP/release-notes.md" --prerelease="$PRERELEASE"
|
|
63
69
|
fi
|
|
@@ -17,10 +17,10 @@ env:
|
|
|
17
17
|
EAS_CLI: eas-cli@27.2.0
|
|
18
18
|
BUN_VERSION: &bun-version "1.4.4"
|
|
19
19
|
NODE_VERSION: &node-version "24"
|
|
20
|
-
LINUX_RUNNER: &linux-runner
|
|
21
|
-
WEB_RUNNER: &web-runner
|
|
22
|
-
WINDOWS_RUNNER:
|
|
23
|
-
MACOS_RUNNER:
|
|
20
|
+
LINUX_RUNNER: &linux-runner ubuntu-24.04
|
|
21
|
+
WEB_RUNNER: &web-runner ubuntu-24.04
|
|
22
|
+
WINDOWS_RUNNER: windows-2025
|
|
23
|
+
MACOS_RUNNER: macos-26
|
|
24
24
|
RELEASE_PREFIX: app
|
|
25
25
|
DISPOSABL_ANDROID_VERSION_CODE: ${{ github.run_number }}
|
|
26
26
|
DISPOSABL_IOS_BUILD_NUMBER: ${{ github.run_number }}
|
|
@@ -206,7 +206,7 @@ jobs:
|
|
|
206
206
|
needs: web
|
|
207
207
|
if: github.event_name == 'pull_request' && needs.web.outputs.ios == 'true'
|
|
208
208
|
permissions: *release-permissions
|
|
209
|
-
runs-on:
|
|
209
|
+
runs-on: macos-26
|
|
210
210
|
timeout-minutes: 90
|
|
211
211
|
env:
|
|
212
212
|
CONVEX_URL: ${{ needs.web.outputs.convex_url }}
|
|
@@ -41,7 +41,7 @@ on macOS. Linux builders need `fakeroot`, `dpkg`, and `rpm` installed.
|
|
|
41
41
|
|
|
42
42
|
The single root `.github/workflows/pipeline.yml` selects affected desktop targets from
|
|
43
43
|
`disposabl.json`. Windows x64, Linux x64 and macOS arm64 build in parallel alongside
|
|
44
|
-
web/backend deployment on
|
|
44
|
+
web/backend deployment on GitHub-hosted runners. Each runner uses:
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
47
|
DISPOSABL_DESKTOP_PLATFORM=linux DISPOSABL_RELEASE_VERSION=1.0.42 bun run --cwd apps/desktop preview
|
|
@@ -72,7 +72,7 @@ installable APK in a separate 4-vCPU Android job. Later runs with the same finge
|
|
|
72
72
|
publish EAS Update from Web. Native jobs install only the mobile workspace using
|
|
73
73
|
the shared dependency cache. Android and iOS native builds run in parallel.
|
|
74
74
|
Linux and Windows start alongside Web.
|
|
75
|
-
Build jobs use
|
|
75
|
+
Build jobs use standard GitHub-hosted runners and production iOS uses EAS Build. See [.github/README.md](../../.github/README.md)
|
|
76
76
|
for the job order and cache behavior.
|
|
77
77
|
|
|
78
78
|
Each PR uses its own `pr-<number>` channel and Android application ID. Production
|
|
@@ -165,7 +165,7 @@ them to the same native authentication flow used during development.
|
|
|
165
165
|
When iOS is enabled and affected, the Web runner checks the latest
|
|
166
166
|
published iOS release for the same channel, project, bundle ID and runtime.
|
|
167
167
|
A matching IPA with a verified GitHub digest and unexpired provisioning profile
|
|
168
|
-
uses EAS Update. Otherwise a
|
|
168
|
+
uses EAS Update. Otherwise a GitHub-hosted macOS runner performs an EAS local release
|
|
169
169
|
build using the remote signing credentials, then publishes its own iOS release.
|
|
170
170
|
That runner starts only when a new IPA is needed, after Web finishes, in parallel with any Android native build.
|
|
171
171
|
|
|
@@ -124,7 +124,7 @@ export async function runCli(
|
|
|
124
124
|
if (connectionStatus)
|
|
125
125
|
command.option(
|
|
126
126
|
"--wait",
|
|
127
|
-
"Open setup and continue when GitHub
|
|
127
|
+
"Open setup and continue when GitHub and Convex are ready",
|
|
128
128
|
);
|
|
129
129
|
if (connectionStatus)
|
|
130
130
|
command.option(
|
|
@@ -254,7 +254,7 @@ export async function runCli(
|
|
|
254
254
|
if (connectionStatus && options.wait && !ready()) {
|
|
255
255
|
const url = `${base}/dashboard/connections?mobile=${options.mobile ? "1" : "0"}`;
|
|
256
256
|
console.error(
|
|
257
|
-
`
|
|
257
|
+
`Connect your personal GitHub account or organization, and Convex (plus Expo for mobile):\n${url}\nWaiting for connections. Press Ctrl+C to keep your files and finish later.`,
|
|
258
258
|
);
|
|
259
259
|
openUrl(url);
|
|
260
260
|
const deadline = Date.now() + 15 * 60_000;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# CLI and SDK releases
|
|
2
2
|
|
|
3
|
-
Publishing runs in GitHub Actions through npm trusted publishing. The generated app's pipeline checks whether `packages/cli` and `packages/sdk` exist, builds the selected clients on PRs, and publishes them only after a production push to `main` and a successful web/backend deployment. Package publishing uses GitHub-hosted Ubuntu runners
|
|
3
|
+
Publishing runs in GitHub Actions through npm trusted publishing. The generated app's pipeline checks whether `packages/cli` and `packages/sdk` exist, builds the selected clients on PRs, and publishes them only after a production push to `main` and a successful web/backend deployment. Package publishing uses GitHub-hosted Ubuntu runners for npm trusted publishing.
|
|
4
4
|
|
|
5
5
|
Each client uses semantic-release, like create-disposabl-app, with a separate `<package-name>@<version>` tag. Only commits touching that package, the shared release helper, or the API contract cause a release. Conventional commits choose patch/minor/major; an accepted contract major change forces a client major release even if the commit says `fix`. Multiple merged PRs are evaluated since each package's last tag. Releases are serialized per package and production runs are not cancelled by newer commits.
|
|
6
6
|
|
|
@@ -18,7 +18,7 @@ bun create disposabl-app@latest --list-options
|
|
|
18
18
|
bun create disposabl-app@latest my-app --platforms web,android,mcp --features authentication --yes
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Use the requested platforms and features. Creation handles Disposabl login, required GitHub
|
|
21
|
+
Use the requested platforms and features. Creation handles Disposabl login, required GitHub and Convex setup, and the app's scoped development environment. Resume interrupted setup in the same directory. Do not create a replacement Convex project or delete an app unless requested. Never print credentials.
|
|
22
22
|
|
|
23
23
|
The CLI is bundled with `create-disposabl-app`; do not use the retired `@disposabl/cli` package. Commands below use the published CLI and work without a global install:
|
|
24
24
|
|
|
@@ -74,16 +74,13 @@ If the response is `expo_manual_delete_required`, GitHub/Convex cleanup has comp
|
|
|
74
74
|
## Account setup
|
|
75
75
|
|
|
76
76
|
All provider accounts are free to create; builds and hosting have usage limits.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
and connect Convex. Expo is required for mobile apps. Blacksmith's 3,000 free
|
|
85
|
-
monthly minutes are equivalent Linux 2-vCPU minutes; other runners consume more.
|
|
86
|
-
Blacksmith installation is user-confirmed until a build proves runner access.
|
|
77
|
+
Connect GitHub using a personal account or an organization the user administers.
|
|
78
|
+
No new organization or third-party runner service is required. For a new GitHub
|
|
79
|
+
user, open the free account signup in a separate tab and have them return to
|
|
80
|
+
Disposabl after signup. Then install Disposabl, choose their account on GitHub,
|
|
81
|
+
and finish authorization. A clicked link does not prove setup is complete; wait
|
|
82
|
+
for the connected account to appear. Connect Convex next, and Expo for mobile apps.
|
|
83
|
+
Builds use standard GitHub-hosted runners; GitHub Actions usage limits apply.
|
|
87
84
|
Your code and app data stay in your accounts; Disposabl stores encrypted
|
|
88
85
|
connection credentials and setup metadata. Link the open-source repository
|
|
89
86
|
when explaining access: https://github.com/disposabl-dev/create-disposabl-app.
|