@animus-ui/cli 0.1.27 → 0.1.28
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/build.d.ts.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +2 -2
package/dist/build.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,iBAAiB,EAKlB,MAAM,4BAA4B,CAAC;AAcpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,qBAAa,iBAAkB,SAAQ,KAAK;CAAG;AAC/C,qBAAa,YAAa,SAAQ,KAAK;CAAG;AAC1C,qBAAa,kBAAmB,SAAQ,KAAK;CAAG;AAEhD,eAAO,MAAM,GAAG,aAAc,OAAO,EAAE,KAAG,IACL,CAAC;AAEtC,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;qCACqC;AACrC,wBAAsB,YAAY,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqB3E;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,iBAAiB,EAKlB,MAAM,4BAA4B,CAAC;AAcpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,qBAAa,iBAAkB,SAAQ,KAAK;CAAG;AAC/C,qBAAa,YAAa,SAAQ,KAAK;CAAG;AAC1C,qBAAa,kBAAmB,SAAQ,KAAK;CAAG;AAEhD,eAAO,MAAM,GAAG,aAAc,OAAO,EAAE,KAAG,IACL,CAAC;AAEtC,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;qCACqC;AACrC,wBAAsB,YAAY,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqB3E;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,GAAG,iBAAiB,CAkC7E;AAED,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,iBAAiB,GACzB,cAAc,CA+DhB;AAqBD,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,iBAAiB,GAAG,IAAI,EAC1C,WAAW,EAAE,MAAM,IAAI,GACtB,MAAM,IAAI,CAOZ;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,iBAAiB,GACzB,IAAI,CAUN;AAED,MAAM,WAAW,UAAU;IACzB,iDAAiD;IACjD,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAgBD,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,iBAAiB,EACzB,KAAK,GAAE,UAAe,GACrB,OAAO,CAAC,WAAW,CAAC,CAwDtB"}
|
package/dist/config.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare function projectResolvedConfig(config: ResolvedCliConfig): {
|
|
|
51
51
|
extensions: string[] | null;
|
|
52
52
|
staticCss: StaticCssConfig | null;
|
|
53
53
|
runtimeImport: string | null;
|
|
54
|
+
closedDynamicImports: import("@animus-ui/extract/pipeline").ClosedDynamicImport[] | null;
|
|
54
55
|
exclude: readonly string[];
|
|
55
56
|
provenance: Record<string, OptionProvenance>;
|
|
56
57
|
};
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EACV,eAAe,EAEf,gBAAgB,EAEhB,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,gBAAgB,YAC3B,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,CACV,CAAC;AAEX,MAAM,WAAW,mBAAmB;IAClC,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,aAAa,GAAG,YAAY,GAAG,KAAK,CAAC;AAE1E,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,KAAK,CAAC;IACd,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,aAAa,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,MAAM,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,CAAC,CAAC;CAC9C;AAmPD,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,QAAQ,EACf,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,iBAAiB,CAAC,CAsI5B;AAED;kEACkE;AAClE,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,iBAAiB,EACzB,GAAG,EAAE,MAAM,GACV,MAAM,GAAG,IAAI,CAOf;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,iBAAiB;IAE3D,MAAM;IACN,IAAI;IACJ,UAAU;IACV,MAAM;IACN,IAAI;IACJ,MAAM;IACN,MAAM;IACN,WAAW;IACX,OAAO;IACP,OAAO;IACP,MAAM;IACN,MAAM;IACN,oBAAoB;IACpB,MAAM;IACN,UAAU;IACV,SAAS;IACT,aAAa;IACb,oBAAoB;IACpB,OAAO;IACP,UAAU;EAEb"}
|
package/dist/index.cjs
CHANGED
|
@@ -264,6 +264,7 @@ async function runPreflight(config) {
|
|
|
264
264
|
function createCliSession(config) {
|
|
265
265
|
const { root, outDir, options } = config;
|
|
266
266
|
const session = new _animus_ui_extract_session.ExtractionSession(options, { noBundler: true });
|
|
267
|
+
if (config.configFile !== null) session.buildConfigFiles = [config.configFile];
|
|
267
268
|
const relOut = (0, path.relative)(root, outDir);
|
|
268
269
|
if (relOut === "") throw new UsageFailure(`The artifact directory is the root itself (${outDir}) — the published ${STYLES_FILE}/${SYSTEM_PROPS_FILE}/${MANIFEST_FILE} would be re-ingested as source on the next run. Pass --out-dir with a subdirectory (the default is ${_animus_ui_extract_session.ANIMUS_ARTIFACT_DIR}) or point --root at the source tree.`);
|
|
269
270
|
const outputDir = (0, _animus_ui_extract_pipeline.outputExclusion)(root, outDir);
|
|
@@ -471,6 +472,7 @@ function parseLoadedCliConfig(raw) {
|
|
|
471
472
|
staticCss: configStaticCss(raw.staticCss),
|
|
472
473
|
layers: isConfigStringArray(raw.layers) ? raw.layers : void 0,
|
|
473
474
|
runtimeImport: isConfigString(raw.runtimeImport) ? raw.runtimeImport : void 0,
|
|
475
|
+
closedDynamicImports: Array.isArray(raw.closedDynamicImports) ? raw.closedDynamicImports : void 0,
|
|
474
476
|
mode: raw.mode === "development" || raw.mode === "production" ? raw.mode : void 0
|
|
475
477
|
},
|
|
476
478
|
cli: { outDir: cli.outDir }
|
|
@@ -564,6 +566,7 @@ async function resolveCliConfig(flags, cwd) {
|
|
|
564
566
|
staticCss: pick("staticCss", void 0),
|
|
565
567
|
layers: pick("layers", void 0),
|
|
566
568
|
runtimeImport: pick("runtimeImport", void 0),
|
|
569
|
+
closedDynamicImports: pick("closedDynamicImports", void 0),
|
|
567
570
|
mode: resolvedMode.mode
|
|
568
571
|
};
|
|
569
572
|
const excludePatterns = (0, _animus_ui_extract_pipeline.createExcludeMatcher)(options.exclude).patterns;
|
|
@@ -604,6 +607,7 @@ function projectResolvedConfig(config) {
|
|
|
604
607
|
extensions: config.options.extensions ?? null,
|
|
605
608
|
staticCss: config.options.staticCss ?? null,
|
|
606
609
|
runtimeImport: config.options.runtimeImport ?? null,
|
|
610
|
+
closedDynamicImports: config.options.closedDynamicImports ?? null,
|
|
607
611
|
exclude: config.excludePatterns,
|
|
608
612
|
provenance: config.provenance
|
|
609
613
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -263,6 +263,7 @@ async function runPreflight(config) {
|
|
|
263
263
|
function createCliSession(config) {
|
|
264
264
|
const { root, outDir, options } = config;
|
|
265
265
|
const session = new ExtractionSession(options, { noBundler: true });
|
|
266
|
+
if (config.configFile !== null) session.buildConfigFiles = [config.configFile];
|
|
266
267
|
const relOut = relative(root, outDir);
|
|
267
268
|
if (relOut === "") throw new UsageFailure(`The artifact directory is the root itself (${outDir}) — the published ${STYLES_FILE}/${SYSTEM_PROPS_FILE}/${MANIFEST_FILE} would be re-ingested as source on the next run. Pass --out-dir with a subdirectory (the default is ${ANIMUS_ARTIFACT_DIR}) or point --root at the source tree.`);
|
|
268
269
|
const outputDir = outputExclusion(root, outDir);
|
|
@@ -470,6 +471,7 @@ function parseLoadedCliConfig(raw) {
|
|
|
470
471
|
staticCss: configStaticCss(raw.staticCss),
|
|
471
472
|
layers: isConfigStringArray(raw.layers) ? raw.layers : void 0,
|
|
472
473
|
runtimeImport: isConfigString(raw.runtimeImport) ? raw.runtimeImport : void 0,
|
|
474
|
+
closedDynamicImports: Array.isArray(raw.closedDynamicImports) ? raw.closedDynamicImports : void 0,
|
|
473
475
|
mode: raw.mode === "development" || raw.mode === "production" ? raw.mode : void 0
|
|
474
476
|
},
|
|
475
477
|
cli: { outDir: cli.outDir }
|
|
@@ -563,6 +565,7 @@ async function resolveCliConfig(flags, cwd) {
|
|
|
563
565
|
staticCss: pick("staticCss", void 0),
|
|
564
566
|
layers: pick("layers", void 0),
|
|
565
567
|
runtimeImport: pick("runtimeImport", void 0),
|
|
568
|
+
closedDynamicImports: pick("closedDynamicImports", void 0),
|
|
566
569
|
mode: resolvedMode.mode
|
|
567
570
|
};
|
|
568
571
|
const excludePatterns = createExcludeMatcher(options.exclude).patterns;
|
|
@@ -603,6 +606,7 @@ function projectResolvedConfig(config) {
|
|
|
603
606
|
extensions: config.options.extensions ?? null,
|
|
604
607
|
staticCss: config.options.staticCss ?? null,
|
|
605
608
|
runtimeImport: config.options.runtimeImport ?? null,
|
|
609
|
+
closedDynamicImports: config.options.closedDynamicImports ?? null,
|
|
606
610
|
exclude: config.excludePatterns,
|
|
607
611
|
provenance: config.provenance
|
|
608
612
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animus-ui/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "Standalone Animus extraction CLI — one-shot builds and artifact emission for any build system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"animus",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"compile": "tsc --noEmit"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@animus-ui/extract": "0.1.
|
|
44
|
+
"@animus-ui/extract": "0.1.28"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=22.12.0"
|