roast-my-design-system 9.3.0 → 9.3.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": "roast-my-design-system",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.1",
|
|
4
4
|
"mcpName": "io.github.gregkozakiewicz/roast-my-design-system",
|
|
5
5
|
"description": "Your AI can write the UI. This makes sure it writes your UI. A deterministic scanner scores your design system 0-100 against 112 public repos, reads React and web components (Stencil, Lit), hands you a copy-paste fix prompt for each top finding, writes rules for Claude, Cursor, Copilot and Windsurf with --apply, and runs as a local MCP server with --mcp.",
|
|
6
6
|
"keywords": [
|
|
@@ -50,7 +50,12 @@ const DOOR_TYPO_RE = /(?<![\w-])(?:[\w-]+:)*(?:font-(?:thin|extralight|light|nor
|
|
|
50
50
|
export const blankComments = (s) => s
|
|
51
51
|
.replace(/\/\*[\s\S]*?\*\//g, (m) => m.replace(/[^\n]/g, ' '))
|
|
52
52
|
.replace(/(^|[^:'"`\\])(\/\/[^\n]*)/g, (m, pre, c) => pre + ' '.repeat(c.length));
|
|
53
|
-
|
|
53
|
+
// Not templates: in a product a templates folder is usually a screen
|
|
54
|
+
// (teable's admin templates, documenso's and formbricks' template pickers),
|
|
55
|
+
// and hiding it hid their colours from the report and the live checks. A
|
|
56
|
+
// project generator's templates are left out by the walk instead, and email
|
|
57
|
+
// templates by the email rule (2026-09-30).
|
|
58
|
+
export const DEMO_PATH_RE = /(^|\/)(stories|storybook|__stories__|examples?|demos?|playground|fixtures?|__tests__|__mocks__|e2e|cypress)\//i;
|
|
54
59
|
|
|
55
60
|
/**
|
|
56
61
|
* @param root repo root
|
|
@@ -80,12 +80,13 @@ const LEGACY_DIR_RE = /^(?:old|legacy|deprecated|archive|archived)$|[-_](?:old|l
|
|
|
80
80
|
|
|
81
81
|
// Scaffolding: the code a project generator copies into someone else's new
|
|
82
82
|
// repo, not the product. A starters/ folder, or a templates folder kept by a
|
|
83
|
-
// generator (create-app, a cli
|
|
84
|
-
// create-app/templates, the dashboard starter's
|
|
85
|
-
// BuilderIO's starters (133 duplicate copies)
|
|
86
|
-
//
|
|
87
|
-
//
|
|
88
|
-
|
|
83
|
+
// generator (create-app, a cli, a command-line tool's commands), a script or
|
|
84
|
+
// a dev tool: backstage's create-app/templates, the dashboard starter's
|
|
85
|
+
// scripts/cleanup-templates, BuilderIO's starters (133 duplicate copies),
|
|
86
|
+
// novu's commands/init/templates. The name alone is not enough: backstage's
|
|
87
|
+
// scaffolder form templates, OpenCTI's case templates and nocobase's block
|
|
88
|
+
// templates are screens of the product (2026-09-30).
|
|
89
|
+
const SCAFFOLD_DIR_RE = /(^|\/)starters$|(^|\/)(?:create-[\w-]+|cli|commands|scripts|dev|generators?)\/(?:[^/]+\/)*[\w-]*templates?$/i;
|
|
89
90
|
|
|
90
91
|
export function walkRepo(root, maxDepth = 14, exclusions = null, readAnyway = new Set()) {
|
|
91
92
|
const files = { code: [], styles: [], other: [] };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Single version constant for the engine — imported by diagnose (report
|
|
2
2
|
// footer) and rules (generated-by line). This is the bump spot that used to
|
|
3
3
|
// live as a const inside diagnose/index.mjs.
|
|
4
|
-
export const VERSION = '9.3.
|
|
4
|
+
export const VERSION = '9.3.1';
|
|
5
5
|
// The shape of harvest.json and summary.json. Bumped only when a field is
|
|
6
6
|
// renamed, removed or changes meaning; a new field is not a new schema. A
|
|
7
7
|
// tool comparing two scans compares like with like by this number, not by VERSION.
|