@animus-ui/cli 0.1.16 → 0.1.17
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 +29 -5
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -50,11 +50,35 @@ every human-facing line goes to stderr.
|
|
|
50
50
|
input could not be read or resolved** — an include or entry that does not
|
|
51
51
|
resolve, a configured file that cannot be read, a configured package or
|
|
52
52
|
path that cannot be found, registered vocabulary that never reaches the
|
|
53
|
-
build.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
build. It also fails on **a classified unsupported Animus declaration**:
|
|
54
|
+
a declaration extraction proves comes from `@animus-ui/system` but cannot
|
|
55
|
+
extract, such as `.variant(AXIS)` passing a whole config through an
|
|
56
|
+
identifier, a member-parent `.extend()`, a default-exported chain, or a
|
|
57
|
+
`.props()` custom prop that loses its `transform` callback (a mutable
|
|
58
|
+
reference, an import from a module outside the analyzed sources or through
|
|
59
|
+
`export *`, or any callback reaching `.props()` through a const config), and
|
|
60
|
+
on a system-configured transform rejected before registration. Inside the
|
|
61
|
+
`.props()` object literal, an inline function and a reference to a const
|
|
62
|
+
arrow or function expression, a never-reassigned function declaration, a
|
|
63
|
+
const alias of one of these, or a const created by `createTransform`
|
|
64
|
+
imported from `@animus-ui/system` are supported, declared in the same module
|
|
65
|
+
or imported, through aliases and named re-exports, from an analyzed source
|
|
66
|
+
module, as is a named transform string such as `transform: 'size'`. It also fails on a value that
|
|
67
|
+
names no token on a strict, populated scale (`animus.props.strict-token-miss`);
|
|
68
|
+
that prop's styling is omitted in every mode, and the warning keeps the
|
|
69
|
+
authored value. It also fails on a configured transform that cannot be evaluated
|
|
70
|
+
during extraction (it exhausts its budget or reads the host environment) where
|
|
71
|
+
the value has no runtime path, in a style block, variant, state or global style
|
|
72
|
+
(`animus.transform.static-evaluation-unavailable`); the raw value applies in
|
|
73
|
+
every mode, while the same value in JSX stays on its runtime path without a
|
|
74
|
+
diagnostic. Each classified diagnostic carries
|
|
75
|
+
a stable `animus.*` code, its file and binding, the reason and a supported
|
|
76
|
+
rewrite. Genuine degradation stays a warning in every mode (per-property
|
|
77
|
+
skips, name collisions, unsupported-value fallbacks, pruning, valid dynamic
|
|
78
|
+
values, raw values on unscaled or `strict: false` props), and so does a declaration whose
|
|
79
|
+
Animus origin cannot be proven. Without `--strict` (or with `strict: false`
|
|
80
|
+
in the config file) all of these print as warnings and the
|
|
81
|
+
build exits 0.
|
|
58
82
|
|
|
59
83
|
## Exit codes
|
|
60
84
|
|
package/dist/config.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare function projectResolvedConfig(config: ResolvedCliConfig): {
|
|
|
41
41
|
mode: AnimusMode;
|
|
42
42
|
system: string;
|
|
43
43
|
strict: boolean;
|
|
44
|
-
verbose: boolean;
|
|
44
|
+
verbose: "trace" | boolean;
|
|
45
45
|
targets: string | string[] | null;
|
|
46
46
|
minify: boolean | null;
|
|
47
47
|
prefix: string | null;
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EACV,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,CAA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: isConfigStringArray(raw.exclude) ? raw.exclude : void 0,
|
|
448
448
|
extensions: isConfigStringArray(raw.extensions) ? raw.extensions : void 0,
|
|
449
449
|
strict: isConfigBoolean(raw.strict) ? raw.strict : void 0,
|
|
450
|
-
verbose: isConfigBoolean(raw.verbose) ? raw.verbose : void 0,
|
|
450
|
+
verbose: isConfigBoolean(raw.verbose) || raw.verbose === "trace" ? raw.verbose : void 0,
|
|
451
451
|
prefix: isConfigString(raw.prefix) ? raw.prefix : void 0,
|
|
452
452
|
targets: isConfigString(raw.targets) || isConfigStringArray(raw.targets) ? raw.targets : void 0,
|
|
453
453
|
minify: isConfigBoolean(raw.minify) ? raw.minify : void 0,
|
|
@@ -782,7 +782,8 @@ Options:
|
|
|
782
782
|
an explicit exclude: [] in the config file means none)
|
|
783
783
|
--mode <m> 'development' | 'production' (default: production)
|
|
784
784
|
--targets <query> Browserslist query for CSS lowering
|
|
785
|
-
--strict Fail on inputs that could not be read or resolved
|
|
785
|
+
--strict Fail on inputs that could not be read or resolved,
|
|
786
|
+
and on classified unsupported Animus declarations
|
|
786
787
|
--fail-on-degraded watch only: exit 3 instead of running with unwatched
|
|
787
788
|
roots (degradation is otherwise reported and tolerated)
|
|
788
789
|
--verbose Verbose logging (stderr)
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;kDACkD;AAalD,eAAO,MAAM,OAAO,IAAI,CAAC;AACzB,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAClC;qEACqE;AACrE,eAAO,MAAM,YAAY,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;kDACkD;AAalD,eAAO,MAAM,OAAO,IAAI,CAAC;AACzB,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAClC;qEACqE;AACrE,eAAO,MAAM,YAAY,IAAI,CAAC;AAoD9B;sDACsD;AACtD,wBAAgB,WAAW,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAMzD;AAQD,wBAAsB,IAAI,CACxB,IAAI,GAAE,MAAM,EAA0B,GACrC,OAAO,CAAC,IAAI,CAAC,CA0Ff"}
|
package/dist/index.mjs
CHANGED
|
@@ -446,7 +446,7 @@ function parseLoadedCliConfig(raw) {
|
|
|
446
446
|
exclude: isConfigStringArray(raw.exclude) ? raw.exclude : void 0,
|
|
447
447
|
extensions: isConfigStringArray(raw.extensions) ? raw.extensions : void 0,
|
|
448
448
|
strict: isConfigBoolean(raw.strict) ? raw.strict : void 0,
|
|
449
|
-
verbose: isConfigBoolean(raw.verbose) ? raw.verbose : void 0,
|
|
449
|
+
verbose: isConfigBoolean(raw.verbose) || raw.verbose === "trace" ? raw.verbose : void 0,
|
|
450
450
|
prefix: isConfigString(raw.prefix) ? raw.prefix : void 0,
|
|
451
451
|
targets: isConfigString(raw.targets) || isConfigStringArray(raw.targets) ? raw.targets : void 0,
|
|
452
452
|
minify: isConfigBoolean(raw.minify) ? raw.minify : void 0,
|
|
@@ -781,7 +781,8 @@ Options:
|
|
|
781
781
|
an explicit exclude: [] in the config file means none)
|
|
782
782
|
--mode <m> 'development' | 'production' (default: production)
|
|
783
783
|
--targets <query> Browserslist query for CSS lowering
|
|
784
|
-
--strict Fail on inputs that could not be read or resolved
|
|
784
|
+
--strict Fail on inputs that could not be read or resolved,
|
|
785
|
+
and on classified unsupported Animus declarations
|
|
785
786
|
--fail-on-degraded watch only: exit 3 instead of running with unwatched
|
|
786
787
|
roots (degradation is otherwise reported and tolerated)
|
|
787
788
|
--verbose Verbose logging (stderr)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animus-ui/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
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.17"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=22.12.0"
|