create-disposabl-app 0.14.5 → 0.14.7

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 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
@@ -5,7 +5,7 @@ import { lock } from "proper-lockfile";
5
5
  // ../cli/package.json
6
6
  var package_default = {
7
7
  name: "@disposabl/cli",
8
- version: "0.14.5",
8
+ version: "0.14.7",
9
9
  type: "module",
10
10
  description: "Command-line access to your Disposabl app",
11
11
  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.14.5";
11
+ var version = "0.14.7";
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.linux_runner }}
183
+ runs-on: ${{ needs.changes.outputs.android_runner }}
183
184
  timeout-minutes: 20
184
185
  env:
185
186
  PLATFORM: android
@@ -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("iOS builds can be paused independently of Android", () => {
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-disposabl-app",
3
- "version": "0.14.5",
3
+ "version": "0.14.7",
4
4
  "description": "Create a Disposabl app",
5
5
  "type": "module",
6
6
  "license": "MIT",