@terrazzo/cli 2.0.0-beta.2 → 2.0.0-beta.4

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/lab.tsx CHANGED
@@ -18,6 +18,7 @@ root.render(
18
18
  });
19
19
 
20
20
  if (!response.ok) {
21
+ // biome-ignore lint/suspicious/noConsole: this is its job
21
22
  console.error(`Failed to save tokens: ${response.status}`);
22
23
  }
23
24
  }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terrazzo/cli",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "CLI for managing design tokens using the Design Tokens Community Group (DTCG) standard and generating code for any platform via plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "terrazzo": "bin/cli.js"
37
37
  },
38
38
  "dependencies": {
39
- "@clack/prompts": "^0.11.0",
39
+ "@clack/prompts": "^1.0.0",
40
40
  "@hono/node-server": "^1.19.9",
41
41
  "@humanwhocodes/momoa": "^3.3.10",
42
42
  "@types/escodegen": "^0.0.10",
@@ -49,14 +49,16 @@
49
49
  "meriyah": "^6.1.4",
50
50
  "mime": "^4.1.0",
51
51
  "picocolors": "^1.1.1",
52
+ "scule": "^1.3.0",
52
53
  "vite": "^7.3.1",
53
54
  "vite-node": "^5.3.0",
54
55
  "yaml-to-momoa": "0.0.8",
55
56
  "@terrazzo/json-schema-tools": "^0.2.0",
56
- "@terrazzo/parser": "^2.0.0-beta.2",
57
- "@terrazzo/token-tools": "^2.0.0-beta.2"
57
+ "@terrazzo/parser": "^2.0.0-beta.4",
58
+ "@terrazzo/token-tools": "^2.0.0-beta.4"
58
59
  },
59
60
  "devDependencies": {
61
+ "@figma/rest-api-spec": "^0.36.0",
60
62
  "@swc/core": "1.13.19",
61
63
  "@swc/core-darwin-arm64": "1.13.19",
62
64
  "@swc/core-darwin-x64": "1.13.19",
@@ -1,12 +0,0 @@
1
- import { defineConfig } from '@terrazzo/cli';
2
-
3
- export default defineConfig({
4
- tokens: ['tokens-example.json'],
5
- outDir: './tokens/',
6
- plugins: [
7
- /** @see https://terrazzo.app/docs/integrations */
8
- ],
9
- lint: {
10
- /** @see https://terrazzo.app/docs/linting */
11
- },
12
- });
@@ -1,50 +0,0 @@
1
- {
2
- "color": {
3
- "$description": "Color tokens",
4
- "$type": "color",
5
- "black": {
6
- "100": {
7
- "$value": { "colorSpace": "srgb", "components": [0.047, 0.047, 0.047], "alpha": 0.05, "hex": "#0c0c0d" }
8
- },
9
- "200": {
10
- "$value": { "colorSpace": "srgb", "components": [0.047, 0.047, 0.047], "alpha": 0.1, "hex": "#0c0c0d" }
11
- },
12
- "300": {
13
- "$value": { "colorSpace": "srgb", "components": [0.047, 0.047, 0.047], "alpha": 0.2, "hex": "#0c0c0d" }
14
- },
15
- "400": {
16
- "$value": { "colorSpace": "srgb", "components": [0.047, 0.047, 0.047], "alpha": 0.34, "hex": "#0c0c04" }
17
- },
18
- "500": {
19
- "$value": { "colorSpace": "srgb", "components": [0.047, 0.047, 0.047], "alpha": 0.7, "hex": "#0c0c0d" }
20
- },
21
- "600": {
22
- "$value": { "colorSpace": "srgb", "components": [0.047, 0.047, 0.047], "alpha": 0.8, "hex": "#0c0c0d" }
23
- },
24
- "700": {
25
- "$value": { "colorSpace": "srgb", "components": [0.047, 0.047, 0.047], "alpha": 0.85, "hex": "#0c0c0d" }
26
- },
27
- "800": {
28
- "$value": { "colorSpace": "srgb", "components": [0.047, 0.047, 0.047], "alpha": 0.9, "hex": "#0c0c0d" }
29
- },
30
- "900": {
31
- "$value": { "colorSpace": "srgb", "components": [0.047, 0.047, 0.047], "alpha": 0.95, "hex": "#0c0c0d" }
32
- },
33
- "1000": {
34
- "$value": { "colorSpace": "srgb", "components": [0.047, 0.047, 0.047], "alpha": 0, "hex": "#0c0c0d" }
35
- }
36
- }
37
- },
38
- "border": {
39
- "$description": "Border tokens",
40
- "$type": "border"
41
- },
42
- "space": {
43
- "$description": "Dimension tokens",
44
- "$type": "dimension"
45
- },
46
- "typography": {
47
- "$description": "Typography tokens",
48
- "$type": "typography"
49
- }
50
- }
package/vite.config.ts DELETED
@@ -1,18 +0,0 @@
1
- import react from '@vitejs/plugin-react-swc';
2
- import { defineConfig } from 'vitest/config';
3
-
4
- export default defineConfig({
5
- plugins: [react({ devTarget: 'esnext' })],
6
- build: {
7
- outDir: 'dist/lab',
8
- rollupOptions: {
9
- external: ['@terrazzo/tiles', '@terrazzo/token-lab'],
10
- },
11
- emptyOutDir: true,
12
- sourcemap: true,
13
- target: 'es2024',
14
- },
15
- test: {
16
- testTimeout: 15_000,
17
- },
18
- });