create-disposabl-app 0.14.4 → 0.14.6
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 +2 -0
- package/dist/disposabl.js +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/default/.github/scripts/platforms.sh +2 -0
- package/dist/templates/default/.github/workflows/pipeline.yml +2 -1
- package/dist/templates/default/apps/mobile/package.json +0 -1
- package/dist/templates/default/bun.lock +0 -3
- package/dist/templates/default/packages/tests/android-failure-workflow.test.ts +16 -0
- package/dist/templates/default/packages/tests/ci-platform-selection.test.ts +29 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,6 +90,8 @@ See the [coding-agent guide](https://github.com/disposabl-dev/create-disposabl-a
|
|
|
90
90
|
|
|
91
91
|
Set `features` to include `faster-ci` in `disposabl.json` to use Blacksmith runners (the GitHub App must be installed). The initial selection job remains GitHub-hosted so it can read the configuration.
|
|
92
92
|
|
|
93
|
+
Faster CI selects an eight-vCPU Linux runner for universal Android builds and a two-vCPU runner for web and other Linux jobs. Android retains all four architectures and its 20-minute job limit. Blacksmith usage is billed through your existing account; runner capacity alone does not guarantee a build completes within the limit.
|
|
94
|
+
|
|
93
95
|
## Generator release checks
|
|
94
96
|
|
|
95
97
|
Before publishing the generator, `bun run --cwd packages/create-disposabl-app build && bun run --cwd packages/create-disposabl-app verify:starter` creates fresh minimal-web, Web + Android, mobile-without-authentication, and all-platform projects. Each follows the CLI's formatting and installation steps, then runs the first CI frozen install, `bun run check`, its retained unit tests, and web and selected CLI/SDK builds. Pass `web-minimal`, `web-android`, `mobile-minimal`, or `all-platforms` after `verify:starter` to check one selection. These checks use no provider credentials and do not provision or deploy resources. Native builds and installed-app behavior still need the platform checks below.
|
package/dist/disposabl.js
CHANGED
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.14.
|
|
11
|
+
var version = "0.14.6";
|
|
12
12
|
|
|
13
13
|
// ../disposabl-kit/platforms.ts
|
|
14
14
|
var platforms = [
|
|
@@ -23,6 +23,8 @@ node --input-type=module -e '
|
|
|
23
23
|
const faster = config.features?.includes("faster-ci");
|
|
24
24
|
const runners = faster ? {linux: "blacksmith-2vcpu-ubuntu-2404", windows: "blacksmith-2vcpu-windows-2025", macos: "blacksmith-6vcpu-macos-26"} : {linux: "ubuntu-24.04", windows: "windows-2025", macos: "macos-26"};
|
|
25
25
|
for (const [name, runner] of Object.entries(runners)) console.log(`${name}_runner=${runner}`);
|
|
26
|
+
// Universal Android builds compile four ABIs; keep lighter Linux work on two CPUs.
|
|
27
|
+
console.log(`android_runner=${faster ? "blacksmith-8vcpu-ubuntu-2404" : runners.linux}`);
|
|
26
28
|
const api = path => JSON.parse(execFileSync("gh", ["api", `repos/${process.env.GH_REPO}/${path}`], {encoding: "utf8", stdio: ["ignore", "pipe", "ignore"]}));
|
|
27
29
|
const changes = platform => {
|
|
28
30
|
if (!process.env.PR) return paths;
|
|
@@ -43,6 +43,7 @@ jobs:
|
|
|
43
43
|
timeout-minutes: 5
|
|
44
44
|
outputs:
|
|
45
45
|
linux_runner: ${{ steps.platforms.outputs.linux_runner }}
|
|
46
|
+
android_runner: ${{ steps.platforms.outputs.android_runner }}
|
|
46
47
|
macos_runner: ${{ steps.platforms.outputs.macos_runner }}
|
|
47
48
|
changed: ${{ steps.platforms.outputs.changed }}
|
|
48
49
|
android: ${{ steps.platforms.outputs.android }}
|
|
@@ -179,7 +180,7 @@ jobs:
|
|
|
179
180
|
needs: [changes, web]
|
|
180
181
|
if: needs.web.outputs.android_build == 'true'
|
|
181
182
|
permissions: *release-permissions
|
|
182
|
-
runs-on: ${{ needs.changes.outputs.
|
|
183
|
+
runs-on: ${{ needs.changes.outputs.android_runner }}
|
|
183
184
|
timeout-minutes: 20
|
|
184
185
|
env:
|
|
185
186
|
PLATFORM: android
|
|
@@ -94,7 +94,6 @@
|
|
|
94
94
|
"react": "19.3.0",
|
|
95
95
|
"react-native": "0.88.1",
|
|
96
96
|
"react-native-css": "3.1.0-rc.1",
|
|
97
|
-
"react-native-enriched-markdown": "^1.1.1",
|
|
98
97
|
"react-native-gesture-handler": "~3.3.0",
|
|
99
98
|
"react-native-purchases": "10.16.0",
|
|
100
99
|
"react-native-reanimated": "4.7.1",
|
|
@@ -3200,8 +3199,6 @@
|
|
|
3200
3199
|
|
|
3201
3200
|
"react-native-drawer-layout": ["react-native-drawer-layout@4.2.12", "", { "dependencies": { "color": "^4.2.3", "use-latest-callback": "^0.2.4" }, "peerDependencies": { "react": ">= 18.2.0", "react-native": "*", "react-native-gesture-handler": ">= 2.0.0", "react-native-reanimated": ">= 2.0.0" } }, "sha512-qYmntEctkMSodN7pnC2llV21nswImLFPHJeT3PJXSJqZdU4jzDATR8iVi66sXkrtoOLJ2+EvXxgd7sMMpV4ViA=="],
|
|
3202
3201
|
|
|
3203
|
-
"react-native-enriched-markdown": ["react-native-enriched-markdown@1.1.1", "", { "peerDependencies": { "katex": ">=0.16.0", "react": "*", "react-native": "*" }, "optionalPeers": ["katex"], "hasInstallScript": true }, "sha512-JvbRIVy75MAoGCv8V6sSscu11/Ian588wfIgH+j64XFpf6gy5sNNkMyG087MH88jNCf3p7fTjgEAGxZMhEqL4A=="],
|
|
3204
|
-
|
|
3205
3202
|
"react-native-gesture-handler": ["react-native-gesture-handler@3.3.0", "", { "dependencies": { "@types/react-test-renderer": "^19.1.0", "invariant": "^2.2.4" }, "peerDependencies": { "react": "*", "react-native": "*" } }, "sha512-ZCTlJ09nE3GPbm7J74lvwpxmx1TQ/7MDlHZNLARVYTN82k21mJUJ7BmI9eWjEi8eevHiAudI5O1Cpnt0rJfoJA=="],
|
|
3206
3203
|
|
|
3207
3204
|
"react-native-is-edge-to-edge": ["react-native-is-edge-to-edge@1.3.1", "", { "peerDependencies": { "react": "*", "react-native": "*" } }, "sha512-NIXU/iT5+ORyCc7p0z2nnlkouYKX425vuU1OEm6bMMtWWR9yvb+Xg5AZmImTKoF9abxCPqrKC3rOZsKzUYgYZA=="],
|
|
@@ -20,6 +20,22 @@ const workflow = JSON.parse(
|
|
|
20
20
|
),
|
|
21
21
|
);
|
|
22
22
|
|
|
23
|
+
test("Android uses its selected runner while retaining the twenty-minute limit", () => {
|
|
24
|
+
assert.equal(
|
|
25
|
+
workflow.jobs.changes.outputs.android_runner,
|
|
26
|
+
"${{ steps.platforms.outputs.android_runner }}",
|
|
27
|
+
);
|
|
28
|
+
assert.equal(
|
|
29
|
+
workflow.jobs.android["runs-on"],
|
|
30
|
+
"${{ needs.changes.outputs.android_runner }}",
|
|
31
|
+
);
|
|
32
|
+
assert.equal(workflow.jobs.android["timeout-minutes"], 20);
|
|
33
|
+
assert.equal(
|
|
34
|
+
workflow.jobs.web["runs-on"],
|
|
35
|
+
"${{ needs.changes.outputs.linux_runner }}",
|
|
36
|
+
);
|
|
37
|
+
});
|
|
38
|
+
|
|
23
39
|
test("Android failure reporting handles failed and cancelled builds independently", () => {
|
|
24
40
|
const job = workflow.jobs["android-failure"];
|
|
25
41
|
assert.equal(job.needs, "android");
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import { tmpdir } from "node:os";
|
|
11
11
|
import { join, resolve } from "node:path";
|
|
12
12
|
import { execFileSync } from "node:child_process";
|
|
13
|
-
test("
|
|
13
|
+
test("platform selection keeps iOS optional and sizes Android independently", () => {
|
|
14
14
|
const dir = mkdtempSync(join(tmpdir(), "disposabl-platforms-"));
|
|
15
15
|
try {
|
|
16
16
|
mkdirSync(join(dir, "bin"));
|
|
@@ -40,6 +40,34 @@ test("iOS builds can be paused independently of Android", () => {
|
|
|
40
40
|
);
|
|
41
41
|
assert.match(readFileSync(out, "utf8"), /^ios=false$/m);
|
|
42
42
|
assert.match(readFileSync(out, "utf8"), /^android=true$/m);
|
|
43
|
+
for (const features of [undefined, [], ["faster-ci"]]) {
|
|
44
|
+
writeFileSync(
|
|
45
|
+
join(dir, "disposabl.json"),
|
|
46
|
+
JSON.stringify({ platforms: ["web", "android", "ios"], features }),
|
|
47
|
+
);
|
|
48
|
+
writeFileSync(out, "");
|
|
49
|
+
execFileSync(
|
|
50
|
+
"bash",
|
|
51
|
+
[resolve(import.meta.dirname, "../../.github/scripts/platforms.sh")],
|
|
52
|
+
{ cwd: dir, env },
|
|
53
|
+
);
|
|
54
|
+
const selected = Object.fromEntries(
|
|
55
|
+
readFileSync(out, "utf8")
|
|
56
|
+
.trim()
|
|
57
|
+
.split("\n")
|
|
58
|
+
.map((line) => line.split("=")),
|
|
59
|
+
);
|
|
60
|
+
const faster = features?.includes("faster-ci");
|
|
61
|
+
assert.equal(
|
|
62
|
+
selected.android_runner,
|
|
63
|
+
faster ? "blacksmith-8vcpu-ubuntu-2404" : "ubuntu-24.04",
|
|
64
|
+
);
|
|
65
|
+
assert.equal(
|
|
66
|
+
selected.linux_runner,
|
|
67
|
+
faster ? "blacksmith-2vcpu-ubuntu-2404" : "ubuntu-24.04",
|
|
68
|
+
);
|
|
69
|
+
assert.equal(selected.android, "true");
|
|
70
|
+
}
|
|
43
71
|
writeFileSync(out, "");
|
|
44
72
|
execFileSync(
|
|
45
73
|
"bash",
|