@nghitrum/dsforge 0.1.5-alpha.0 → 0.1.5-alpha.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/README.md CHANGED
@@ -4,9 +4,7 @@
4
4
 
5
5
  Your design tokens live in Figma. Your components drift from the spec. Your docs are six sprints out of date. dsforge fixes all three with one config file.
6
6
 
7
- ![dsforge showcase](docs/showcase.png)
8
-
9
- ---
7
+ ## <img src="https://1drv.ms/i/c/03940e999db687d7/IQRd4C2SBuklSKHZ7qbr4WpAATzAfp-Oh-rRuIUqawsH0yA" />
10
8
 
11
9
  ## Before / After
12
10
 
@@ -58,18 +56,18 @@ Output lands in `dist-ds/`. Regenerate it any time by running `generate` again.
58
56
  "global": {
59
57
  "brand-600": "#2563eb",
60
58
  "neutral-900": "#0f172a",
61
- "neutral-0": "#ffffff"
59
+ "neutral-0": "#ffffff"
62
60
  },
63
61
  "semantic": {
64
- "color-action": "{global.brand-600}",
62
+ "color-action": "{global.brand-600}",
65
63
  "color-text-primary": "{global.neutral-900}",
66
- "color-bg-default": "{global.neutral-0}"
64
+ "color-bg-default": "{global.neutral-0}"
67
65
  }
68
66
  },
69
67
  "typography": {
70
68
  "fontFamily": "Inter, system-ui, sans-serif",
71
69
  "roles": {
72
- "body": { "size": 16, "weight": 400, "lineHeight": 1.6 },
70
+ "body": { "size": 16, "weight": 400, "lineHeight": 1.6 },
73
71
  "heading": { "size": 24, "weight": 700, "lineHeight": 1.2 }
74
72
  }
75
73
  },
@@ -144,17 +142,17 @@ Includes live component previews with all variants and states, themed with your
144
142
 
145
143
  `dsforge validate` runs nine health checks and produces a scored report:
146
144
 
147
- | Check | Max score |
148
- | --- | --- |
149
- | Token architecture | 15 |
150
- | Typography | 10 |
151
- | Spacing | 10 |
152
- | Radius | 5 |
153
- | Elevation | 5 |
154
- | Motion | 5 |
155
- | Themes | 10 |
156
- | Token resolution | 14 |
157
- | Governance rules | 15 |
145
+ | Check | Max score |
146
+ | ------------------ | --------- |
147
+ | Token architecture | 15 |
148
+ | Typography | 10 |
149
+ | Spacing | 10 |
150
+ | Radius | 5 |
151
+ | Elevation | 5 |
152
+ | Motion | 5 |
153
+ | Themes | 10 |
154
+ | Token resolution | 14 |
155
+ | Governance rules | 15 |
158
156
 
159
157
  Scores below 70 are flagged as warnings. WCAG contrast is checked automatically for all color token pairs.
160
158
 
@@ -186,13 +184,13 @@ Run this before deploying a config update to understand downstream impact.
186
184
 
187
185
  ## Commands
188
186
 
189
- | Command | What it does |
190
- | --- | --- |
191
- | `dsforge init` | Scaffold `design-system.config.json` and `design-system.rules.json` |
187
+ | Command | What it does |
188
+ | ------------------ | -------------------------------------------------------------------- |
189
+ | `dsforge init` | Scaffold `design-system.config.json` and `design-system.rules.json` |
192
190
  | `dsforge generate` | Run the full pipeline — tokens, components, metadata, docs, showcase |
193
- | `dsforge validate` | Run 9 health checks and score against governance rules |
194
- | `dsforge diff` | Compare two configs — BREAKING / CHANGED / ADDED |
195
- | `dsforge showcase` | Open `dist-ds/showcase.html` in your default browser |
191
+ | `dsforge validate` | Run 9 health checks and score against governance rules |
192
+ | `dsforge diff` | Compare two configs — BREAKING / CHANGED / ADDED |
193
+ | `dsforge showcase` | Open `dist-ds/showcase.html` in your default browser |
196
194
 
197
195
  Run `dsforge` with no arguments for an interactive menu.
198
196
 
package/dist/cli/index.js CHANGED
@@ -5293,8 +5293,72 @@ async function runMenu() {
5293
5293
  }
5294
5294
  }
5295
5295
 
5296
+ // package.json
5297
+ var package_default = {
5298
+ name: "@nghitrum/dsforge",
5299
+ version: "0.1.5-alpha.2",
5300
+ description: "AI-native design system generator \u2014 tokens \u2192 components \u2192 docs \u2192 npm",
5301
+ keywords: [
5302
+ "design-system",
5303
+ "tokens",
5304
+ "cli",
5305
+ "react",
5306
+ "typescript"
5307
+ ],
5308
+ license: "MIT",
5309
+ type: "module",
5310
+ bin: {
5311
+ dsforge: "dist/cli/index.js"
5312
+ },
5313
+ main: "./dist/index.js",
5314
+ types: "./dist/index.d.ts",
5315
+ exports: {
5316
+ ".": {
5317
+ import: "./dist/index.js",
5318
+ types: "./dist/index.d.ts"
5319
+ }
5320
+ },
5321
+ files: [
5322
+ "dist",
5323
+ "templates"
5324
+ ],
5325
+ repository: {
5326
+ type: "git",
5327
+ url: "https://github.com/nghitrum/dsforge"
5328
+ },
5329
+ scripts: {
5330
+ build: "tsup",
5331
+ postbuild: `node -e "const fs=require('fs'),f='dist/cli/index.js',c=fs.readFileSync(f,'utf8');if(!c.startsWith('#!/'))fs.writeFileSync(f,'#!/usr/bin/env node\\n'+c);" && chmod +x dist/cli/index.js`,
5332
+ dev: "tsx src/cli/index.ts",
5333
+ test: "vitest run",
5334
+ "test:watch": "vitest",
5335
+ typecheck: "tsc --noEmit",
5336
+ lint: "eslint src --ext .ts",
5337
+ clean: "rm -rf dist",
5338
+ purge: "rm -rf dist-ds design-system.config.json design-system.rules.json"
5339
+ },
5340
+ dependencies: {
5341
+ chalk: "^5.3.0",
5342
+ commander: "^12.1.0",
5343
+ "fs-extra": "^11.2.0",
5344
+ ora: "^8.1.0",
5345
+ zod: "^3.23.0"
5346
+ },
5347
+ devDependencies: {
5348
+ "@types/fs-extra": "^11.0.4",
5349
+ "@types/node": "^20.14.0",
5350
+ tsup: "^8.5.1",
5351
+ tsx: "^4.15.0",
5352
+ typescript: "^5.5.0",
5353
+ vitest: "^4.0.18"
5354
+ },
5355
+ engines: {
5356
+ node: ">=18.0.0"
5357
+ }
5358
+ };
5359
+
5296
5360
  // src/cli/index.ts
5297
- program.name("dsforge").description(chalk5.bold("dsforge") + " \u2014 AI-native design system generator").version("0.1.0");
5361
+ program.name("dsforge").description(chalk5.bold("dsforge") + " \u2014 AI-native design system generator").version(package_default.version);
5298
5362
  program.command("init").description(
5299
5363
  "Scaffold design-system.config.json and design-system.rules.json"
5300
5364
  ).option("-n, --name <n>", "Package name").option(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nghitrum/dsforge",
3
- "version": "0.1.5-alpha.0",
3
+ "version": "0.1.5-alpha.2",
4
4
  "description": "AI-native design system generator — tokens → components → docs → npm",
5
5
  "keywords": [
6
6
  "design-system",