@nexus-cross/tokens 1.0.1 → 1.0.2
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/dist/TOKENS.md +125 -116
- package/dist/company-vars.css +7 -1
- package/dist/company.css +7 -1
- package/dist/index.js +94 -94
- package/dist/index.mjs +94 -94
- package/package.json +2 -2
- package/scripts/postinstall.js +1 -1
- package/scripts/setup-cursor-rules.cjs +5 -5
- package/src/data/color.json +79 -79
- package/src/data/typography.json +15 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cross/tokens",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "TO-NEXUS Design Tokens - 디자인 시스템 토큰 라이브러리",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"build": "tsup src/index.ts --format cjs,esm --dts && node ../../scripts/generate-css.js",
|
|
49
49
|
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
50
50
|
"lint": "eslint src/",
|
|
51
|
-
"test": "
|
|
51
|
+
"test": "vitest run",
|
|
52
52
|
"type-check": "tsc --noEmit",
|
|
53
53
|
"postinstall": "node scripts/postinstall.js"
|
|
54
54
|
}
|
package/scripts/postinstall.js
CHANGED
|
@@ -12,7 +12,7 @@ const path = require('path');
|
|
|
12
12
|
|
|
13
13
|
const RULE_FILENAME = 'nexus-tokens.mdc';
|
|
14
14
|
const FRONTMATTER = `---
|
|
15
|
-
description: "NEXUS Design Token Reference —
|
|
15
|
+
description: "NEXUS Design Token Reference — Tailwind classes and CSS variables for colors, typography, spacing, and all design tokens"
|
|
16
16
|
alwaysApply: true
|
|
17
17
|
---
|
|
18
18
|
|
|
@@ -4,7 +4,7 @@ const fs = require('fs');
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
|
|
6
6
|
const FRONTMATTER = `---
|
|
7
|
-
description: "NEXUS Design Token Reference —
|
|
7
|
+
description: "NEXUS Design Token Reference — Tailwind classes and CSS variables for colors, typography, spacing, and all design tokens"
|
|
8
8
|
alwaysApply: true
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -25,13 +25,13 @@ function findProjectRoot(startDir) {
|
|
|
25
25
|
function run() {
|
|
26
26
|
const projectRoot = findProjectRoot(process.cwd());
|
|
27
27
|
if (!projectRoot) {
|
|
28
|
-
console.log('[@nexus-cross/tokens]
|
|
28
|
+
console.log('[@nexus-cross/tokens] Could not find project root.');
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
const tokensMd = path.join(projectRoot, 'node_modules', '@nexus-cross', 'tokens', 'dist', 'TOKENS.md');
|
|
33
33
|
if (!fs.existsSync(tokensMd)) {
|
|
34
|
-
console.log('[@nexus-cross/tokens] dist/TOKENS.md
|
|
34
|
+
console.log('[@nexus-cross/tokens] dist/TOKENS.md not found.');
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -44,9 +44,9 @@ function run() {
|
|
|
44
44
|
|
|
45
45
|
if (!destExists || fs.readFileSync(dest, 'utf-8') !== content) {
|
|
46
46
|
fs.writeFileSync(dest, content, 'utf-8');
|
|
47
|
-
console.log(`[@nexus-cross/tokens] ${destExists ? '
|
|
47
|
+
console.log(`[@nexus-cross/tokens] ${destExists ? 'updated' : 'installed'}: .cursor/rules/nexus-tokens.mdc`);
|
|
48
48
|
} else {
|
|
49
|
-
console.log('[@nexus-cross/tokens] Cursor rules
|
|
49
|
+
console.log('[@nexus-cross/tokens] Cursor rules are already up to date.');
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|