design-md-generator 1.0.0 → 1.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-md-generator",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Generate DESIGN.md files from any website using Puppeteer to extract design tokens",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -16,7 +16,12 @@
16
16
  "scripts": {
17
17
  "generate": "node src/cli.js",
18
18
  "test": "echo \"Error: no test specified\" && exit 1",
19
- "postinstall": "echo '✅ design-md-generator installed! Run: design-md-generator <url> to generate a DESIGN.md'"
19
+ "postinstall": "echo '✅ design-md-generator installed! Run: design-md-generator <url> to generate a DESIGN.md'",
20
+ "release": "./scripts/release.sh",
21
+ "release:patch": "./scripts/release.sh patch",
22
+ "release:minor": "./scripts/release.sh minor",
23
+ "release:major": "./scripts/release.sh major",
24
+ "release:dry": "./scripts/release.sh patch --dry-run"
20
25
  },
21
26
  "keywords": [
22
27
  "design-system",
@@ -27,6 +32,14 @@
27
32
  "style-guide",
28
33
  "web-scraping"
29
34
  ],
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/Easy-Hexford/design-md-generator.git"
38
+ },
39
+ "homepage": "https://github.com/Easy-Hexford/design-md-generator#readme",
40
+ "bugs": {
41
+ "url": "https://github.com/Easy-Hexford/design-md-generator/issues"
42
+ },
30
43
  "license": "MIT",
31
44
  "dependencies": {
32
45
  "puppeteer": "^24.0.0",
package/src/cli.js CHANGED
@@ -29,6 +29,7 @@ program
29
29
  .option('-s, --screenshot', 'Save a screenshot of the homepage')
30
30
  .option('--json', 'Also output raw tokens as JSON')
31
31
  .option('-w, --wait <selector>', 'Wait for a specific CSS selector before extracting')
32
+ .option('-l, --lang <lang>', 'Output language: zh (Chinese) or en (English)', 'zh')
32
33
  .action(async (url, options) => {
33
34
  try {
34
35
  // Normalize URL
@@ -48,6 +49,7 @@ program
48
49
  screenshot: options.screenshot,
49
50
  outputJson: options.json,
50
51
  waitForSelector: options.wait,
52
+ lang: options.lang,
51
53
  });
52
54
 
53
55
  console.log(`\n✨ Done! DESIGN.md generated successfully.`);
@@ -87,6 +89,7 @@ program
87
89
  .option('-i, --include <patterns...>', 'Include only files matching these patterns')
88
90
  .option('-e, --exclude <patterns...>', 'Exclude files matching these patterns')
89
91
  .option('--json', 'Also output raw tokens as JSON')
92
+ .option('-l, --lang <lang>', 'Output language: zh (Chinese) or en (English)', 'zh')
90
93
  .action(async (dir, options) => {
91
94
  try {
92
95
  console.log(`\n🎨 Design MD Generator (Local mode)\n`);
@@ -104,6 +107,7 @@ program
104
107
  include: options.include || [],
105
108
  exclude: options.exclude || [],
106
109
  outputJson: options.json,
110
+ lang: options.lang,
107
111
  });
108
112
 
109
113
  console.log(`\n✨ Done! DESIGN.md generated successfully.`);