byuckchon-frontend-cli 1.0.0 → 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/LICENSE +21 -0
- package/README.md +2 -0
- package/package.json +22 -2
- package/src/generators/createBaseFiles.js +20 -10
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 혁명전사
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "byuckchon-frontend-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "byuckchon frontend CLI for creating React and Next.js projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -18,5 +18,25 @@
|
|
|
18
18
|
"src",
|
|
19
19
|
"README.md"
|
|
20
20
|
],
|
|
21
|
-
"
|
|
21
|
+
"keywords": [
|
|
22
|
+
"byuckchon-frontend",
|
|
23
|
+
"byuckchon",
|
|
24
|
+
"frontend",
|
|
25
|
+
"cli",
|
|
26
|
+
"react",
|
|
27
|
+
"next"
|
|
28
|
+
],
|
|
29
|
+
"author": "Byuckchon Frontend Team",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/RevolutionaryWarrior/byuckchon-frontend-cli/issues"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/RevolutionaryWarrior/byuckchon-frontend-cli#readme",
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "git+https://github.com/RevolutionaryWarrior/byuckchon-frontend-cli.git"
|
|
41
|
+
}
|
|
22
42
|
}
|
|
@@ -342,7 +342,7 @@ StyleDictionary.registerTransform({
|
|
|
342
342
|
.toLowerCase(),
|
|
343
343
|
});
|
|
344
344
|
|
|
345
|
-
// Tailwind
|
|
345
|
+
// color는 Tailwind 유틸리티로, typography는 .text-* 클래스로 생성
|
|
346
346
|
StyleDictionary.registerFormat({
|
|
347
347
|
name: "css/tailwind-theme",
|
|
348
348
|
format: ({ dictionary }) => {
|
|
@@ -357,23 +357,33 @@ StyleDictionary.registerFormat({
|
|
|
357
357
|
if (token.$type === "color") {
|
|
358
358
|
css += \` --color-\${token.name}: \${token.$value};\\n\`;
|
|
359
359
|
}
|
|
360
|
+
});
|
|
361
|
+
css += "}\\n\\n";
|
|
362
|
+
|
|
363
|
+
css += "@layer components {\\n";
|
|
364
|
+
dictionary.allTokens.forEach((token) => {
|
|
360
365
|
if (token.$type === "typography" && token.$value) {
|
|
361
366
|
const typo = token.$value;
|
|
362
|
-
|
|
363
|
-
css += \` --font-family-\${token.name}: \${typo.fontFamily};\\n\`;
|
|
364
|
-
}
|
|
365
|
-
if (typo.fontWeight) {
|
|
366
|
-
css += \` --font-weight-\${token.name}: \${typo.fontWeight};\\n\`;
|
|
367
|
-
}
|
|
367
|
+
css += \` .text-\${token.name} {\\n\`;
|
|
368
368
|
if (typo.fontSize) {
|
|
369
|
-
css += \`
|
|
369
|
+
css += \` font-size: \${withPx(typo.fontSize)};\\n\`;
|
|
370
370
|
}
|
|
371
371
|
if (typo.lineHeight) {
|
|
372
|
-
css += \`
|
|
372
|
+
css += \` line-height: \${withPx(typo.lineHeight)};\\n\`;
|
|
373
|
+
}
|
|
374
|
+
if (typo.letterSpacing) {
|
|
375
|
+
css += \` letter-spacing: \${typo.letterSpacing};\\n\`;
|
|
376
|
+
}
|
|
377
|
+
if (typo.fontWeight) {
|
|
378
|
+
css += \` font-weight: \${typo.fontWeight};\\n\`;
|
|
373
379
|
}
|
|
380
|
+
if (typo.fontFamily) {
|
|
381
|
+
css += \` font-family: \${typo.fontFamily};\\n\`;
|
|
382
|
+
}
|
|
383
|
+
css += " }\\n";
|
|
374
384
|
}
|
|
375
385
|
});
|
|
376
|
-
css += "}\\n
|
|
386
|
+
css += "}\\n";
|
|
377
387
|
|
|
378
388
|
return css;
|
|
379
389
|
},
|