@intentic/cli 1.88.0 → 1.90.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-app.command.d.ts","sourceRoot":"","sources":["../../src/add-app/add-app.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"add-app.command.d.ts","sourceRoot":"","sources":["../../src/add-app/add-app.command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAelE,eAAO,MAAM,aAAa,iDAuBxB,CAAC"}
|
|
@@ -2,31 +2,29 @@ import { join } from "node:path";
|
|
|
2
2
|
import { addAppFromTemplate, DEFAULT_TEMPLATE_REF, DEFAULT_TEMPLATE_SOURCE } from "@intentic/scaffold";
|
|
3
3
|
import { buildCommand } from "@stricli/core";
|
|
4
4
|
import { loadConfig } from "../env.config.js";
|
|
5
|
-
import { APP_DIR } from "../lib/artifact.js";
|
|
6
5
|
import { createOutput } from "../lib/output.js";
|
|
7
6
|
export const addAppCommand = buildCommand({
|
|
8
|
-
docs: { brief: "Scaffold a new app from an opinionated template into
|
|
7
|
+
docs: { brief: "Scaffold a new app from an opinionated template into its own repo at <dir>/<name>" },
|
|
9
8
|
parameters: {
|
|
10
9
|
flags: {
|
|
11
10
|
dir: { kind: "parsed", parse: String, optional: true, brief: "Directory holding the workspace repos (default: .)" },
|
|
12
11
|
template: { kind: "parsed", parse: String, brief: "Template key from the source's templates.json (e.g. full-stack, landing)" },
|
|
13
|
-
name: { kind: "parsed", parse: String, brief: "App name — lowercase kebab; becomes
|
|
12
|
+
name: { kind: "parsed", parse: String, brief: "App name — lowercase kebab; becomes the repo directory name" },
|
|
14
13
|
source: { kind: "parsed", parse: String, optional: true, brief: `Template source git URL (default: ${DEFAULT_TEMPLATE_SOURCE})` },
|
|
15
14
|
ref: { kind: "parsed", parse: String, optional: true, brief: `Template source branch/tag (default: ${DEFAULT_TEMPLATE_REF})` },
|
|
16
15
|
},
|
|
17
16
|
},
|
|
18
17
|
async func(flags) {
|
|
19
18
|
const out = createOutput(this.process.stdout, loadConfig().intenticOutput);
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
const repoDir = join(flags.dir ?? ".", flags.name);
|
|
20
|
+
await addAppFromTemplate({
|
|
21
|
+
repoDir,
|
|
23
22
|
source: flags.source ?? DEFAULT_TEMPLATE_SOURCE,
|
|
24
23
|
ref: flags.ref ?? DEFAULT_TEMPLATE_REF,
|
|
25
24
|
template: flags.template,
|
|
26
|
-
name: flags.name,
|
|
27
25
|
});
|
|
28
|
-
out.text(`added ${flags.name} (${flags.template})
|
|
29
|
-
out.result({
|
|
26
|
+
out.text(`added ${flags.name} (${flags.template}) at ${repoDir}`);
|
|
27
|
+
out.result({ name: flags.name, template: flags.template, dir: repoDir });
|
|
30
28
|
},
|
|
31
29
|
});
|
|
32
30
|
//# sourceMappingURL=add-app.command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-app.command.js","sourceRoot":"","sources":["../../src/add-app/add-app.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACvG,OAAO,EAAE,YAAY,EAAuB,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"add-app.command.js","sourceRoot":"","sources":["../../src/add-app/add-app.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,uBAAuB,EAA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KAAK,CAAC,MAAM,IAAI,uBAAuB;YAC/C,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,oBAAoB;YACtC,QAAQ,EAAE,KAAK,CAAC,QAAQ;SAC3B,CAAC,CAAC;QACH,GAAG,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,QAAQ,QAAQ,OAAO,EAAE,CAAC,CAAC;QAClE,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.90.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"eta": "4.6.0",
|
|
40
40
|
"tslib": "2.8.1",
|
|
41
41
|
"zod": "4.4.3",
|
|
42
|
-
"@intentic/
|
|
43
|
-
"@intentic/
|
|
44
|
-
"@intentic/
|
|
42
|
+
"@intentic/engine": "1.90.0",
|
|
43
|
+
"@intentic/graph": "1.90.0",
|
|
44
|
+
"@intentic/need-resolver": "1.90.0",
|
|
45
|
+
"@intentic/providers": "1.90.0",
|
|
45
46
|
"@intentic/scaffold": "0.0.0",
|
|
46
|
-
"@intentic/
|
|
47
|
-
"@intentic/state-resolver": "1.88.0"
|
|
47
|
+
"@intentic/state-resolver": "1.90.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "24.13.2",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"typescript": "5.9.3",
|
|
55
55
|
"vitest": "4.1.9",
|
|
56
56
|
"yaml": "2.9.0",
|
|
57
|
-
"@intentic/sdk": "1.
|
|
57
|
+
"@intentic/sdk": "1.90.0",
|
|
58
58
|
"@intentic/tsconfig": "0.0.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|