Skip to content

Commit de3824a

Browse files
committed
feat(pages): more pages
1 parent 348f7d0 commit de3824a

242 files changed

Lines changed: 38641 additions & 17694 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

generate-md.mjs

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11
import { Application } from 'typedoc';
2+
import { rmSync } from 'node:fs';
23
import webpack from './webpack/package.json' with { type: 'json' };
34
import { major } from 'semver';
45

6+
const out = `pages/v${major(webpack.version)}.x`;
7+
58
const app = await Application.bootstrapWithPlugins({
6-
entryPoints: ['./webpack/types.d.ts'],
7-
out: `pages/v${major(webpack.version)}.x`,
9+
// Inputs
10+
// `lib` gives us the runtime export surface for the root `webpack` page,
11+
// `types.d.ts` gives us the primary declarations, and the declaration files
12+
// fill in option/config types that are not re-exported through `types.d.ts`.
13+
entryPoints: [
14+
'./webpack/lib',
15+
'./webpack/types.d.ts',
16+
'./webpack/declarations/**/*.d.ts',
17+
],
18+
19+
// Configuration
20+
tsconfig: './tsconfig.typedoc.json',
21+
22+
// Outputs
23+
out,
24+
modulesFileName: 'index',
25+
readme: 'none',
826

927
// Plugins
1028
plugin: [
@@ -20,14 +38,11 @@ const app = await Application.bootstrapWithPlugins({
2038
hideBreadcrumbs: true,
2139
hidePageHeader: true,
2240
disableSources: true,
23-
propertiesFormat: 'table',
24-
25-
entryFileName: 'index',
26-
tsconfig: 'tsconfig.json',
2741
});
2842

2943
const project = await app.convert();
3044

3145
if (project) {
46+
rmSync(out, { recursive: true, force: true });
3247
await app.generateOutputs(project);
3348
}

package-lock.json

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pages/v5.x/AggressiveSplitting.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# AggressiveSplitting
2+
3+
<!-- type=misc -->
4+
5+
## `AggressiveSplittingPluginOptions`
6+
7+
### Properties
8+
9+
#### `chunkOverhead`
10+
11+
* Type: {number} Optional.
12+
13+
Extra cost for each chunk (Default: 9.8kiB).
14+
15+
***
16+
17+
#### `entryChunkMultiplicator`
18+
19+
* Type: {number} Optional.
20+
21+
Extra cost multiplicator for entry chunks (Default: 10).
22+
23+
***
24+
25+
#### `maxSize`
26+
27+
* Type: {number} Optional.
28+
29+
Byte, max size of per file (Default: 50kiB).
30+
31+
***
32+
33+
#### `minSize`
34+
35+
* Type: {number} Optional.
36+
37+
Byte, split point. (Default: 30kiB).
38+
39+
## Class: `AggressiveSplittingPlugin`
40+
41+
### Constructors
42+
43+
#### `new AggressiveSplittingPlugin([options])`
44+
45+
##### Parameters
46+
47+
* `options` {AggressiveSplittingPluginOptions}
48+
49+
* Returns: {AggressiveSplittingPlugin}
50+
51+
### Properties
52+
53+
#### `options`
54+
55+
* Type: {AggressiveSplittingPluginOptions}
56+
57+
### Methods
58+
59+
#### `apply(compiler)`
60+
61+
##### Parameters
62+
63+
* `compiler` {Compiler}
64+
65+
* Returns: {void}
66+
67+
Apply the plugin
68+
69+
***
70+
71+
#### Static method: `wasChunkRecorded(chunk)`
72+
73+
##### Parameters
74+
75+
* `chunk` {Chunk}
76+
77+
* Returns: {boolean}

pages/v5.x/Argument.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Argument
2+
3+
<!-- type=misc -->
4+
5+
## `Argument`
6+
7+
### Properties
8+
9+
#### `configs`
10+
11+
* Type: {ArgumentConfig[]}
12+
13+
***
14+
15+
#### `description`
16+
17+
* Type: {string} Optional.
18+
19+
***
20+
21+
#### `multiple`
22+
23+
* Type: {boolean}
24+
25+
***
26+
27+
#### `simpleType`
28+
29+
* Type: {SimpleType}

pages/v5.x/Asset.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Asset
2+
3+
<!-- type=misc -->
4+
5+
## `Asset`
6+
7+
### Properties
8+
9+
#### `info`
10+
11+
* Type: {AssetInfo}
12+
13+
info about the asset
14+
15+
***
16+
17+
#### `name`
18+
19+
* Type: {string}
20+
21+
the filename of the asset
22+
23+
***
24+
25+
#### `source`
26+
27+
* Type: {Source}
28+
29+
source of the asset
30+
31+
## `AssetInfo`
32+
33+
* Type: {KnownAssetInfo & Record<string, any>}
34+
35+
## `AssetEmittedInfo`
36+
37+
### Properties
38+
39+
#### `compilation`
40+
41+
* Type: {Compilation}
42+
43+
#### `content`
44+
45+
* Type: {Buffer}
46+
47+
#### `outputPath`
48+
49+
* Type: {string}
50+
51+
#### `source`
52+
53+
* Type: {Source}
54+
55+
#### `targetPath`
56+
57+
* Type: {string}
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
# AsyncDependenciesBlock
2+
3+
<!-- type=misc -->
4+
5+
## Class: `AsyncDependenciesBlock`
6+
7+
* Extends: {DependenciesBlock}
8+
9+
### Constructors
10+
11+
#### `new AsyncDependenciesBlock(groupOptions[, loc][, request])`
12+
13+
##### Parameters
14+
15+
* `groupOptions` {string|GroupOptionsAsyncDependenciesBlock}
16+
* `loc` {SyntheticDependencyLocation|RealDependencyLocation}
17+
* `request` {string}
18+
19+
* Returns: {AsyncDependenciesBlock}
20+
21+
### Properties
22+
23+
#### `blocks`
24+
25+
* Type: {AsyncDependenciesBlock[]}
26+
27+
##### Inherited from
28+
29+
`DependenciesBlock.blocks`
30+
31+
***
32+
33+
#### `chunkName`
34+
35+
* Type: {string} Optional.
36+
37+
***
38+
39+
#### `circular`
40+
41+
* Type: {boolean}
42+
43+
***
44+
45+
#### `dependencies`
46+
47+
* Type: {Dependency[]}
48+
49+
##### Inherited from
50+
51+
`DependenciesBlock.dependencies`
52+
53+
***
54+
55+
#### `groupOptions`
56+
57+
* Type: {GroupOptionsAsyncDependenciesBlock}
58+
59+
***
60+
61+
#### `loc`
62+
63+
* Type: {SyntheticDependencyLocation|RealDependencyLocation} Optional.
64+
65+
***
66+
67+
#### `module`
68+
69+
* Type: {any}
70+
71+
***
72+
73+
#### `parent`
74+
75+
* Type: {DependenciesBlock} Optional.
76+
77+
##### Inherited from
78+
79+
`DependenciesBlock.parent`
80+
81+
***
82+
83+
#### `request`
84+
85+
* Type: {string} Optional.
86+
87+
### Methods
88+
89+
#### `addBlock(block)`
90+
91+
##### Parameters
92+
93+
* `block` {AsyncDependenciesBlock}
94+
95+
* Returns: {void}
96+
97+
Adds a DependencyBlock to DependencyBlock relationship.
98+
This is used for when a Module has a AsyncDependencyBlock tie (for code-splitting)
99+
100+
***
101+
102+
#### `addDependency(dependency)`
103+
104+
##### Parameters
105+
106+
* `dependency` {Dependency}
107+
108+
* Returns: {void}
109+
110+
***
111+
112+
#### `clearDependenciesAndBlocks()`
113+
114+
* Returns: {void}
115+
116+
Removes all dependencies and blocks
117+
118+
***
119+
120+
#### `deserialize(__namedParameters)`
121+
122+
##### Parameters
123+
124+
* `__namedParameters` {ObjectDeserializerContext}
125+
126+
* Returns: {void}
127+
128+
***
129+
130+
#### `getRootBlock()`
131+
132+
* Returns: {DependenciesBlock}
133+
134+
***
135+
136+
#### `removeDependency(dependency)`
137+
138+
##### Parameters
139+
140+
* `dependency` {Dependency}
141+
142+
* Returns: {void}
143+
144+
***
145+
146+
#### `serialize(__namedParameters)`
147+
148+
##### Parameters
149+
150+
* `__namedParameters` {ObjectSerializerContext}
151+
152+
* Returns: {void}
153+
154+
***
155+
156+
#### `updateHash(hash, context)`
157+
158+
##### Parameters
159+
160+
* `hash` {Hash}
161+
* `context` {UpdateHashContextDependency}
162+
163+
* Returns: {void}

0 commit comments

Comments
 (0)