@pepshlr/pepdoc 0.2.0 → 0.2.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.
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
* Shows a welcome message after npm install
|
|
5
5
|
*/
|
|
6
6
|
declare const PURPLE = "\u001B[35m";
|
|
7
|
-
declare const
|
|
7
|
+
declare const GREEN = "\u001B[32m";
|
|
8
|
+
declare const YELLOW = "\u001B[33m";
|
|
8
9
|
declare const DIM = "\u001B[2m";
|
|
9
10
|
declare const RESET = "\u001B[0m";
|
|
10
11
|
declare const BOLD = "\u001B[1m";
|
|
12
|
+
declare const line: string;
|
|
11
13
|
//# 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,
|
|
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"}
|
package/dist/bin/postinstall.js
CHANGED
|
@@ -5,19 +5,34 @@
|
|
|
5
5
|
* Shows a welcome message after npm install
|
|
6
6
|
*/
|
|
7
7
|
const PURPLE = '\x1b[35m';
|
|
8
|
-
const
|
|
8
|
+
const GREEN = '\x1b[32m';
|
|
9
|
+
const YELLOW = '\x1b[33m';
|
|
9
10
|
const DIM = '\x1b[2m';
|
|
10
11
|
const RESET = '\x1b[0m';
|
|
11
12
|
const BOLD = '\x1b[1m';
|
|
13
|
+
const line = '─'.repeat(58);
|
|
12
14
|
console.log('');
|
|
13
|
-
console.log(` ${PURPLE}${BOLD}PepsDoc${RESET} installed
|
|
15
|
+
console.log(` ${PURPLE}${BOLD}✦ PepsDoc${RESET} installed!`);
|
|
14
16
|
console.log('');
|
|
15
|
-
console.log(` ${
|
|
16
|
-
console.log(`
|
|
17
|
-
console.log(` 2. Add endpoints to pepsdoc/data/v1/`);
|
|
18
|
-
console.log(` 3. npx pepsdoc dev`);
|
|
17
|
+
console.log(` ${GREEN}${BOLD}Let AI document your entire API automatically.${RESET}`);
|
|
18
|
+
console.log(` ${DIM}Copy the prompt below and paste it into your AI assistant:${RESET}`);
|
|
19
19
|
console.log('');
|
|
20
|
-
console.log(`
|
|
21
|
-
console.log(` ${
|
|
20
|
+
console.log(` ┌${line}┐`);
|
|
21
|
+
console.log(` │ ${YELLOW}pepsdoc: integrate and document my entire API ${RESET} │`);
|
|
22
|
+
console.log(` │ │`);
|
|
23
|
+
console.log(` │ @pepshlr/pepdoc is already installed. Do the following: │`);
|
|
24
|
+
console.log(` │ │`);
|
|
25
|
+
console.log(` │ 1. Find my main server file and add the adapter: │`);
|
|
26
|
+
console.log(` │ Express → pepsdoc(app, { title: '...' }) │`);
|
|
27
|
+
console.log(` │ Fastify → fastifyAdapter(app, { title: '...' }) │`);
|
|
28
|
+
console.log(` │ Hono → honoAdapter(app, { title: '...' }) │`);
|
|
29
|
+
console.log(` │ │`);
|
|
30
|
+
console.log(` │ 2. Read all route files in the project and generate │`);
|
|
31
|
+
console.log(` │ JSON docs in pepsdoc/data/v1/ (one file per group). │`);
|
|
32
|
+
console.log(` │ Schema: node_modules/@pepshlr/pepdoc/templates/ │`);
|
|
33
|
+
console.log(` │ ai-skill.md │`);
|
|
34
|
+
console.log(` │ │`);
|
|
35
|
+
console.log(` │ 3. Start the server and tell me the docs URL. │`);
|
|
36
|
+
console.log(` └${line}┘`);
|
|
22
37
|
console.log('');
|
|
23
38
|
//# 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,
|
|
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,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAChB,OAAO,CAAC,GAAG,CAAC,KAAK,MAAM,GAAG,IAAI,YAAY,KAAK,aAAa,CAAC,CAAC;AAC9D,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAChB,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,GAAG,IAAI,iDAAiD,KAAK,EAAE,CAAC,CAAC;AACvF,OAAO,CAAC,GAAG,CAAC,KAAK,GAAG,6DAA6D,KAAK,EAAE,CAAC,CAAC;AAC1F,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAChB,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC;AAC3B,OAAO,CAAC,GAAG,CAAC,OAAO,MAAM,4DAA4D,KAAK,IAAI,CAAC,CAAC;AAChG,OAAO,CAAC,GAAG,CAAC,gEAAgE,CAAC,CAAC;AAC9E,OAAO,CAAC,GAA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