@pepshlr/pepdoc 0.2.1 → 0.2.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* PepsDoc - Post-install onboarding message
|
|
4
|
-
*
|
|
4
|
+
* Uses stderr so npm always shows it (stdout is suppressed for dependency scripts)
|
|
5
5
|
*/
|
|
6
6
|
declare const PURPLE = "\u001B[35m";
|
|
7
7
|
declare const GREEN = "\u001B[32m";
|
|
@@ -10,4 +10,5 @@ declare const DIM = "\u001B[2m";
|
|
|
10
10
|
declare const RESET = "\u001B[0m";
|
|
11
11
|
declare const BOLD = "\u001B[1m";
|
|
12
12
|
declare const line: string;
|
|
13
|
+
declare const lines: string[];
|
|
13
14
|
//# sourceMappingURL=postinstall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postinstall.d.ts","sourceRoot":"","sources":["../../src/bin/postinstall.ts"],"names":[],"mappings":";AAEA;;;GAGG;AAEH,QAAA,MAAM,MAAM,eAAa,CAAC;AAC1B,QAAA,MAAM,KAAK,eAAa,CAAC;AACzB,QAAA,MAAM,MAAM,eAAa,CAAC;AAC1B,QAAA,MAAM,GAAG,cAAY,CAAC;AACtB,QAAA,MAAM,KAAK,cAAY,CAAC;AACxB,QAAA,MAAM,IAAI,cAAY,CAAC;AAEvB,QAAA,MAAM,IAAI,QAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"postinstall.d.ts","sourceRoot":"","sources":["../../src/bin/postinstall.ts"],"names":[],"mappings":";AAEA;;;GAGG;AAEH,QAAA,MAAM,MAAM,eAAa,CAAC;AAC1B,QAAA,MAAM,KAAK,eAAa,CAAC;AACzB,QAAA,MAAM,MAAM,eAAa,CAAC;AAC1B,QAAA,MAAM,GAAG,cAAY,CAAC;AACtB,QAAA,MAAM,KAAK,cAAY,CAAC;AACxB,QAAA,MAAM,IAAI,cAAY,CAAC;AAEvB,QAAA,MAAM,IAAI,QAAiB,CAAC;AAE5B,QAAA,MAAM,KAAK,UAyBV,CAAC"}
|
package/dist/bin/postinstall.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
/**
|
|
4
4
|
* PepsDoc - Post-install onboarding message
|
|
5
|
-
*
|
|
5
|
+
* Uses stderr so npm always shows it (stdout is suppressed for dependency scripts)
|
|
6
6
|
*/
|
|
7
7
|
const PURPLE = '\x1b[35m';
|
|
8
8
|
const GREEN = '\x1b[32m';
|
|
@@ -11,28 +11,31 @@ const DIM = '\x1b[2m';
|
|
|
11
11
|
const RESET = '\x1b[0m';
|
|
12
12
|
const BOLD = '\x1b[1m';
|
|
13
13
|
const line = '─'.repeat(58);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
14
|
+
const lines = [
|
|
15
|
+
'',
|
|
16
|
+
` ${PURPLE}${BOLD}✦ PepsDoc${RESET} installed!`,
|
|
17
|
+
'',
|
|
18
|
+
` ${GREEN}${BOLD}Let AI document your entire API automatically.${RESET}`,
|
|
19
|
+
` ${DIM}Copy the prompt below and paste it into your AI assistant:${RESET}`,
|
|
20
|
+
'',
|
|
21
|
+
` ┌${line}┐`,
|
|
22
|
+
` │ ${YELLOW}pepsdoc: integrate and document my entire API ${RESET} │`,
|
|
23
|
+
` │ │`,
|
|
24
|
+
` │ @pepshlr/pepdoc is already installed. Do the following: │`,
|
|
25
|
+
` │ │`,
|
|
26
|
+
` │ 1. Find my main server file and add the adapter: │`,
|
|
27
|
+
` │ Express → pepsdoc(app, { title: '...' }) │`,
|
|
28
|
+
` │ Fastify → fastifyAdapter(app, { title: '...' }) │`,
|
|
29
|
+
` │ Hono → honoAdapter(app, { title: '...' }) │`,
|
|
30
|
+
` │ │`,
|
|
31
|
+
` │ 2. Read all route files in the project and generate │`,
|
|
32
|
+
` │ JSON docs in pepsdoc/data/v1/ (one file per group). │`,
|
|
33
|
+
` │ Schema: node_modules/@pepshlr/pepdoc/templates/ │`,
|
|
34
|
+
` │ ai-skill.md │`,
|
|
35
|
+
` │ │`,
|
|
36
|
+
` │ 3. Start the server and tell me the docs URL. │`,
|
|
37
|
+
` └${line}┘`,
|
|
38
|
+
'',
|
|
39
|
+
];
|
|
40
|
+
process.stderr.write(lines.join('\n') + '\n');
|
|
38
41
|
//# sourceMappingURL=postinstall.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postinstall.js","sourceRoot":"","sources":["../../src/bin/postinstall.ts"],"names":[],"mappings":";;AAEA;;;GAGG;AAEH,MAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,MAAM,KAAK,GAAG,UAAU,CAAC;AACzB,MAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,MAAM,GAAG,GAAG,SAAS,CAAC;AACtB,MAAM,KAAK,GAAG,SAAS,CAAC;AACxB,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAE5B,
|
|
1
|
+
{"version":3,"file":"postinstall.js","sourceRoot":"","sources":["../../src/bin/postinstall.ts"],"names":[],"mappings":";;AAEA;;;GAGG;AAEH,MAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,MAAM,KAAK,GAAG,UAAU,CAAC;AACzB,MAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,MAAM,GAAG,GAAG,SAAS,CAAC;AACtB,MAAM,KAAK,GAAG,SAAS,CAAC;AACxB,MAAM,IAAI,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