@terrazzo/plugin-sass 0.0.1 → 0.0.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +5 -4
  3. package/package.json +10 -11
package/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # @terrazzo/plugin-sass
2
+
3
+ ## 0.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#285](https://github.com/terrazzoapp/terrazzo/pull/285) [`e8a0df1`](https://github.com/terrazzoapp/terrazzo/commit/e8a0df1f3b50cf7cb292bcc475aae271feae4569) Thanks [@drwpow](https://github.com/drwpow)! - Add support for multiple token files
8
+
9
+ - Updated dependencies [[`e8a0df1`](https://github.com/terrazzoapp/terrazzo/commit/e8a0df1f3b50cf7cb292bcc475aae271feae4569)]:
10
+ - @terrazzo/token-tools@0.0.6
11
+ - @terrazzo/plugin-css@0.0.10
12
+ - @terrazzo/cli@0.0.12
package/README.md CHANGED
@@ -1,19 +1,20 @@
1
1
  # ⛋ @terrazzo/plugin-sass
2
2
 
3
- Generate Sass code from DTCG tokens.
3
+ Convert DTCG tokens into Sass for use in any web application or native app with webview. Uses [the CSS plugin](/docs/integrations/css) under the hood that lets you use all of CSS’ features with the typesafety of Sass.
4
4
 
5
5
  ## Setup
6
6
 
7
- Requires [Node.js 18 or later](https://nodejs.org). With that installed, run:
7
+ Requires [Node.js 18 or later](https://nodejs.org) and [the CLI installed](https://terrazzo.app/docs/cli). With both installed, run:
8
8
 
9
9
  ```sh
10
- npm i -D @terrazzo/cli @terrazzo/plugin-css @terrazzo/plugin-sass
10
+ npm i -D @terrazzo/plugin-css @terrazzo/plugin-sass
11
11
  ```
12
12
 
13
- Add a `terrazzo.config.js` to the root of your project with:
13
+ Add a `terrazzo.config.js` to the root of your project:
14
14
 
15
15
  ```ts
16
16
  import { defineConfig } from "@terrazzo/cli";
17
+ import css from "@terrazzo/plugin-css";
17
18
  import sass from "@terrazzo/plugin-sass";
18
19
 
19
20
  export default defineConfig({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@terrazzo/plugin-sass",
3
3
  "description": "Generate scss/sass from your design tokens schema (requires @terrazzo/cli)",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "type": "module",
6
6
  "author": {
7
7
  "name": "Drew Powers",
@@ -23,25 +23,24 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "peerDependencies": {
26
- "@terrazzo/cli": "^0.0.10",
27
- "@terrazzo/plugin-css": "^0.0.5"
26
+ "@terrazzo/cli": "^0.0.17",
27
+ "@terrazzo/plugin-css": "^0.0.11"
28
28
  },
29
29
  "dependencies": {
30
- "@terrazzo/token-tools": "^0.0.4"
30
+ "@terrazzo/token-tools": "^0.0.9"
31
31
  },
32
32
  "devDependencies": {
33
- "@terrazzo/cli": "^0.0.10",
34
- "@terrazzo/parser": "^0.0.10",
35
- "@terrazzo/plugin-css": "^0.0.5"
33
+ "@terrazzo/cli": "^0.0.17",
34
+ "@terrazzo/parser": "^0.0.17",
35
+ "@terrazzo/plugin-css": "^0.0.11"
36
36
  },
37
37
  "scripts": {
38
- "build": "pnpm run build:clean && pnpm run build:ts && pnpm run build:license",
39
- "build:clean": "del dist",
38
+ "build": "pnpm run build:clean && pnpm run build:ts && pnpm -w run inject-license @terrazzo/plugin-sass dist/index.js",
39
+ "build:clean": "del-cli dist",
40
40
  "build:ts": "tsc -p tsconfig.build.json",
41
- "build:license": "node ../../scripts/inject-license.js @terrazzo/plugin-sass dist/index.js",
42
41
  "dev": "tsc -p tsconfig.build.json -w",
43
42
  "lint": "biome check .",
44
- "test": "pnpm run \"/^test:.*/\"",
43
+ "test": "pnpm --filter @terrazzo/plugin-sass run \"/^test:.*/\"",
45
44
  "test:js": "vitest run",
46
45
  "test:ts": "tsc --noEmit"
47
46
  }