gemcss 0.1.0 → 0.3.0
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 +7 -7
- package/bin/gemcss.mjs +2 -0
- package/dist/cli.js +0 -0
- package/package.json +18 -17
package/README.md
CHANGED
|
@@ -10,13 +10,13 @@ function, with types inferred from the CSS itself.
|
|
|
10
10
|
`button.module.css`
|
|
11
11
|
|
|
12
12
|
```css
|
|
13
|
-
.button {
|
|
14
|
-
.button_disabled {
|
|
15
|
-
.button_variant_primary {
|
|
16
|
-
.button_variant_ghost {
|
|
17
|
-
.button_size_s {
|
|
18
|
-
.button_size_m {
|
|
19
|
-
.button_size_l {
|
|
13
|
+
.button {... }
|
|
14
|
+
.button_disabled {... }
|
|
15
|
+
.button_variant_primary {... }
|
|
16
|
+
.button_variant_ghost {... }
|
|
17
|
+
.button_size_s {... }
|
|
18
|
+
.button_size_m {... }
|
|
19
|
+
.button_size_l {... }
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
`button.tsx`
|
package/bin/gemcss.mjs
ADDED
package/dist/cli.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gemcss",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Typed BEM classes from CSS modules — every block becomes a modifier-combinator function, with types inferred from the CSS",
|
|
6
6
|
"keywords": [
|
|
@@ -21,12 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
"bugs": "https://github.com/vkalinichev/gemcss/issues",
|
|
23
23
|
"homepage": "https://github.com/vkalinichev/gemcss#readme",
|
|
24
|
-
"packageManager": "pnpm@11.12.0",
|
|
25
24
|
"engines": {
|
|
26
25
|
"node": ">=22.14"
|
|
27
26
|
},
|
|
28
27
|
"bin": {
|
|
29
|
-
"gemcss": "./
|
|
28
|
+
"gemcss": "./bin/gemcss.mjs"
|
|
30
29
|
},
|
|
31
30
|
"exports": {
|
|
32
31
|
"./runtime": {
|
|
@@ -47,22 +46,10 @@
|
|
|
47
46
|
}
|
|
48
47
|
},
|
|
49
48
|
"files": [
|
|
49
|
+
"bin",
|
|
50
50
|
"dist",
|
|
51
51
|
"ts-plugin"
|
|
52
52
|
],
|
|
53
|
-
"scripts": {
|
|
54
|
-
"build": "pnpm build:lib && pnpm -r --filter 'example-*' build",
|
|
55
|
-
"build:lib": "pnpm clean && tsup && node scripts/fix-ts-plugin-dts.mjs",
|
|
56
|
-
"clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
|
|
57
|
-
"test": "vitest run",
|
|
58
|
-
"test:watch": "vitest",
|
|
59
|
-
"typecheck": "tsc --noEmit",
|
|
60
|
-
"lint": "eslint .",
|
|
61
|
-
"format": "prettier --write .",
|
|
62
|
-
"check:exports": "publint --strict && attw --pack . --profile esm-only",
|
|
63
|
-
"release": "changeset publish",
|
|
64
|
-
"prepublishOnly": "pnpm build:lib"
|
|
65
|
-
},
|
|
66
53
|
"dependencies": {
|
|
67
54
|
"postcss": "^8.4.49",
|
|
68
55
|
"postcss-modules": "^6.0.1",
|
|
@@ -89,6 +76,7 @@
|
|
|
89
76
|
"@changesets/cli": "2.31.0",
|
|
90
77
|
"@types/node": "^22.10.2",
|
|
91
78
|
"eslint": "^9.17.0",
|
|
79
|
+
"gemcss": "link:.",
|
|
92
80
|
"prettier": "^3.4.2",
|
|
93
81
|
"publint": "0.3.21",
|
|
94
82
|
"tsup": "^8.3.5",
|
|
@@ -97,5 +85,18 @@
|
|
|
97
85
|
"vite": "^6.0.0",
|
|
98
86
|
"vitest": "^2.1.8",
|
|
99
87
|
"webpack": "^5.97.1"
|
|
88
|
+
},
|
|
89
|
+
"scripts": {
|
|
90
|
+
"build": "pnpm build:lib && pnpm -r --filter 'example-*' build",
|
|
91
|
+
"build:lib": "pnpm clean && tsup && node scripts/fix-ts-plugin-dts.mjs",
|
|
92
|
+
"clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
|
|
93
|
+
"test": "vitest run",
|
|
94
|
+
"test:watch": "vitest",
|
|
95
|
+
"typecheck": "tsc --noEmit",
|
|
96
|
+
"lint": "eslint .",
|
|
97
|
+
"format": "prettier --write .",
|
|
98
|
+
"format:check": "prettier --check .",
|
|
99
|
+
"check:exports": "publint --strict && attw --pack . --profile esm-only",
|
|
100
|
+
"release": "changeset publish"
|
|
100
101
|
}
|
|
101
|
-
}
|
|
102
|
+
}
|