create-disposabl-app 0.9.0 → 0.9.1
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 +62 -30
- package/dist/disposabl.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,51 +1,83 @@
|
|
|
1
1
|
# create-disposabl-app
|
|
2
2
|
|
|
3
|
-
Create a Disposabl app
|
|
3
|
+
Create a Disposabl app for web, mobile, desktop, and developer tools.
|
|
4
|
+
|
|
5
|
+
## Get started
|
|
6
|
+
|
|
7
|
+
Install [Bun](https://bun.sh) and [Git](https://git-scm.com), then run:
|
|
4
8
|
|
|
5
9
|
```sh
|
|
6
|
-
|
|
10
|
+
bunx create-disposabl-app@latest
|
|
7
11
|
```
|
|
8
12
|
|
|
9
|
-
Web is always included
|
|
10
|
-
`--features none` to disable it, or include `authentication` in a comma-separated
|
|
11
|
-
feature list. Auth-disabled projects omit login/signup routes and auth-dependent
|
|
12
|
-
example screens, so missing routes return 404. Backend authentication code and
|
|
13
|
-
its access checks remain installed.
|
|
13
|
+
Choose your app's name and platforms. Web is always included, and app sign-in is enabled by default.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
determine the next version; no manual version edit is needed.
|
|
15
|
+
Setup asks you to sign in to [Disposabl](https://www.disposabl.dev) and connect GitHub and Convex. Mobile apps also need an Expo account. It creates your project and configures its development environment.
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
When setup finishes:
|
|
19
18
|
|
|
20
19
|
```sh
|
|
21
|
-
bun create disposabl-app@latest my-app
|
|
22
20
|
cd my-app
|
|
23
21
|
bun run dev
|
|
24
22
|
```
|
|
25
23
|
|
|
26
|
-
|
|
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
|
+
|
|
26
|
+
You can also launch setup with npm, pnpm, or Yarn 2+. The generated project still requires Bun. These launchers also need Node.js 22.12 or newer.
|
|
27
|
+
|
|
28
|
+
| Tool | Command |
|
|
29
|
+
| ---- | -------------------------------------- |
|
|
30
|
+
| npm | `npx create-disposabl-app@latest` |
|
|
31
|
+
| pnpm | `pnpm dlx create-disposabl-app@latest` |
|
|
32
|
+
| Yarn | `yarn dlx create-disposabl-app@latest` |
|
|
33
|
+
|
|
34
|
+
## Prefer a coding agent?
|
|
35
|
+
|
|
36
|
+
Paste this into Codex, Claude Code, Cursor, or another coding agent:
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
Help me build an app with Disposabl. Read https://github.com/disposabl-dev/create-disposabl-app, then ask me what I want to make and where it should run.
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Choose options in the command
|
|
43
|
+
|
|
44
|
+
For example, create a web and mobile app with sign-in:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
bunx create-disposabl-app@latest my-app --platforms web,ios,android --yes
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
| Option | What it does |
|
|
51
|
+
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
52
|
+
| `--platforms <ids>` | Choose `web`, `ios`, `android`, `macos`, `windows`, `linux`, `mcp`, `api`, `cli`, or `typescript-sdk`. Separate multiple choices with commas. Web is always included. |
|
|
53
|
+
| `--features <ids>` | Choose features from `--list-options`, such as `authentication` and `docs`. The default is `authentication`. Use `--features none` to omit optional features. |
|
|
54
|
+
| `--yes` | Skip the name, platform, and feature questions. Supply an app name in the command. |
|
|
55
|
+
| `--list-options` | Show available platforms and features without creating an app. |
|
|
56
|
+
| `--skip-install` | Create files without installing dependencies. Account setup still runs. |
|
|
57
|
+
| `--json` | Return a result coding agents can read. Supply an app name. Account setup still runs. |
|
|
27
58
|
|
|
28
|
-
|
|
59
|
+
CLI and TypeScript SDK include API support automatically. Backend authentication and access checks remain installed even with `--features none`.
|
|
29
60
|
|
|
30
|
-
|
|
61
|
+
## If setup stops
|
|
31
62
|
|
|
32
|
-
|
|
63
|
+
Your files are saved. Follow the error's instructions, then run the same command from the parent folder:
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
bunx create-disposabl-app@latest my-app
|
|
67
|
+
```
|
|
33
68
|
|
|
34
|
-
|
|
69
|
+
Setup resumes using the existing project and app ID. If dependency installation failed, run `bun install` inside the app folder before retrying.
|
|
35
70
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
71
|
+
## Development and publishing
|
|
72
|
+
|
|
73
|
+
New apps start on the `main` branch with a configured local development environment. Use `bun run dev` for local work.
|
|
74
|
+
|
|
75
|
+
For a separate Git worktree, run this inside that worktree to configure its development environment:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
bunx --package create-disposabl-app disposabl previews token create --configure .
|
|
79
|
+
```
|
|
40
80
|
|
|
41
|
-
|
|
42
|
-
authentication, static hosting, and API/MCP support, with `users/current` as its
|
|
43
|
-
only application operation. Disposabl's apps, previews, releases, provider
|
|
44
|
-
connections, GitHub handlers, and service credentials stay in the Disposabl
|
|
45
|
-
backend. Product-generated API bindings, contracts, and SDK operations are not
|
|
46
|
-
copied into new apps.
|
|
81
|
+
Push the generated initial commit to `main` before opening feature pull requests. A same-repository pull request to `main` starts a CI preview; changes pushed to `main` start the production workflow. A feature branch push by itself does not deploy. Build and delivery requirements depend on the selected platforms.
|
|
47
82
|
|
|
48
|
-
|
|
49
|
-
runs it only inside its disposable staging copy before packaging. Replacement
|
|
50
|
-
backend files live in `starter/backend`; platform and feature selection still
|
|
51
|
-
happens when the user creates an app.
|
|
83
|
+
See the [coding-agent guide](https://github.com/disposabl-dev/create-disposabl-app/blob/main/packages/skill/SKILL.md) for the full delivery workflow, or [report a problem](https://github.com/disposabl-dev/create-disposabl-app/issues).
|
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.9.
|
|
258
|
+
version: "0.9.1",
|
|
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.9.
|
|
11
|
+
var version = "0.9.1";
|
|
12
12
|
|
|
13
13
|
// ../disposabl-kit/platforms.ts
|
|
14
14
|
var platforms = [
|