@zthun/janitor-build-config 19.2.0 → 19.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.
- package/dist/typedoc.cjs +107 -80
- package/dist/typedoc.cjs.map +1 -1
- package/dist/typedoc.js +104 -81
- package/dist/typedoc.js.map +1 -1
- package/dist/vite/vite-config-builder.d.mts +1 -8
- package/dist/vite.cjs +449 -223
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.js +446 -227
- package/dist/vite.js.map +1 -1
- package/package.json +5 -5
package/dist/typedoc.cjs
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const lodashEs = require('lodash-es');
|
|
6
|
+
|
|
7
|
+
function _define_property(obj, key, value) {
|
|
8
|
+
if (key in obj) {
|
|
9
|
+
Object.defineProperty(obj, key, {
|
|
10
|
+
value: value,
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true
|
|
14
|
+
});
|
|
15
|
+
} else {
|
|
16
|
+
obj[key] = value;
|
|
17
|
+
}
|
|
18
|
+
return obj;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A builder for TypeDoc configurations.
|
|
22
|
+
*/ class ZTypedocConfigBuilder {
|
|
23
|
+
/**
|
|
13
24
|
* Sets the output directory for the documentation.
|
|
14
25
|
*
|
|
15
26
|
* @param path -
|
|
16
27
|
* The output directory path.
|
|
17
28
|
* @returns
|
|
18
29
|
* This object.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/**
|
|
30
|
+
*/ out(path) {
|
|
31
|
+
this.typedoc.out = path;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
25
35
|
* Adds a list of entry point glob to the existing entry points.
|
|
26
36
|
*
|
|
27
37
|
* @param glob -
|
|
@@ -29,13 +39,12 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
29
39
|
*
|
|
30
40
|
* @returns
|
|
31
41
|
* This object.
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/**
|
|
42
|
+
*/ entry(glob) {
|
|
43
|
+
const entry = this.typedoc.entryPoints || [];
|
|
44
|
+
this.typedoc.entryPoints = entry.concat(glob);
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
39
48
|
* Sets the entry point strategy.
|
|
40
49
|
*
|
|
41
50
|
* See {@link https://typedoc.org/api/enums/EntryPointStrategy.html | EntryPointStrategy}
|
|
@@ -46,32 +55,29 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
46
55
|
*
|
|
47
56
|
* @returns
|
|
48
57
|
* This object.
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/**
|
|
58
|
+
*/ entryPointStrategy(strategy) {
|
|
59
|
+
this.typedoc.entryPointStrategy = strategy;
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
55
63
|
* Sets the excludeNotDocumented flag.
|
|
56
64
|
*
|
|
57
65
|
* @returns
|
|
58
66
|
* This object.
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/**
|
|
67
|
+
*/ excludeNotDocumented() {
|
|
68
|
+
this.typedoc.excludeNotDocumented = true;
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
65
72
|
* Sets the categorizeByGroup flag.
|
|
66
73
|
*
|
|
67
74
|
* @returns
|
|
68
75
|
* This object.
|
|
69
|
-
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/**
|
|
76
|
+
*/ categorizeByGroup() {
|
|
77
|
+
this.typedoc.categorizeByGroup = true;
|
|
78
|
+
return this;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
75
81
|
* Sets the name of the project.
|
|
76
82
|
*
|
|
77
83
|
* @param name -
|
|
@@ -79,12 +85,11 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
79
85
|
*
|
|
80
86
|
* @returns
|
|
81
87
|
* This object.
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
+
*/ name(name) {
|
|
89
|
+
this.typedoc.name = name;
|
|
90
|
+
return this;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
88
93
|
* Sets the favicon for the project.
|
|
89
94
|
*
|
|
90
95
|
* @param path -
|
|
@@ -92,12 +97,11 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
92
97
|
*
|
|
93
98
|
* @returns
|
|
94
99
|
* This object.
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
/**
|
|
100
|
+
*/ favicon(path) {
|
|
101
|
+
this.typedoc.favicon = path;
|
|
102
|
+
return this;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
101
105
|
* Adds a single exclude glob to the existing excludes.
|
|
102
106
|
*
|
|
103
107
|
* @param glob -
|
|
@@ -105,13 +109,12 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
105
109
|
*
|
|
106
110
|
* @returns
|
|
107
111
|
* This object.
|
|
108
|
-
*/
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
/**
|
|
112
|
+
*/ exclude(glob) {
|
|
113
|
+
const excludes = this.typedoc.exclude || [];
|
|
114
|
+
this.typedoc.exclude = excludes.concat(glob);
|
|
115
|
+
return this;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
115
118
|
* Sets the typedoc configuration to be used for an individual project.
|
|
116
119
|
*
|
|
117
120
|
* An individual project typedoc does not output any documentation by itself,
|
|
@@ -119,11 +122,10 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
119
122
|
*
|
|
120
123
|
* @returns
|
|
121
124
|
* This object.
|
|
122
|
-
*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
/**
|
|
125
|
+
*/ project() {
|
|
126
|
+
return this.resolve().dist();
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
127
129
|
* Sets the typedoc configuration to be used a web project that outputs
|
|
128
130
|
* final documentation for a monorepo of packages.
|
|
129
131
|
*
|
|
@@ -133,22 +135,47 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
133
135
|
*
|
|
134
136
|
* @returns
|
|
135
137
|
* This object.
|
|
136
|
-
*/
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
/**
|
|
138
|
+
*/ web() {
|
|
139
|
+
return this.packages().excludeNotDocumented().categorizeByGroup().dist().exclude("./");
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
141
142
|
* Builds the final typedoc configuration object.
|
|
142
143
|
*
|
|
143
144
|
* @returns
|
|
144
145
|
* The final typedoc configuration object.
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
146
|
+
*/ build() {
|
|
147
|
+
return lodashEs.cloneDeep(this.typedoc);
|
|
148
|
+
}
|
|
149
|
+
constructor(){
|
|
150
|
+
_define_property(this, "typedoc", {});
|
|
151
|
+
/**
|
|
152
|
+
* Sets the output directory to "./dist".
|
|
153
|
+
*
|
|
154
|
+
* @returns
|
|
155
|
+
* This object.
|
|
156
|
+
*/ _define_property(this, "dist", this.out.bind(this, ZTypedocConfigBuilder.OutputDist));
|
|
157
|
+
/**
|
|
158
|
+
* Adds an entry point for './src/index.ts'.
|
|
159
|
+
*
|
|
160
|
+
* @returns
|
|
161
|
+
* This object.
|
|
162
|
+
*/ _define_property(this, "index", this.entry.bind(this, ZTypedocConfigBuilder.EntryPointIndex));
|
|
163
|
+
/**
|
|
164
|
+
* Sets the entry point strategy to "resolve".
|
|
165
|
+
*
|
|
166
|
+
* @returns
|
|
167
|
+
* This object.
|
|
168
|
+
*/ _define_property(this, "resolve", this.entryPointStrategy.bind(this, "resolve"));
|
|
169
|
+
/**
|
|
170
|
+
* Sets the entry point strategy to "packages".
|
|
171
|
+
*
|
|
172
|
+
* @returns
|
|
173
|
+
* This object.
|
|
174
|
+
*/ _define_property(this, "packages", this.entryPointStrategy.bind(this, "packages"));
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
_define_property(ZTypedocConfigBuilder, "OutputDist", "./dist");
|
|
178
|
+
_define_property(ZTypedocConfigBuilder, "EntryPointIndex", "./src/index.mts");
|
|
179
|
+
|
|
153
180
|
exports.ZTypedocConfigBuilder = ZTypedocConfigBuilder;
|
|
154
181
|
//# sourceMappingURL=typedoc.cjs.map
|
package/dist/typedoc.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedoc.cjs","sources":["../src/typedoc/typedoc-config-builder.mts"],"sourcesContent":["import { cloneDeep } from \"lodash-es\";\nimport type { EntryPointStrategy, TypeDocOptions } from \"typedoc\";\n\n/**\n * A builder for TypeDoc configurations.\n */\nexport class ZTypedocConfigBuilder {\n public static readonly OutputDist = \"./dist\";\n public static readonly EntryPointIndex = \"./src/index.mts\";\n\n private typedoc: TypeDocOptions = {};\n\n /**\n * Sets the output directory for the documentation.\n *\n * @param path -\n * The output directory path.\n * @returns\n * This object.\n */\n public out(path: string) {\n this.typedoc.out = path;\n return this;\n }\n\n /**\n * Sets the output directory to \"./dist\".\n *\n * @returns\n * This object.\n */\n public dist = this.out.bind(this, ZTypedocConfigBuilder.OutputDist);\n\n /**\n * Adds a list of entry point glob to the existing entry points.\n *\n * @param glob -\n * The entry point glob pattern.\n *\n * @returns\n * This object.\n */\n public entry(glob: string | string) {\n const entry = this.typedoc.entryPoints || [];\n this.typedoc.entryPoints = entry.concat(glob);\n return this;\n }\n\n /**\n * Adds an entry point for './src/index.ts'.\n *\n * @returns\n * This object.\n */\n public index = this.entry.bind(this, ZTypedocConfigBuilder.EntryPointIndex);\n\n /**\n * Sets the entry point strategy.\n *\n * See {@link https://typedoc.org/api/enums/EntryPointStrategy.html | EntryPointStrategy}\n * for more details.\n *\n * @param strategy -\n * The entry point strategy to use.\n *\n * @returns\n * This object.\n */\n public entryPointStrategy(strategy: EntryPointStrategy) {\n this.typedoc.entryPointStrategy = strategy;\n return this;\n }\n\n /**\n * Sets the entry point strategy to \"resolve\".\n *\n * @returns\n * This object.\n */\n public resolve = this.entryPointStrategy.bind(this, \"resolve\");\n\n /**\n * Sets the entry point strategy to \"packages\".\n *\n * @returns\n * This object.\n */\n public packages = this.entryPointStrategy.bind(this, \"packages\");\n\n /**\n * Sets the excludeNotDocumented flag.\n *\n * @returns\n * This object.\n */\n public excludeNotDocumented() {\n this.typedoc.excludeNotDocumented = true;\n return this;\n }\n\n /**\n * Sets the categorizeByGroup flag.\n *\n * @returns\n * This object.\n */\n public categorizeByGroup() {\n this.typedoc.categorizeByGroup = true;\n return this;\n }\n\n /**\n * Sets the name of the project.\n *\n * @param name -\n * The name of the project.\n *\n * @returns\n * This object.\n */\n public name(name: string) {\n this.typedoc.name = name;\n return this;\n }\n\n /**\n * Sets the favicon for the project.\n *\n * @param path -\n * The path to the favicon file.\n *\n * @returns\n * This object.\n */\n public favicon(path: string) {\n this.typedoc.favicon = path;\n return this;\n }\n\n /**\n * Adds a single exclude glob to the existing excludes.\n *\n * @param glob -\n * The exclude glob pattern.\n *\n * @returns\n * This object.\n */\n public exclude(glob: string | string[]) {\n const excludes = this.typedoc.exclude || [];\n this.typedoc.exclude = excludes.concat(glob);\n return this;\n }\n\n /**\n * Sets the typedoc configuration to be used for an individual project.\n *\n * An individual project typedoc does not output any documentation by itself,\n * but is part of a larger project that does.\n *\n * @returns\n * This object.\n */\n public project() {\n return this.resolve().dist();\n }\n\n /**\n * Sets the typedoc configuration to be used a web project that outputs\n * final documentation for a monorepo of packages.\n *\n * Normally, your monorepo will have a single web or doc project that outputs\n * the typescript for every package in the monorepo. Use this configuration\n * for that project.\n *\n * @returns\n * This object.\n */\n public web() {\n return this.packages()\n .excludeNotDocumented()\n .categorizeByGroup()\n .dist()\n .exclude(\"./\");\n }\n\n /**\n * Builds the final typedoc configuration object.\n *\n * @returns\n * The final typedoc configuration object.\n */\n public build() {\n return cloneDeep(this.typedoc);\n }\n}\n"],"names":["cloneDeep"],"mappings":"
|
|
1
|
+
{"version":3,"file":"typedoc.cjs","sources":["../src/typedoc/typedoc-config-builder.mts"],"sourcesContent":["import { cloneDeep } from \"lodash-es\";\nimport type { EntryPointStrategy, TypeDocOptions } from \"typedoc\";\n\n/**\n * A builder for TypeDoc configurations.\n */\nexport class ZTypedocConfigBuilder {\n public static readonly OutputDist = \"./dist\";\n public static readonly EntryPointIndex = \"./src/index.mts\";\n\n private typedoc: TypeDocOptions = {};\n\n /**\n * Sets the output directory for the documentation.\n *\n * @param path -\n * The output directory path.\n * @returns\n * This object.\n */\n public out(path: string) {\n this.typedoc.out = path;\n return this;\n }\n\n /**\n * Sets the output directory to \"./dist\".\n *\n * @returns\n * This object.\n */\n public dist = this.out.bind(this, ZTypedocConfigBuilder.OutputDist);\n\n /**\n * Adds a list of entry point glob to the existing entry points.\n *\n * @param glob -\n * The entry point glob pattern.\n *\n * @returns\n * This object.\n */\n public entry(glob: string | string) {\n const entry = this.typedoc.entryPoints || [];\n this.typedoc.entryPoints = entry.concat(glob);\n return this;\n }\n\n /**\n * Adds an entry point for './src/index.ts'.\n *\n * @returns\n * This object.\n */\n public index = this.entry.bind(this, ZTypedocConfigBuilder.EntryPointIndex);\n\n /**\n * Sets the entry point strategy.\n *\n * See {@link https://typedoc.org/api/enums/EntryPointStrategy.html | EntryPointStrategy}\n * for more details.\n *\n * @param strategy -\n * The entry point strategy to use.\n *\n * @returns\n * This object.\n */\n public entryPointStrategy(strategy: EntryPointStrategy) {\n this.typedoc.entryPointStrategy = strategy;\n return this;\n }\n\n /**\n * Sets the entry point strategy to \"resolve\".\n *\n * @returns\n * This object.\n */\n public resolve = this.entryPointStrategy.bind(this, \"resolve\");\n\n /**\n * Sets the entry point strategy to \"packages\".\n *\n * @returns\n * This object.\n */\n public packages = this.entryPointStrategy.bind(this, \"packages\");\n\n /**\n * Sets the excludeNotDocumented flag.\n *\n * @returns\n * This object.\n */\n public excludeNotDocumented() {\n this.typedoc.excludeNotDocumented = true;\n return this;\n }\n\n /**\n * Sets the categorizeByGroup flag.\n *\n * @returns\n * This object.\n */\n public categorizeByGroup() {\n this.typedoc.categorizeByGroup = true;\n return this;\n }\n\n /**\n * Sets the name of the project.\n *\n * @param name -\n * The name of the project.\n *\n * @returns\n * This object.\n */\n public name(name: string) {\n this.typedoc.name = name;\n return this;\n }\n\n /**\n * Sets the favicon for the project.\n *\n * @param path -\n * The path to the favicon file.\n *\n * @returns\n * This object.\n */\n public favicon(path: string) {\n this.typedoc.favicon = path;\n return this;\n }\n\n /**\n * Adds a single exclude glob to the existing excludes.\n *\n * @param glob -\n * The exclude glob pattern.\n *\n * @returns\n * This object.\n */\n public exclude(glob: string | string[]) {\n const excludes = this.typedoc.exclude || [];\n this.typedoc.exclude = excludes.concat(glob);\n return this;\n }\n\n /**\n * Sets the typedoc configuration to be used for an individual project.\n *\n * An individual project typedoc does not output any documentation by itself,\n * but is part of a larger project that does.\n *\n * @returns\n * This object.\n */\n public project() {\n return this.resolve().dist();\n }\n\n /**\n * Sets the typedoc configuration to be used a web project that outputs\n * final documentation for a monorepo of packages.\n *\n * Normally, your monorepo will have a single web or doc project that outputs\n * the typescript for every package in the monorepo. Use this configuration\n * for that project.\n *\n * @returns\n * This object.\n */\n public web() {\n return this.packages()\n .excludeNotDocumented()\n .categorizeByGroup()\n .dist()\n .exclude(\"./\");\n }\n\n /**\n * Builds the final typedoc configuration object.\n *\n * @returns\n * The final typedoc configuration object.\n */\n public build() {\n return cloneDeep(this.typedoc);\n }\n}\n"],"names":["ZTypedocConfigBuilder","out","path","typedoc","entry","glob","entryPoints","concat","entryPointStrategy","strategy","excludeNotDocumented","categorizeByGroup","name","favicon","exclude","excludes","resolve","dist","packages","cloneDeep","bind","OutputDist","index","EntryPointIndex"],"mappings":"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"}
|
package/dist/typedoc.js
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
import { cloneDeep } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { cloneDeep } from 'lodash-es';
|
|
2
|
+
|
|
3
|
+
function _define_property(obj, key, value) {
|
|
4
|
+
if (key in obj) {
|
|
5
|
+
Object.defineProperty(obj, key, {
|
|
6
|
+
value: value,
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true
|
|
10
|
+
});
|
|
11
|
+
} else {
|
|
12
|
+
obj[key] = value;
|
|
13
|
+
}
|
|
14
|
+
return obj;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A builder for TypeDoc configurations.
|
|
18
|
+
*/ class ZTypedocConfigBuilder {
|
|
19
|
+
/**
|
|
11
20
|
* Sets the output directory for the documentation.
|
|
12
21
|
*
|
|
13
22
|
* @param path -
|
|
14
23
|
* The output directory path.
|
|
15
24
|
* @returns
|
|
16
25
|
* This object.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/**
|
|
26
|
+
*/ out(path) {
|
|
27
|
+
this.typedoc.out = path;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
23
31
|
* Adds a list of entry point glob to the existing entry points.
|
|
24
32
|
*
|
|
25
33
|
* @param glob -
|
|
@@ -27,13 +35,12 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
27
35
|
*
|
|
28
36
|
* @returns
|
|
29
37
|
* This object.
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/**
|
|
38
|
+
*/ entry(glob) {
|
|
39
|
+
const entry = this.typedoc.entryPoints || [];
|
|
40
|
+
this.typedoc.entryPoints = entry.concat(glob);
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
37
44
|
* Sets the entry point strategy.
|
|
38
45
|
*
|
|
39
46
|
* See {@link https://typedoc.org/api/enums/EntryPointStrategy.html | EntryPointStrategy}
|
|
@@ -44,32 +51,29 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
44
51
|
*
|
|
45
52
|
* @returns
|
|
46
53
|
* This object.
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/**
|
|
54
|
+
*/ entryPointStrategy(strategy) {
|
|
55
|
+
this.typedoc.entryPointStrategy = strategy;
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
53
59
|
* Sets the excludeNotDocumented flag.
|
|
54
60
|
*
|
|
55
61
|
* @returns
|
|
56
62
|
* This object.
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
+
*/ excludeNotDocumented() {
|
|
64
|
+
this.typedoc.excludeNotDocumented = true;
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
63
68
|
* Sets the categorizeByGroup flag.
|
|
64
69
|
*
|
|
65
70
|
* @returns
|
|
66
71
|
* This object.
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/**
|
|
72
|
+
*/ categorizeByGroup() {
|
|
73
|
+
this.typedoc.categorizeByGroup = true;
|
|
74
|
+
return this;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
73
77
|
* Sets the name of the project.
|
|
74
78
|
*
|
|
75
79
|
* @param name -
|
|
@@ -77,12 +81,11 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
77
81
|
*
|
|
78
82
|
* @returns
|
|
79
83
|
* This object.
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
/**
|
|
84
|
+
*/ name(name) {
|
|
85
|
+
this.typedoc.name = name;
|
|
86
|
+
return this;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
86
89
|
* Sets the favicon for the project.
|
|
87
90
|
*
|
|
88
91
|
* @param path -
|
|
@@ -90,12 +93,11 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
90
93
|
*
|
|
91
94
|
* @returns
|
|
92
95
|
* This object.
|
|
93
|
-
*/
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
/**
|
|
96
|
+
*/ favicon(path) {
|
|
97
|
+
this.typedoc.favicon = path;
|
|
98
|
+
return this;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
99
101
|
* Adds a single exclude glob to the existing excludes.
|
|
100
102
|
*
|
|
101
103
|
* @param glob -
|
|
@@ -103,13 +105,12 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
103
105
|
*
|
|
104
106
|
* @returns
|
|
105
107
|
* This object.
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
/**
|
|
108
|
+
*/ exclude(glob) {
|
|
109
|
+
const excludes = this.typedoc.exclude || [];
|
|
110
|
+
this.typedoc.exclude = excludes.concat(glob);
|
|
111
|
+
return this;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
113
114
|
* Sets the typedoc configuration to be used for an individual project.
|
|
114
115
|
*
|
|
115
116
|
* An individual project typedoc does not output any documentation by itself,
|
|
@@ -117,11 +118,10 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
117
118
|
*
|
|
118
119
|
* @returns
|
|
119
120
|
* This object.
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/**
|
|
121
|
+
*/ project() {
|
|
122
|
+
return this.resolve().dist();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
125
|
* Sets the typedoc configuration to be used a web project that outputs
|
|
126
126
|
* final documentation for a monorepo of packages.
|
|
127
127
|
*
|
|
@@ -131,24 +131,47 @@ const _ZTypedocConfigBuilder = class _ZTypedocConfigBuilder {
|
|
|
131
131
|
*
|
|
132
132
|
* @returns
|
|
133
133
|
* This object.
|
|
134
|
-
*/
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
/**
|
|
134
|
+
*/ web() {
|
|
135
|
+
return this.packages().excludeNotDocumented().categorizeByGroup().dist().exclude("./");
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
139
138
|
* Builds the final typedoc configuration object.
|
|
140
139
|
*
|
|
141
140
|
* @returns
|
|
142
141
|
* The final typedoc configuration object.
|
|
143
|
-
*/
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
142
|
+
*/ build() {
|
|
143
|
+
return cloneDeep(this.typedoc);
|
|
144
|
+
}
|
|
145
|
+
constructor(){
|
|
146
|
+
_define_property(this, "typedoc", {});
|
|
147
|
+
/**
|
|
148
|
+
* Sets the output directory to "./dist".
|
|
149
|
+
*
|
|
150
|
+
* @returns
|
|
151
|
+
* This object.
|
|
152
|
+
*/ _define_property(this, "dist", this.out.bind(this, ZTypedocConfigBuilder.OutputDist));
|
|
153
|
+
/**
|
|
154
|
+
* Adds an entry point for './src/index.ts'.
|
|
155
|
+
*
|
|
156
|
+
* @returns
|
|
157
|
+
* This object.
|
|
158
|
+
*/ _define_property(this, "index", this.entry.bind(this, ZTypedocConfigBuilder.EntryPointIndex));
|
|
159
|
+
/**
|
|
160
|
+
* Sets the entry point strategy to "resolve".
|
|
161
|
+
*
|
|
162
|
+
* @returns
|
|
163
|
+
* This object.
|
|
164
|
+
*/ _define_property(this, "resolve", this.entryPointStrategy.bind(this, "resolve"));
|
|
165
|
+
/**
|
|
166
|
+
* Sets the entry point strategy to "packages".
|
|
167
|
+
*
|
|
168
|
+
* @returns
|
|
169
|
+
* This object.
|
|
170
|
+
*/ _define_property(this, "packages", this.entryPointStrategy.bind(this, "packages"));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
_define_property(ZTypedocConfigBuilder, "OutputDist", "./dist");
|
|
174
|
+
_define_property(ZTypedocConfigBuilder, "EntryPointIndex", "./src/index.mts");
|
|
175
|
+
|
|
176
|
+
export { ZTypedocConfigBuilder };
|
|
154
177
|
//# sourceMappingURL=typedoc.js.map
|
package/dist/typedoc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedoc.js","sources":["../src/typedoc/typedoc-config-builder.mts"],"sourcesContent":["import { cloneDeep } from \"lodash-es\";\nimport type { EntryPointStrategy, TypeDocOptions } from \"typedoc\";\n\n/**\n * A builder for TypeDoc configurations.\n */\nexport class ZTypedocConfigBuilder {\n public static readonly OutputDist = \"./dist\";\n public static readonly EntryPointIndex = \"./src/index.mts\";\n\n private typedoc: TypeDocOptions = {};\n\n /**\n * Sets the output directory for the documentation.\n *\n * @param path -\n * The output directory path.\n * @returns\n * This object.\n */\n public out(path: string) {\n this.typedoc.out = path;\n return this;\n }\n\n /**\n * Sets the output directory to \"./dist\".\n *\n * @returns\n * This object.\n */\n public dist = this.out.bind(this, ZTypedocConfigBuilder.OutputDist);\n\n /**\n * Adds a list of entry point glob to the existing entry points.\n *\n * @param glob -\n * The entry point glob pattern.\n *\n * @returns\n * This object.\n */\n public entry(glob: string | string) {\n const entry = this.typedoc.entryPoints || [];\n this.typedoc.entryPoints = entry.concat(glob);\n return this;\n }\n\n /**\n * Adds an entry point for './src/index.ts'.\n *\n * @returns\n * This object.\n */\n public index = this.entry.bind(this, ZTypedocConfigBuilder.EntryPointIndex);\n\n /**\n * Sets the entry point strategy.\n *\n * See {@link https://typedoc.org/api/enums/EntryPointStrategy.html | EntryPointStrategy}\n * for more details.\n *\n * @param strategy -\n * The entry point strategy to use.\n *\n * @returns\n * This object.\n */\n public entryPointStrategy(strategy: EntryPointStrategy) {\n this.typedoc.entryPointStrategy = strategy;\n return this;\n }\n\n /**\n * Sets the entry point strategy to \"resolve\".\n *\n * @returns\n * This object.\n */\n public resolve = this.entryPointStrategy.bind(this, \"resolve\");\n\n /**\n * Sets the entry point strategy to \"packages\".\n *\n * @returns\n * This object.\n */\n public packages = this.entryPointStrategy.bind(this, \"packages\");\n\n /**\n * Sets the excludeNotDocumented flag.\n *\n * @returns\n * This object.\n */\n public excludeNotDocumented() {\n this.typedoc.excludeNotDocumented = true;\n return this;\n }\n\n /**\n * Sets the categorizeByGroup flag.\n *\n * @returns\n * This object.\n */\n public categorizeByGroup() {\n this.typedoc.categorizeByGroup = true;\n return this;\n }\n\n /**\n * Sets the name of the project.\n *\n * @param name -\n * The name of the project.\n *\n * @returns\n * This object.\n */\n public name(name: string) {\n this.typedoc.name = name;\n return this;\n }\n\n /**\n * Sets the favicon for the project.\n *\n * @param path -\n * The path to the favicon file.\n *\n * @returns\n * This object.\n */\n public favicon(path: string) {\n this.typedoc.favicon = path;\n return this;\n }\n\n /**\n * Adds a single exclude glob to the existing excludes.\n *\n * @param glob -\n * The exclude glob pattern.\n *\n * @returns\n * This object.\n */\n public exclude(glob: string | string[]) {\n const excludes = this.typedoc.exclude || [];\n this.typedoc.exclude = excludes.concat(glob);\n return this;\n }\n\n /**\n * Sets the typedoc configuration to be used for an individual project.\n *\n * An individual project typedoc does not output any documentation by itself,\n * but is part of a larger project that does.\n *\n * @returns\n * This object.\n */\n public project() {\n return this.resolve().dist();\n }\n\n /**\n * Sets the typedoc configuration to be used a web project that outputs\n * final documentation for a monorepo of packages.\n *\n * Normally, your monorepo will have a single web or doc project that outputs\n * the typescript for every package in the monorepo. Use this configuration\n * for that project.\n *\n * @returns\n * This object.\n */\n public web() {\n return this.packages()\n .excludeNotDocumented()\n .categorizeByGroup()\n .dist()\n .exclude(\"./\");\n }\n\n /**\n * Builds the final typedoc configuration object.\n *\n * @returns\n * The final typedoc configuration object.\n */\n public build() {\n return cloneDeep(this.typedoc);\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typedoc.js","sources":["../src/typedoc/typedoc-config-builder.mts"],"sourcesContent":["import { cloneDeep } from \"lodash-es\";\nimport type { EntryPointStrategy, TypeDocOptions } from \"typedoc\";\n\n/**\n * A builder for TypeDoc configurations.\n */\nexport class ZTypedocConfigBuilder {\n public static readonly OutputDist = \"./dist\";\n public static readonly EntryPointIndex = \"./src/index.mts\";\n\n private typedoc: TypeDocOptions = {};\n\n /**\n * Sets the output directory for the documentation.\n *\n * @param path -\n * The output directory path.\n * @returns\n * This object.\n */\n public out(path: string) {\n this.typedoc.out = path;\n return this;\n }\n\n /**\n * Sets the output directory to \"./dist\".\n *\n * @returns\n * This object.\n */\n public dist = this.out.bind(this, ZTypedocConfigBuilder.OutputDist);\n\n /**\n * Adds a list of entry point glob to the existing entry points.\n *\n * @param glob -\n * The entry point glob pattern.\n *\n * @returns\n * This object.\n */\n public entry(glob: string | string) {\n const entry = this.typedoc.entryPoints || [];\n this.typedoc.entryPoints = entry.concat(glob);\n return this;\n }\n\n /**\n * Adds an entry point for './src/index.ts'.\n *\n * @returns\n * This object.\n */\n public index = this.entry.bind(this, ZTypedocConfigBuilder.EntryPointIndex);\n\n /**\n * Sets the entry point strategy.\n *\n * See {@link https://typedoc.org/api/enums/EntryPointStrategy.html | EntryPointStrategy}\n * for more details.\n *\n * @param strategy -\n * The entry point strategy to use.\n *\n * @returns\n * This object.\n */\n public entryPointStrategy(strategy: EntryPointStrategy) {\n this.typedoc.entryPointStrategy = strategy;\n return this;\n }\n\n /**\n * Sets the entry point strategy to \"resolve\".\n *\n * @returns\n * This object.\n */\n public resolve = this.entryPointStrategy.bind(this, \"resolve\");\n\n /**\n * Sets the entry point strategy to \"packages\".\n *\n * @returns\n * This object.\n */\n public packages = this.entryPointStrategy.bind(this, \"packages\");\n\n /**\n * Sets the excludeNotDocumented flag.\n *\n * @returns\n * This object.\n */\n public excludeNotDocumented() {\n this.typedoc.excludeNotDocumented = true;\n return this;\n }\n\n /**\n * Sets the categorizeByGroup flag.\n *\n * @returns\n * This object.\n */\n public categorizeByGroup() {\n this.typedoc.categorizeByGroup = true;\n return this;\n }\n\n /**\n * Sets the name of the project.\n *\n * @param name -\n * The name of the project.\n *\n * @returns\n * This object.\n */\n public name(name: string) {\n this.typedoc.name = name;\n return this;\n }\n\n /**\n * Sets the favicon for the project.\n *\n * @param path -\n * The path to the favicon file.\n *\n * @returns\n * This object.\n */\n public favicon(path: string) {\n this.typedoc.favicon = path;\n return this;\n }\n\n /**\n * Adds a single exclude glob to the existing excludes.\n *\n * @param glob -\n * The exclude glob pattern.\n *\n * @returns\n * This object.\n */\n public exclude(glob: string | string[]) {\n const excludes = this.typedoc.exclude || [];\n this.typedoc.exclude = excludes.concat(glob);\n return this;\n }\n\n /**\n * Sets the typedoc configuration to be used for an individual project.\n *\n * An individual project typedoc does not output any documentation by itself,\n * but is part of a larger project that does.\n *\n * @returns\n * This object.\n */\n public project() {\n return this.resolve().dist();\n }\n\n /**\n * Sets the typedoc configuration to be used a web project that outputs\n * final documentation for a monorepo of packages.\n *\n * Normally, your monorepo will have a single web or doc project that outputs\n * the typescript for every package in the monorepo. Use this configuration\n * for that project.\n *\n * @returns\n * This object.\n */\n public web() {\n return this.packages()\n .excludeNotDocumented()\n .categorizeByGroup()\n .dist()\n .exclude(\"./\");\n }\n\n /**\n * Builds the final typedoc configuration object.\n *\n * @returns\n * The final typedoc configuration object.\n */\n public build() {\n return cloneDeep(this.typedoc);\n }\n}\n"],"names":["ZTypedocConfigBuilder","out","path","typedoc","entry","glob","entryPoints","concat","entryPointStrategy","strategy","excludeNotDocumented","categorizeByGroup","name","favicon","exclude","excludes","resolve","dist","packages","cloneDeep","bind","OutputDist","index","EntryPointIndex"],"mappings":"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"}
|
|
@@ -66,13 +66,6 @@ export declare class ZViteConfigBuilder {
|
|
|
66
66
|
* This object.
|
|
67
67
|
*/
|
|
68
68
|
plugin(option?: PluginOption | PluginOption[]): this;
|
|
69
|
-
/**
|
|
70
|
-
* Adds the swc plugin.
|
|
71
|
-
*
|
|
72
|
-
* This is mostly for nest projects as nest requires
|
|
73
|
-
* swc to support decorators.
|
|
74
|
-
*/
|
|
75
|
-
swc(): this;
|
|
76
69
|
/**
|
|
77
70
|
* Sets whether to generate source maps.
|
|
78
71
|
*
|
|
@@ -133,7 +126,7 @@ export declare class ZViteConfigBuilder {
|
|
|
133
126
|
* entry points.
|
|
134
127
|
*
|
|
135
128
|
* 1. The file src/cli.ts is the main entry point of the application.
|
|
136
|
-
* 1. The file, src/index.ts, is the api for importing
|
|
129
|
+
* 1. The file, src/index.ts, is the api for importing and using it as an api.
|
|
137
130
|
*
|
|
138
131
|
* @returns
|
|
139
132
|
* This object.
|