rahman-resources 0.13.0 → 1.0.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.
- package/bin/cli.js +39 -35
- package/lib/manifest.json +550 -34
- package/package.json +5 -3
- package/bin/scan-consumers.mjs +0 -301
- package/lib/consumer-manifest.d.ts +0 -100
- package/lib/consumer-manifest.mjs +0 -216
- package/lib/consumer-manifest.test.mjs +0 -253
package/bin/cli.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
//
|
|
2
|
+
// Rahman Resources (rr) — shadcn-style installer for vertical slices.
|
|
3
|
+
// Aliases: `rahman-resources`, `resources`, `rr` (all run this file).
|
|
3
4
|
// Usage:
|
|
4
|
-
// npx
|
|
5
|
-
// npx
|
|
6
|
-
// npx
|
|
7
|
-
// npx
|
|
8
|
-
// npx
|
|
9
|
-
// npx
|
|
10
|
-
// npx
|
|
11
|
-
// npx
|
|
5
|
+
// npx rr init <app-name> [--template <slug>] [--features a,b] [--skills x,y] [--with-shadcn-all]
|
|
6
|
+
// npx rr add <slug> [target-dir] [--at root|preview] [--with-shadcn-all]
|
|
7
|
+
// npx rr add-skill <slug> [target-dir]
|
|
8
|
+
// npx rr scaffold-slice <slug> [--category <cat>] [--target <dir>]
|
|
9
|
+
// npx rr list [layouts|recipes|features|skills|slices]
|
|
10
|
+
// npx rr info <slug>
|
|
11
|
+
// npx rr doctor
|
|
12
|
+
// npx rr mcp # not implemented in CLI; install rahman-resources-mcp
|
|
12
13
|
|
|
13
14
|
import { createRequire } from "node:module";
|
|
14
15
|
import { spawn } from "node:child_process";
|
|
@@ -33,7 +34,6 @@ import { runGraph } from "./graph.mjs";
|
|
|
33
34
|
import { runCompose, preflight as composePreflight } from "./compose.mjs";
|
|
34
35
|
import { runUpdate as runUpdate3Way } from "./update.mjs";
|
|
35
36
|
import { runMigrate } from "./migrate.mjs";
|
|
36
|
-
import { runScan } from "./scan-consumers.mjs";
|
|
37
37
|
|
|
38
38
|
const require = createRequire(import.meta.url);
|
|
39
39
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
@@ -87,9 +87,6 @@ async function main() {
|
|
|
87
87
|
return runCompose(rest);
|
|
88
88
|
case "migrate":
|
|
89
89
|
return runMigrate(rest);
|
|
90
|
-
case "scan-consumers":
|
|
91
|
-
case "scan":
|
|
92
|
-
return runScan(rest);
|
|
93
90
|
case "mcp":
|
|
94
91
|
return runMcpHint();
|
|
95
92
|
case undefined:
|
|
@@ -117,22 +114,25 @@ function printHelp() {
|
|
|
117
114
|
console.log(`
|
|
118
115
|
${kleur.bold("rahman-resources")} — scaffold + install templates, recipes, features, Claude skills
|
|
119
116
|
|
|
117
|
+
${kleur.bold("Rahman Resources (rr)")} — shadcn-style installer for vertical slices.
|
|
118
|
+
${kleur.dim("Bins: rahman-resources / resources / rr (all run this CLI).")}
|
|
119
|
+
|
|
120
120
|
${kleur.bold("Usage:")}
|
|
121
|
-
npx
|
|
122
|
-
|
|
123
|
-
npx
|
|
124
|
-
npx
|
|
125
|
-
npx
|
|
126
|
-
npx
|
|
127
|
-
npx
|
|
128
|
-
npx
|
|
129
|
-
npx
|
|
130
|
-
npx
|
|
131
|
-
npx
|
|
132
|
-
npx
|
|
133
|
-
npx
|
|
134
|
-
npx
|
|
135
|
-
npx
|
|
121
|
+
npx rr init <app-name> [--template <slug>] [--features a,b] [--skills x,y]
|
|
122
|
+
[--no-install] [--with-shadcn-reinit] [--with-shadcn-all]
|
|
123
|
+
npx rr add <slug> [target-dir] [--at root|preview] [--with-shadcn-all]
|
|
124
|
+
npx rr add-skill <slug> [target-dir]
|
|
125
|
+
npx rr scaffold-slice <slug> [--category <cat>] [--target <dir>]
|
|
126
|
+
npx rr lift <source>:<path> [--target <dir>] [--dry-run]
|
|
127
|
+
npx rr publish-slice <local-slice-dir> [--open-pr]
|
|
128
|
+
npx rr list [layouts|recipes|features|skills|slices]
|
|
129
|
+
npx rr info <slug>
|
|
130
|
+
npx rr doctor
|
|
131
|
+
npx rr graph [slug] [--all] [--json]
|
|
132
|
+
npx rr compose <slug>... [--json] [--rr-path <path>] [--no-deps] [--strict]
|
|
133
|
+
npx rr update <slug> [--apply] [--force] [--rr-path P] [--json]
|
|
134
|
+
npx rr migrate <slug> --from <v1> [--to <v2>] [--json] [--write-files] [--force-overwrite]
|
|
135
|
+
npx rr mcp
|
|
136
136
|
|
|
137
137
|
${kleur.bold("Init flags:")}
|
|
138
138
|
--no-install skip 'npm install' step (faster scaffolds; you run it manually)
|
|
@@ -149,13 +149,17 @@ ${kleur.bold("Add flags:")}
|
|
|
149
149
|
--force skip compose pre-flight entirely
|
|
150
150
|
|
|
151
151
|
${kleur.bold("Examples:")}
|
|
152
|
-
npx
|
|
153
|
-
npx
|
|
154
|
-
npx
|
|
155
|
-
npx
|
|
156
|
-
npx
|
|
157
|
-
npx
|
|
158
|
-
npx
|
|
152
|
+
npx rr init my-app
|
|
153
|
+
npx rr init my-app --template personal-brand-os --skills frontend-design,mcp-builder
|
|
154
|
+
npx rr init my-app --no-install
|
|
155
|
+
npx rr add personal-brand-os . --at root
|
|
156
|
+
npx rr add personal-brand-os . --with-shadcn-all
|
|
157
|
+
npx rr add-skill webapp-testing
|
|
158
|
+
npx rr list skills
|
|
159
|
+
|
|
160
|
+
${kleur.dim("Slice install destination (consumer): slices/<slug>/")}
|
|
161
|
+
${kleur.dim("Shared utils destination (cascade): shared/<name>/")}
|
|
162
|
+
${kleur.dim("Consumer's components/ui/ + lib/utils.ts (shadcn) are never touched.")}
|
|
159
163
|
`);
|
|
160
164
|
}
|
|
161
165
|
|