create-disposabl-app 0.10.3 → 0.10.4
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 +9 -3
- package/dist/disposabl.js +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/default/AGENTS.md +10 -2
- package/dist/templates/default/apps/desktop/README.md +1 -1
- package/dist/templates/default/apps/mobile/AGENTS.md +4 -2
- package/dist/templates/default/apps/mobile/README.md +1 -1
- package/dist/templates/default/bun.lock +773 -69
- package/dist/templates/default/gitignore +1 -0
- package/dist/templates/default/package.json +3 -1
- package/dist/templates/default/packages/skill/SKILL.md +12 -2
- package/dist/templates/default/packages/skill/references/delivery.md +2 -1
- package/dist/templates/default/packages/tests/README.md +53 -0
- package/dist/templates/default/packages/tests/e2e.config.ts +89 -0
- package/dist/templates/default/packages/tests/flows/api.e2e.ts +14 -0
- package/dist/templates/default/packages/tests/flows/backend.e2e.ts +24 -0
- package/dist/templates/default/packages/tests/flows/mobile.e2e.ts +10 -0
- package/dist/templates/default/packages/tests/flows/web.e2e.ts +27 -0
- package/dist/templates/default/packages/tests/package.json +19 -0
- package/dist/templates/default/packages/tests/project.ts +35 -0
- package/dist/templates/default/packages/tests/tsconfig.json +13 -0
- package/package.json +1 -1
- package/dist/templates/default/.github/README.md +0 -15
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Create a Disposabl app for web, mobile, desktop, and developer tools.
|
|
|
4
4
|
|
|
5
5
|
## Get started
|
|
6
6
|
|
|
7
|
-
Install [Bun](https://bun.sh)
|
|
7
|
+
Install [Bun](https://bun.sh), [Git](https://git-scm.com), and [Node.js](https://nodejs.org) 24.8 or newer, then run:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
10
|
bunx create-disposabl-app@latest
|
|
@@ -23,7 +23,7 @@ bun run dev
|
|
|
23
23
|
|
|
24
24
|
Use the app name you chose instead of `my-app`. Your website opens automatically. Mobile apps need a development build before you can open them on a device; they do not use Expo Go. See the generated `apps/mobile/README.md` for the next steps.
|
|
25
25
|
|
|
26
|
-
You can also launch setup with npm, pnpm, or Yarn 2+. The generated project still requires Bun.
|
|
26
|
+
You can also launch setup with npm, pnpm, or Yarn 2+. The generated project still requires Bun. Tests need Node.js 22.22.3 or newer on Node 22, or Node.js 24.8 or newer.
|
|
27
27
|
|
|
28
28
|
| Tool | Command |
|
|
29
29
|
| ---- | -------------------------------------- |
|
|
@@ -70,7 +70,13 @@ Setup resumes using the existing project and app ID. If dependency installation
|
|
|
70
70
|
|
|
71
71
|
## Development and publishing
|
|
72
72
|
|
|
73
|
-
New apps start on the `main` branch with a configured local development environment. Use `bun run dev` for local work.
|
|
73
|
+
New apps start on the `main` branch with a configured local development environment. Use `bun run dev` for local work. Build and test on your own machine whenever its tools are available; do not push changes just to get a test run.
|
|
74
|
+
|
|
75
|
+
Every app includes E2E tests in `packages/tests`. Run `bun run test` for the selected web/mobile platforms and the backend, or `bun run test --target web,backend` for a smaller check. API checks run only when API is selected. No E2E login, AI subscription, or model key is needed.
|
|
76
|
+
|
|
77
|
+
Mobile tests need a built app installed on a simulator or emulator. Debug builds need Metro running too. The included flows are starter checks; your coding agent should add tests for the features it builds. Desktop, MCP, CLI, and SDK clients are not covered by these flows.
|
|
78
|
+
|
|
79
|
+
E2E telemetry is disabled. PostHog analytics is production-only. Read the generated `packages/tests/README.md` for test setup and CI instructions. Existing release workflows do not automatically run these tests.
|
|
74
80
|
|
|
75
81
|
For a separate Git worktree, run this inside that worktree to configure its development environment:
|
|
76
82
|
|
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.4",
|
|
259
259
|
type: "module",
|
|
260
260
|
description: "Command-line access to your Disposabl app",
|
|
261
261
|
license: "MIT",
|
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.4";
|
|
12
12
|
|
|
13
13
|
// ../disposabl-kit/platforms.ts
|
|
14
14
|
var platforms = [
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Development
|
|
2
2
|
|
|
3
|
-
- Do not write automated tests or add test files.
|
|
4
|
-
- Validate changes through real user behavior. Behavior-based test flows will be added later.
|
|
5
3
|
- Keep code concise. Aim for roughly 300 lines per source file, but this is a guideline, not a hard limit. Keep related logic together; do not split files just to meet a line count.
|
|
6
4
|
- Simplify related code with each change.
|
|
5
|
+
|
|
6
|
+
# Testing
|
|
7
|
+
|
|
8
|
+
- Keep end-to-end behavior tests in `packages/tests`, separate from application code. Use TesterArmy E2E and read `packages/tests/README.md` before adding or running flows. `bun run e2e guide` provides the installed version's documentation.
|
|
9
|
+
- Run `bun run test` for the platforms selected in `disposabl.json`. Backend checks always apply; API checks only apply when the API platform is selected. Use `--target` for an explicitly scoped run and report which platforms were tested.
|
|
10
|
+
- Use deterministic locators and assertions by default. No E2E login, model subscription, or API key is required. Coding agents should extend the flows when application behavior changes.
|
|
11
|
+
- Build and verify locally when the toolchain is available. Do not push or start GitHub Actions merely to test a change. Mobile tests need a locally built and installed app plus a simulator/emulator; a successful compilation is not behavioral proof.
|
|
12
|
+
- Run checks against the app's development or isolated preview backend. Never copy another app's credentials or seed production data. Report missing infrastructure and failed tests rather than silently skipping required platforms.
|
|
13
|
+
- E2E telemetry is disabled by the provided commands. Leave it disabled until it follows Disposabl's telemetry preference.
|
|
14
|
+
- PostHog analytics is production-only; do not enable it for local development or E2E runs.
|
|
@@ -57,7 +57,7 @@ Main releases use separate platform/run tags. Forge itself does not publish.
|
|
|
57
57
|
|
|
58
58
|
Windows and Linux installers are unsigned. macOS builds use ad hoc signing by
|
|
59
59
|
default; Developer ID signing and notarization are optional. In-app updates are not configured. The release version is
|
|
60
|
-
`1.0.<workflow run number>`. See the
|
|
60
|
+
`1.0.<workflow run number>`. See the [app workflow](../../.github/workflows/pipeline.yml) for release behavior.
|
|
61
61
|
|
|
62
62
|
## macOS signing
|
|
63
63
|
|
|
@@ -29,9 +29,11 @@ Run lint and typecheck before declaring any task done.
|
|
|
29
29
|
- Import `Link`, `router`, and `useLocalSearchParams` from `expo-router`.
|
|
30
30
|
- Docs: https://docs.expo.dev/router/introduction.md
|
|
31
31
|
|
|
32
|
-
##
|
|
32
|
+
## Local builds and testing
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Prefer `bun run ios` or `bun run android` from `apps/mobile` when the local Xcode or Android toolchain is available. Build and install the development client, keep Metro running, then run `bun run test --target ios` or `bun run test --target android` from the repository root. Read `packages/tests/README.md` and use E2E for behavior checks. Do not push or start a cloud build just to verify a local change.
|
|
35
|
+
|
|
36
|
+
Use EAS or the release workflows for requested distribution when needed. A simulator build does not prove device signing or store readiness; do not submit to a store unless requested. Run EAS CLI as `bunx eas-cli <command>` in Bun projects.
|
|
35
37
|
Docs: https://docs.expo.dev/eas/index.md
|
|
36
38
|
|
|
37
39
|
## Rules
|
|
@@ -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 standard GitHub-hosted runners and production iOS uses EAS Build. See [
|
|
75
|
+
Build jobs use standard GitHub-hosted runners and production iOS uses EAS Build. See the [app workflow](../../.github/workflows/pipeline.yml)
|
|
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
|