@terrazzo/cli 2.0.0-alpha.2 → 2.0.0-alpha.3
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/CHANGELOG.md +11 -13
- package/README.md +3 -3
- package/bin/cli.js +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1754 -26
- package/dist/index.js.map +1 -1
- package/dist/lab/assets/{index-D23SXCT5.js → index-CFxsC-3z.js} +5 -45
- package/dist/lab/assets/{index-D23SXCT5.js.map → index-CFxsC-3z.js.map} +1 -1
- package/dist/lab/index.html +1 -1
- package/package.json +21 -8
- package/{terrazzo.config.mjs → terrazzo.config.ts} +2 -2
- package/vite.config.ts +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
# @terrazzo/cli
|
|
2
2
|
|
|
3
|
-
## 2.0.0-alpha.2
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [#568](https://github.com/terrazzoapp/terrazzo/pull/568) [`67c75be`](https://github.com/terrazzoapp/terrazzo/commit/67c75be78978cece52b61cf258ccc3a875e6af48) Thanks [@drwpow](https://github.com/drwpow)! - Fix border tokens not cascading correctly across modes
|
|
8
|
-
|
|
9
|
-
- Updated dependencies [[`67c75be`](https://github.com/terrazzoapp/terrazzo/commit/67c75be78978cece52b61cf258ccc3a875e6af48)]:
|
|
10
|
-
- @terrazzo/parser@2.0.0-alpha.2
|
|
11
|
-
- @terrazzo/token-tools@2.0.0-alpha.2
|
|
12
|
-
|
|
13
3
|
## 2.0.0
|
|
14
4
|
|
|
15
5
|
### Minor Changes
|
|
16
6
|
|
|
17
7
|
- [#530](https://github.com/terrazzoapp/terrazzo/pull/530) [`370ed7b`](https://github.com/terrazzoapp/terrazzo/commit/370ed7b0f578a64824124145d7f4936536b37bb3) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ Breaking change; DTCG 2nd Editors draft format will throw errors by default. This means converting all colors and dimensions to the new object format.
|
|
18
8
|
|
|
19
|
-
Though this is a breaking change in default behavior, you can opt back into the old behavior by adjusting your config’s lint settings. See https://terrazzo.app/docs/
|
|
9
|
+
Though this is a breaking change in default behavior, you can opt back into the old behavior by adjusting your config’s lint settings. See https://terrazzo.app/docs/linting/.
|
|
20
10
|
|
|
21
11
|
List of changes:
|
|
22
12
|
- **color**: `channels` is invalid; `components` is required (“channels” was never part of the spec; this just deprecates an in-progress draft that was briefly supported)
|
|
@@ -57,7 +47,9 @@
|
|
|
57
47
|
- Transition
|
|
58
48
|
- Typography
|
|
59
49
|
|
|
60
|
-
These behaviors may be opted out individually by adjusting the new lint rules ([see documentation](https://terrazzo.app/
|
|
50
|
+
These behaviors may be opted out individually by adjusting the new lint rules ([see documentation](https://terrazzo.app/cli/linting/)).
|
|
51
|
+
|
|
52
|
+
- [#589](https://github.com/terrazzoapp/terrazzo/pull/589) [`8f32d44`](https://github.com/terrazzoapp/terrazzo/commit/8f32d44792bba62194e674c9b60cfdeb366c96c7) Thanks [@michaelurban](https://github.com/michaelurban)! - feat: add typography shorthand, improve Sass plugin
|
|
61
53
|
|
|
62
54
|
### Patch Changes
|
|
63
55
|
|
|
@@ -69,12 +61,18 @@
|
|
|
69
61
|
|
|
70
62
|
- [#530](https://github.com/terrazzoapp/terrazzo/pull/530) [`370ed7b`](https://github.com/terrazzoapp/terrazzo/commit/370ed7b0f578a64824124145d7f4936536b37bb3) Thanks [@drwpow](https://github.com/drwpow)! - Add first class support for JSON $refs, both remote and local.
|
|
71
63
|
|
|
72
|
-
Under-the-hood this transforms DTCG
|
|
64
|
+
Under-the-hood this transforms DTCG aliases to JSON $refs, so they’re interchangeable.
|
|
73
65
|
|
|
74
66
|
- [#530](https://github.com/terrazzoapp/terrazzo/pull/530) [`370ed7b`](https://github.com/terrazzoapp/terrazzo/commit/370ed7b0f578a64824124145d7f4936536b37bb3) Thanks [@drwpow](https://github.com/drwpow)! - Bugfix: fix strokeStyle partialAliasOf
|
|
75
67
|
|
|
76
68
|
- [#530](https://github.com/terrazzoapp/terrazzo/pull/530) [`370ed7b`](https://github.com/terrazzoapp/terrazzo/commit/370ed7b0f578a64824124145d7f4936536b37bb3) Thanks [@drwpow](https://github.com/drwpow)! - Add missing $deprecated property to group types
|
|
77
69
|
|
|
70
|
+
- [#568](https://github.com/terrazzoapp/terrazzo/pull/568) [`67c75be`](https://github.com/terrazzoapp/terrazzo/commit/67c75be78978cece52b61cf258ccc3a875e6af48) Thanks [@drwpow](https://github.com/drwpow)! - Fix border tokens not cascading correctly across modes
|
|
71
|
+
|
|
72
|
+
- An error is now thrown if `--config [path]` points to a bad location.
|
|
73
|
+
|
|
74
|
+
- TypeScript config files now fully supported! `terrazzo.config.ts` is now the default.
|
|
75
|
+
|
|
78
76
|
## 0.10.3
|
|
79
77
|
|
|
80
78
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The Terrazzo CLI takes DTCG design tokens and generates code using plugins (e.g. [CSS](../plugin-css/), [Sass](../plugin-sass/), [JS/TS](../plugin-js/), and more). You can either run the Terrazzo CLI manually, or as part of your <abbr title="Continuous Integration">CI</abbr> process.
|
|
4
4
|
|
|
5
5
|
> [!TIP]
|
|
6
|
-
> Migrating from Cobalt? Check out the [Migration Guide](/docs/
|
|
6
|
+
> Migrating from Cobalt? Check out the [Migration Guide](/docs/guides/migrating-cobalt)
|
|
7
7
|
|
|
8
8
|
## Quickstart
|
|
9
9
|
|
|
@@ -19,6 +19,6 @@ And you can create a configuration and install plugins with the `init` command:
|
|
|
19
19
|
npx tz init
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
This will create a `terrazzo.config.
|
|
22
|
+
This will create a `terrazzo.config.ts` starter config file, and even start your token system from a popular open source design system.
|
|
23
23
|
|
|
24
|
-
[Full documentation](https://terrazzo.app/docs
|
|
24
|
+
[Full documentation](https://terrazzo.app/docs)
|
package/bin/cli.js
CHANGED
|
@@ -38,9 +38,9 @@ const require = createRequire(process.cwd());
|
|
|
38
38
|
dotenv.config();
|
|
39
39
|
|
|
40
40
|
const [, , ...argsRaw] = process.argv;
|
|
41
|
-
|
|
42
41
|
const { values: flags, positionals } = parseArgs({
|
|
43
42
|
args: argsRaw,
|
|
43
|
+
strict: true,
|
|
44
44
|
allowPositionals: true,
|
|
45
45
|
options: {
|
|
46
46
|
config: { type: 'string', short: 'c' },
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/shared.ts","../src/build.ts","../src/check.ts","../src/help.ts","../src/init.ts","../src/lab.ts","../src/normalize.ts","../src/version.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/shared.ts","../src/build.ts","../src/check.ts","../src/help.ts","../src/init.ts","../src/lab.ts","../src/normalize.ts","../src/version.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;cASa,KAAiD,IAAA,CAA9C;cACH,qBAA0D,IAAA,CAAvC;cACnB,qBAAmD,IAAA,CAAhC;AAFnB,KAID,OAAA,GAJkD,OAA9C,GAA8C,OAAA,GAAA,MAAA,GAAA,MAAA,GAAA,SAAA;AACjD,cAKA,WAL0D,EAAA,MAAA;AAC1D,UAMI,KAAA,CANJ;EAED;EAEC,MAAA,CAAA,EAAA,MAA2B;EAEvB;EAaA,GAAA,CAAA,EAAA,MAAA;EACV;EACE,IAAA,CAAA,EAAA,OAAA;EACC;EAAM,KAAA,CAAA,EAAA,OAAA;EAIM;EAAa,OAAA,CAAA,EAAA,OAAA;;AAAY,UAP9B,iBAAA,CAO8B;EAAU,GAAA,EANlD,OAMkD;SALhD;EAKiE,MAAA,EAJhE,MAIgE;;AAsF1E;AAA6C,iBAtFvB,UAAA,CAsFuB;EAAA,GAAA;EAAA,KAAA;EAAA;AAAA,CAAA,EAtFY,iBAsFZ,CAAA,EAtF6B,OAsF7B,CAAA;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