linework-cli 0.1.1 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +8 -8
  2. package/package.json +2 -2
  3. package/src/cli.mjs +21 -17
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Official CLI for **[Linework](https://linework.rdev.web.id)** — semantic SVG icons and editorial illustrations engineered for React, Next.js, Vite, Astro, Remix, and React Router.
4
4
 
5
- Initialize semantic `--rdev-*` light/dark CSS tokens and pull live TSX components or full React packages straight into your project. Newly published icons and illustrations on Linework are available immediately through the CLI without waiting for CLI releases.
5
+ Initialize semantic `--linework-*` light/dark CSS tokens and pull live TSX components or full React packages straight into your project. Newly published icons and illustrations on Linework are available immediately through the CLI without waiting for CLI releases.
6
6
 
7
7
  ---
8
8
 
@@ -50,7 +50,7 @@ Options:
50
50
  # Search live icons & illustrations from the terminal
51
51
  pnpm dlx linework-cli@latest search astronaut --type illustration
52
52
 
53
- # Refresh installed @rdev/icons-react & @rdev/illustrations-react .tgz packages
53
+ # Refresh installed @linework/icons-react & @linework/illustrations-react .tgz packages
54
54
  pnpm dlx linework-cli@latest sync
55
55
  ```
56
56
 
@@ -62,11 +62,11 @@ Every icon and illustration automatically maps paths to 5 theme tokens configure
62
62
 
63
63
  | Token | CSS Variable | Role |
64
64
  |---|---|---|
65
- | `primary` | `--rdev-primary` | Dominant fill / foreground subject |
66
- | `secondary` | `--rdev-secondary` | Supporting planes & depth |
67
- | `accent` | `--rdev-accent` | Warm highlights & badges |
68
- | `outline` | `--rdev-outline` | Structural ink contours |
69
- | `highlight` | `--rdev-highlight` | Specular paper/card shine |
65
+ | `primary` | `--linework-primary` | Dominant fill / foreground subject |
66
+ | `secondary` | `--linework-secondary` | Supporting planes & depth |
67
+ | `accent` | `--linework-accent` | Warm highlights & badges |
68
+ | `outline` | `--linework-outline` | Structural ink contours |
69
+ | `highlight` | `--linework-highlight` | Specular paper/card shine |
70
70
 
71
71
  ---
72
72
 
@@ -79,4 +79,4 @@ Every icon and illustration automatically maps paths to 5 theme tokens configure
79
79
 
80
80
  ## License
81
81
 
82
- MIT — RDEV Studio
82
+ MIT — Linework Studio
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "linework-cli",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "CLI for initializing Linework semantic color tokens and adding live vector icons and illustrations to React projects.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
- "author": "RDEV Studio",
7
+ "author": "Linework Studio",
8
8
  "homepage": "https://linework.rdev.web.id/docs/cli",
9
9
  "keywords": [
10
10
  "icons",
package/src/cli.mjs CHANGED
@@ -112,19 +112,19 @@ function buildTokenCssBlock(tokens = DEFAULT_TOKENS) {
112
112
  return [
113
113
  TOKEN_BLOCK_START,
114
114
  ':root {',
115
- ` --rdev-primary: ${tokens.primary};`,
116
- ` --rdev-secondary: ${tokens.secondary};`,
117
- ` --rdev-accent: ${tokens.accent};`,
118
- ` --rdev-outline: ${tokens.outline};`,
119
- ` --rdev-highlight: ${tokens.highlight};`,
115
+ ` --linework-primary: ${tokens.primary};`,
116
+ ` --linework-secondary: ${tokens.secondary};`,
117
+ ` --linework-accent: ${tokens.accent};`,
118
+ ` --linework-outline: ${tokens.outline};`,
119
+ ` --linework-highlight: ${tokens.highlight};`,
120
120
  '}',
121
121
  '',
122
122
  '.dark {',
123
- ' --rdev-primary: #52B788;',
124
- ' --rdev-secondary: #74C69D;',
125
- ' --rdev-accent: #F4A261;',
126
- ' --rdev-outline: #E8E6DF;',
127
- ' --rdev-highlight: #1B2622;',
123
+ ' --linework-primary: #52B788;',
124
+ ' --linework-secondary: #74C69D;',
125
+ ' --linework-accent: #F4A261;',
126
+ ' --linework-outline: #E8E6DF;',
127
+ ' --linework-highlight: #1B2622;',
128
128
  '}',
129
129
  TOKEN_BLOCK_END,
130
130
  ].join('\n');
@@ -143,7 +143,7 @@ export function upsertTokenCss(fullCssPath, tokens = DEFAULT_TOKENS) {
143
143
  return 'updated';
144
144
  }
145
145
 
146
- if (existing.includes('--rdev-primary')) {
146
+ if (existing.includes('--linework-primary')) {
147
147
  return 'skipped';
148
148
  }
149
149
 
@@ -240,8 +240,8 @@ export function formatHelp() {
240
240
  'Options:',
241
241
  ' -t, --template <framework> Framework preset (next, vite, astro, remix, react-router, react)',
242
242
  ' -d, --dir <path> Target directory for added components (default: components/linework)',
243
- ' --install Install live @rdev/icons-react & @rdev/illustrations-react .tgz packages',
244
- ' --no-css Skip writing --rdev-* CSS custom properties',
243
+ ' --install Install live @linework/icons-react & @linework/illustrations-react .tgz packages',
244
+ ' --no-css Skip writing --linework-* CSS custom properties',
245
245
  ' --size <px> Default icon/illustration width/height for added TSX (default: 48)',
246
246
  ' --overwrite Overwrite existing local .tsx component files',
247
247
  ' -h, --help Show help',
@@ -303,7 +303,7 @@ export async function runCli(argv, deps = {}) {
303
303
  const cssFullPath = path.resolve(cwd, cssRel);
304
304
  const cssStatus = upsertTokenCss(cssFullPath, DEFAULT_TOKENS);
305
305
  if (cssStatus === 'added') {
306
- log(`✔ Added 5 semantic --rdev-* tokens to ${cssRel}`);
306
+ log(`✔ Added 5 semantic --linework-* tokens to ${cssRel}`);
307
307
  } else if (cssStatus === 'updated') {
308
308
  log(`✔ Updated Linework semantic tokens in ${cssRel}`);
309
309
  } else {
@@ -317,7 +317,7 @@ export async function runCli(argv, deps = {}) {
317
317
  `${registry}/api/packages/illustrations-react.tgz`,
318
318
  ];
319
319
  const args = buildInstallArgs(pm, specs);
320
- log(`Installing @rdev/icons-react and @rdev/illustrations-react via ${pm}...`);
320
+ log(`Installing @linework/icons-react and @linework/illustrations-react via ${pm}...`);
321
321
  const res = runCommand(pm, args, cwd);
322
322
  if (res.status !== 0) {
323
323
  errLog(`Package installation failed with exit code ${res.status}.`);
@@ -461,8 +461,12 @@ export async function runCli(argv, deps = {}) {
461
461
  }
462
462
 
463
463
  const targets = [];
464
- if (deps['@rdev/icons-react']) targets.push(`${registry}/api/packages/icons-react.tgz`);
465
- if (deps['@rdev/illustrations-react']) targets.push(`${registry}/api/packages/illustrations-react.tgz`);
464
+ if (deps['@linework/icons-react'] || deps['@rdev/icons-react']) {
465
+ targets.push(`${registry}/api/packages/icons-react.tgz`);
466
+ }
467
+ if (deps['@linework/illustrations-react'] || deps['@rdev/illustrations-react']) {
468
+ targets.push(`${registry}/api/packages/illustrations-react.tgz`);
469
+ }
466
470
  if (targets.length === 0) {
467
471
  targets.push(
468
472
  `${registry}/api/packages/icons-react.tgz`,