@lernapps/tooling 0.1.0 → 0.1.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/dist/cli.mjs CHANGED
@@ -1430,7 +1430,7 @@ const CREATE_OPTIONS = {
1430
1430
  const CREATE_USAGE = `Usage: lernapps create --archetype <name> [<dir>] [--plan <file>] [--templates <repo>] [--tooling <spec>]
1431
1431
 
1432
1432
  Writes a new app from the archetype's template into <dir> (default: the current folder), which must be empty
1433
- except for .git, the first version's plan .vibe/plans/01-<short name>.md and the skills that npx skills add
1433
+ except for .git, the first version's plan .vibe/plans/01-<short name>.md and the skills that
1434
1434
  lernapps init synced (.agents/skills/, .claude/skills/, skills-lock.json, and the package.json, package-lock.json and
1435
1435
  node_modules init wrote). The template is the folder <name>/ of the installed package @lernapps/app-templates, the
1436
1436
  version @lernapps/tooling depends on; the app depends on the runtime of the same version.
@@ -1691,7 +1691,7 @@ function create(args) {
1691
1691
  if (positionals.length > 1) throw new UsageError(`one <dir> at most, not ${positionals.join(" ")}`);
1692
1692
  const dir = resolve(positionals[0] ?? ".");
1693
1693
  const found = contents(dir);
1694
- if (found.length > 0) throw new CreateError(`${dir} is not empty (${found.slice(0, 5).join(", ")}${found.length > 5 ? ", ..." : ""}): create the app in an empty folder; only .git, the first version's plan .vibe/plans/01-<short name>.md and the skills that npx skills add lernapps/tooling installed may be there`);
1694
+ if (found.length > 0) throw new CreateError(`${dir} is not empty (${found.slice(0, 5).join(", ")}${found.length > 5 ? ", ..." : ""}): create the app in an empty folder; only .git, the first version's plan .vibe/plans/01-<short name>.md and what lernapps init wrote (its skills, package.json, package-lock.json and node_modules) may be there`);
1695
1695
  const plan = confirmedPlan(dir, archetype, values.plan);
1696
1696
  const architecture = ARCHITECTURE_ARCHETYPES.includes(archetype);
1697
1697
  if (!existsSync(join(templates.root, archetype, "package.json"))) throw new CreateError(`${templates.root} has no template ${archetype}/ (version ${templates.version})`);
@@ -2644,7 +2644,7 @@ function runEndToEndTests(browser) {
2644
2644
  return {
2645
2645
  ...failure,
2646
2646
  found: `end-to-end tests failed (their output is above): ${runtime.length === 1 ? "a generic test" : "generic tests"} of the template's runtime ${RUNTIME}, not of this app: ${shown.join(", ")}${more}`,
2647
- fix: `If the content validates (the build passed), this is a bug in the template: tell the creator and open an issue at ${RUNTIME_ISSUES} with this validation report (or ask the creator to). Never change the tests or the configuration to get around it. Once it is fixed, lernapps update moves the app to the fixed runtime: npx --yes github:lernapps/tooling#main update`
2647
+ fix: `If the content validates (the build passed), this is a bug in the template: tell the creator and open an issue at ${RUNTIME_ISSUES} with this validation report (or ask the creator to). Never change the tests or the configuration to get around it. Once it is fixed, lernapps update moves the app to the fixed runtime: npx --yes @lernapps/tooling@latest update`
2648
2648
  };
2649
2649
  }
2650
2650
  /** Serves a bundle (or opens a URL), visits its pages and measures its fitness. */
@@ -42,7 +42,7 @@ export const CREATE_OPTIONS = {
42
42
  export const CREATE_USAGE = `Usage: lernapps create --archetype <name> [<dir>] [--plan <file>] [--templates <repo>] [--tooling <spec>]
43
43
 
44
44
  Writes a new app from the archetype's template into <dir> (default: the current folder), which must be empty
45
- except for .git, the first version's plan .vibe/plans/01-<short name>.md and the skills that npx skills add
45
+ except for .git, the first version's plan .vibe/plans/01-<short name>.md and the skills that
46
46
  lernapps init synced (.agents/skills/, .claude/skills/, skills-lock.json, and the package.json, package-lock.json and
47
47
  node_modules init wrote). The template is the folder <name>/ of the installed package @lernapps/app-templates, the
48
48
  version @lernapps/tooling depends on; the app depends on the runtime of the same version.
@@ -384,7 +384,7 @@ export function create(args: string[]): number {
384
384
  const found = contents(dir);
385
385
  if (found.length > 0) {
386
386
  throw new CreateError(
387
- `${dir} is not empty (${found.slice(0, 5).join(", ")}${found.length > 5 ? ", ..." : ""}): create the app in an empty folder; only .git, the first version's plan .vibe/plans/01-<short name>.md and the skills that npx skills add lernapps/tooling installed may be there`,
387
+ `${dir} is not empty (${found.slice(0, 5).join(", ")}${found.length > 5 ? ", ..." : ""}): create the app in an empty folder; only .git, the first version's plan .vibe/plans/01-<short name>.md and what lernapps init wrote (its skills, package.json, package-lock.json and node_modules) may be there`,
388
388
  );
389
389
  }
390
390
  const plan = confirmedPlan(dir, archetype, values.plan);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lernapps/tooling",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Shared tooling of the lernapps.net apps and sites: the CLI lernapps, site actions, Renovate preset, guidance for building apps; documentation at https://lernapps.net/tooling/",
5
5
  "license": "MIT",
6
6
  "repository": {