@intentic/cli 1.79.0 → 1.80.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.
- package/dist/add-app/add-app.command.d.ts.map +1 -1
- package/dist/add-app/add-app.command.js +19 -7
- package/dist/add-app/add-app.command.js.map +1 -1
- package/package.json +7 -7
- package/dist/add-app/add-app.d.ts +0 -4
- package/dist/add-app/add-app.d.ts.map +0 -1
- package/dist/add-app/add-app.js +0 -13
- package/dist/add-app/add-app.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-app.command.d.ts","sourceRoot":"","sources":["../../src/add-app/add-app.command.ts"],"names":[],"mappings":"
|
|
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;AAgBlE,eAAO,MAAM,aAAa,iDAwBxB,CAAC"}
|
|
@@ -1,20 +1,32 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { addAppFromTemplate, DEFAULT_TEMPLATE_REF, DEFAULT_TEMPLATE_SOURCE } from "@intentic/scaffold";
|
|
1
3
|
import { buildCommand } from "@stricli/core";
|
|
2
4
|
import { loadConfig } from "../env.config.js";
|
|
5
|
+
import { APP_DIR } from "../lib/artifact.js";
|
|
3
6
|
import { createOutput } from "../lib/output.js";
|
|
4
|
-
import { addApp } from "./add-app.js";
|
|
5
7
|
export const addAppCommand = buildCommand({
|
|
6
|
-
docs: { brief: "Scaffold
|
|
8
|
+
docs: { brief: "Scaffold a new app from an opinionated template into the app monorepo at <dir>/app" },
|
|
7
9
|
parameters: {
|
|
8
10
|
flags: {
|
|
9
|
-
dir: { kind: "parsed", parse: String, optional: true, brief: "Directory holding the workspace (default: .)" },
|
|
10
|
-
|
|
11
|
+
dir: { kind: "parsed", parse: String, optional: true, brief: "Directory holding the workspace repos (default: .)" },
|
|
12
|
+
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 _apps/<name>* and @app_/<name>*" },
|
|
14
|
+
source: { kind: "parsed", parse: String, optional: true, brief: `Template source git URL (default: ${DEFAULT_TEMPLATE_SOURCE})` },
|
|
15
|
+
ref: { kind: "parsed", parse: String, optional: true, brief: `Template source branch/tag (default: ${DEFAULT_TEMPLATE_REF})` },
|
|
11
16
|
},
|
|
12
17
|
},
|
|
13
18
|
async func(flags) {
|
|
14
19
|
const out = createOutput(this.process.stdout, loadConfig().intenticOutput);
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
const appDir = join(flags.dir ?? ".", APP_DIR);
|
|
21
|
+
const result = await addAppFromTemplate({
|
|
22
|
+
appDir,
|
|
23
|
+
source: flags.source ?? DEFAULT_TEMPLATE_SOURCE,
|
|
24
|
+
ref: flags.ref ?? DEFAULT_TEMPLATE_REF,
|
|
25
|
+
template: flags.template,
|
|
26
|
+
name: flags.name,
|
|
27
|
+
});
|
|
28
|
+
out.text(`added ${flags.name} (${flags.template}) to ${appDir}`);
|
|
29
|
+
out.result({ ...result });
|
|
18
30
|
},
|
|
19
31
|
});
|
|
20
32
|
//# 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,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,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AC,CAAC;QAC/C,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC;YACpC,MAAM;YACN,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,uBAAuB;YAC/C,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,oBAAoB;YACtC,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,IAAI,EAAE,KAAK,CAAC,IAAI;SACnB,CAAC,CAAC;QACH,GAAG,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,QAAQ,QAAQ,MAAM,EAAE,CAAC,CAAC;QACjE,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IAC9B,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.80.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/graph": "1.
|
|
43
|
-
"@intentic/need-resolver": "1.
|
|
44
|
-
"@intentic/providers": "1.
|
|
42
|
+
"@intentic/graph": "1.80.0",
|
|
43
|
+
"@intentic/need-resolver": "1.80.0",
|
|
44
|
+
"@intentic/providers": "1.80.0",
|
|
45
|
+
"@intentic/engine": "1.80.0",
|
|
45
46
|
"@intentic/scaffold": "0.0.0",
|
|
46
|
-
"@intentic/
|
|
47
|
-
"@intentic/state-resolver": "1.79.0"
|
|
47
|
+
"@intentic/state-resolver": "1.80.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.80.0",
|
|
58
58
|
"@intentic/tsconfig": "0.0.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-app.d.ts","sourceRoot":"","sources":["../../src/add-app/add-app.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM,GAAU,KAAK,MAAM,EAAE,SAAS,MAAM,GAAG,SAAS,KAAG,OAAO,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAO1G,CAAC"}
|
package/dist/add-app/add-app.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { existsSync } from "node:fs";
|
|
2
|
-
import { join } from "node:path";
|
|
3
|
-
import { scaffoldApp } from "../init/scaffold-app.js";
|
|
4
|
-
import { APP_DIR } from "../lib/artifact.js";
|
|
5
|
-
export const addApp = async (dir, appRepo) => {
|
|
6
|
-
const appDir = join(dir, APP_DIR);
|
|
7
|
-
if (existsSync(appDir)) {
|
|
8
|
-
throw new Error(`an app already exists at ${appDir}`);
|
|
9
|
-
}
|
|
10
|
-
await scaffoldApp(appDir, appRepo);
|
|
11
|
-
return { appDir };
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=add-app.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-app.js","sourceRoot":"","sources":["../../src/add-app/add-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAK7C,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,EAAE,GAAW,EAAE,OAA2B,EAAwC,EAAE;IAC3G,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAClC,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,4BAA4B,MAAM,EAAE,CAAC,CAAC;IAC1D,CAAC;IACD,MAAM,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM,EAAE,CAAC;AACtB,CAAC,CAAC"}
|