Skip to content

Commit d91e44d

Browse files
Merge branch 'cn' into sync-d054d465-1
2 parents a61a07e + cbefd7b commit d91e44d

File tree

10 files changed

+755
-776
lines changed

10 files changed

+755
-776
lines changed

package.json

Lines changed: 55 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,26 @@
2828
"clean-printable": "rimraf src/content/**/printable.mdx",
2929
"preclean": "run-s clean-dist clean-printable",
3030
"clean": "rimraf src/content/**/_*.mdx src/**/_*.json repositories/*.json",
31-
"start": "npm run clean-dist && webpack serve --config webpack.dev.mjs --env dev --progress --node-env development",
31+
"start": "npm run clean-dist && webpack serve --config webpack.dev.mjs --env dev --progress --define-process-env-node-env development",
3232
"content": "node src/scripts/build-content-tree.mjs ./src/content ./src/_content.json",
33-
"bundle-analyze": "run-s clean fetch content && webpack --config webpack.prod.mjs --node-env production && run-s printable content && webpack --config webpack.ssg.mjs --node-env production --env ssg --profile --json > stats.json && webpack-bundle-analyzer stats.json",
33+
"bundle-analyze": "run-s clean fetch content && webpack --config webpack.prod.mjs --define-process-env-node-env production && run-s printable content && webpack --config webpack.ssg.mjs --define-process-env-node-env production --env ssg --profile --json > stats.json && webpack-bundle-analyzer stats.json",
3434
"fetch-repos": "node src/utilities/fetch-package-repos.mjs",
3535
"fetch": "run-p fetch:*",
3636
"fetch:readmes": "node src/utilities/fetch-package-readmes.mjs",
37-
<<<<<<< HEAD
3837
"fetch:supporters": "node src/utilities/fetch-supporters.mjs",
39-
=======
40-
>>>>>>> d054d4656cbfb5228fc96f5de26d4f0ce349f742
4138
"prebuild": "npm run clean",
42-
"build": "run-s content && webpack --config webpack.prod.mjs --node-env production && run-s printable content && webpack --config webpack.ssg.mjs --node-env production --env ssg",
39+
"build": "run-s fetch-repos fetch content && webpack --config webpack.prod.mjs --define-process-env-node-env production && run-s printable content && webpack --config webpack.ssg.mjs --define-process-env-node-env production --env ssg",
4340
"postbuild": "npm run sitemap",
4441
"build-test": "npm run build && http-server --port 4200 dist/",
4542
"serve-dist": "http-server --port 4200 dist/",
4643
"test": "npm run lint",
4744
"lint": "run-s lint:*",
4845
"lint:js": "npm run lint-js .",
4946
"lint-js": "eslint --cache --cache-location .cache/.eslintcache",
50-
<<<<<<< HEAD
5147
"lint:markdown": "npm run lint-markdown '**/*.{md,mdx}'",
5248
"lint-markdown": "markdownlint --config ./.markdownlint.json",
53-
=======
54-
"lint:markdown": "npm run lint-markdown *.md",
55-
"lint-markdown": "markdownlint --config ./.markdownlint.json --ignore '.vale/**/*.md' --ignore '.github/**/*.md'",
56-
>>>>>>> d054d4656cbfb5228fc96f5de26d4f0ce349f742
5749
"lint:prose": "vale --config='.vale.ini' src/content",
5850
"lint:links": "hyperlink -c 8 --root dist -r dist/index.html --canonicalroot https://webpack.js.org/ --internal --skip /plugins/extract-text-webpack-plugin/ --skip /printable --skip https:// --skip http:// --skip sw.js > internal-links.tap; cat internal-links.tap | tap-spot",
59-
"lint:heading": "textlint --fix src/content/*",
60-
"lint:heading-blog": "textlint --fix src/content/blog/*",
61-
"lint:headingMDX": "textlint --fix src/content/**/*.mdx",
6251
"sitemap": "cd dist && sitemap-static --ignore-file=../sitemap-ignore.json --pretty --prefix=https://webpack.js.org/ > sitemap.xml",
6352
"serve": "npm run build && sirv start ./dist --port 4000",
6453
"preprintable": "npm run clean-printable",
@@ -81,193 +70,97 @@
8170
]
8271
},
8372
"devDependencies": {
84-
<<<<<<< HEAD
85-
"@babel/core": "^7.19.6",
86-
"@babel/eslint-parser": "^7.19.1",
73+
"@babel/core": "^7.22.19",
74+
"@babel/eslint-parser": "^7.22.15",
8775
"@babel/plugin-proposal-class-properties": "^7.17.12",
88-
"@babel/preset-env": "^7.19.4",
89-
"@babel/preset-react": "^7.18.6",
90-
"@mdx-js/loader": "^2.3.0",
91-
"@octokit/auth-action": "^2.0.2",
92-
"@octokit/rest": "^19.0.5",
76+
"@babel/preset-env": "^7.22.15",
77+
"@babel/preset-react": "^7.22.15",
78+
"@mdx-js/loader": "^2.0.0-next.9",
79+
"@octokit/auth-action": "^4.0.0",
80+
"@octokit/rest": "^20.0.1",
9381
"@pmmmwh/react-refresh-webpack-plugin": "next",
94-
"@svgr/webpack": "^6.5.1",
95-
"autoprefixer": "^10.4.13",
96-
"babel-loader": "^9.0.0",
82+
"@svgr/webpack": "^8.1.0",
83+
"autoprefixer": "^10.4.15",
84+
"babel-loader": "^9.1.3",
9785
"copy-webpack-plugin": "^11.0.0",
98-
"css-loader": "^6.7.1",
99-
"css-minimizer-webpack-plugin": "^4.2.2",
100-
"cypress": "^12.7.0",
101-
"directory-tree": "^3.3.1",
86+
"css-loader": "^6.8.1",
87+
"css-minimizer-webpack-plugin": "^5.0.1",
88+
"cypress": "^13.2.0",
89+
"directory-tree": "^3.5.1",
10290
"directory-tree-webpack-plugin": "^1.0.3",
10391
"duplexer": "^0.1.1",
104-
"eslint": "^8.26.0",
105-
"eslint-config-prettier": "^8.5.0",
106-
"eslint-plugin-cypress": "^2.12.1",
107-
"eslint-plugin-mdx": "^2.0.5",
108-
"eslint-plugin-react": "^7.31.10",
92+
"eslint": "^8.49.0",
93+
"eslint-config-prettier": "^9.0.0",
94+
"eslint-plugin-cypress": "^2.14.0",
95+
"eslint-plugin-mdx": "^2.2.0",
96+
"eslint-plugin-react": "^7.33.2",
10997
"eslint-plugin-react-hooks": "^4.6.0",
11098
"front-matter": "^4.0.2",
11199
"github-slugger": "^2.0.0",
112-
"html-loader": "^2.1.2",
113-
"html-webpack-plugin": "^5.5.0",
100+
"html-webpack-plugin": "^5.5.3",
114101
"http-server": "^14.1.1",
115-
"husky": "^8.0.1",
102+
"husky": "^8.0.3",
116103
"hyperlink": "^5.0.4",
117-
"jest": "^29.2.2",
118-
"lightningcss": "^1.19.0",
119-
"lint-staged": "^13.0.3",
104+
"jest": "^29.7.0",
105+
"lightningcss": "^1.21.8",
106+
"lint-staged": "^14.0.1",
120107
"lodash": "^4.17.21",
121-
"markdownlint": "^0.26.2",
122-
"markdownlint-cli": "^0.32.2",
123-
"mdast-util-to-string": "^3.1.0",
124-
"mini-css-extract-plugin": "^2.7.2",
125-
"mkdirp": "^1.0.4",
108+
"markdownlint-cli": "^0.36.0",
109+
"mdast-util-to-string": "^4.0.0",
110+
"mini-css-extract-plugin": "^2.7.6",
111+
"mkdirp": "^3.0.1",
126112
"modularscale-sass": "^3.0.3",
127-
"node-fetch": "^3.2.10",
128113
"npm-run-all": "^4.1.1",
129-
"postcss": "^8.4.18",
130-
"postcss-loader": "^7.0.1",
131-
"prettier": "^2.7.1",
114+
"postcss": "^8.4.29",
115+
"postcss-loader": "^7.3.3",
116+
"prettier": "^3.0.3",
132117
"react-refresh": "^0.14.0",
133-
=======
134-
"@babel/core": "^7.16.0",
135-
"@babel/eslint-parser": "^7.16.3",
136-
"@babel/plugin-proposal-class-properties": "^7.12.1",
137-
"@babel/preset-env": "^7.16.4",
138-
"@babel/preset-react": "^7.16.0",
139-
"@mdx-js/loader": "^2.0.0-next.9",
140-
"@octokit/auth-action": "^1.3.3",
141-
"@octokit/rest": "^18.12.0",
142-
"@pmmmwh/react-refresh-webpack-plugin": "next",
143-
"@svgr/webpack": "^6.1.1",
144-
"autoprefixer": "^10.4.0",
145-
"babel-loader": "^8.2.3",
146-
"copy-webpack-plugin": "^10.0.0",
147-
"css-loader": "^6.5.1",
148-
"css-minimizer-webpack-plugin": "^3.2.0",
149-
"cypress": "^9.1.1",
150-
"directory-tree": "^3.0.1",
151-
"directory-tree-webpack-plugin": "^1.0.3",
152-
"duplexer": "^0.1.1",
153-
"eslint": "^8.4.1",
154-
"eslint-config-prettier": "^8.3.0",
155-
"eslint-plugin-cypress": "^2.12.1",
156-
"eslint-plugin-mdx": "^1.16.0",
157-
"eslint-plugin-react": "^7.27.1",
158-
"eslint-plugin-react-hooks": "^4.3.0",
159-
"front-matter": "^4.0.2",
160-
"github-slugger": "^1.3.0",
161-
"html-loader": "^2.1.2",
162-
"html-webpack-plugin": "^5.5.0",
163-
"http-server": "^14.0.0",
164-
"husky": "^7.0.4",
165-
"hyperlink": "^5.0.3",
166-
"jest": "^27.4.3",
167-
"lint-staged": "^12.1.2",
168-
"lodash": "^4.17.21",
169-
"markdownlint": "^0.24.0",
170-
"markdownlint-cli": "^0.30.0",
171-
"mdast-util-to-string": "^1.1.0",
172-
"mini-css-extract-plugin": "^2.4.5",
173-
"mkdirp": "^1.0.4",
174-
"modularscale-sass": "^3.0.3",
175-
"node-fetch": "^3.1.0",
176-
"npm-run-all": "^4.1.1",
177-
"postcss": "^8.4.4",
178-
"postcss-loader": "^6.2.1",
179-
"prettier": "^2.5.1",
180-
"react-refresh": "^0.11.0",
181-
>>>>>>> d054d4656cbfb5228fc96f5de26d4f0ce349f742
182118
"redirect-webpack-plugin": "^1.0.0",
183-
"remark": "^14.0.2",
119+
"remark": "^14.0.3",
184120
"remark-autolink-headings": "7.0.1",
185-
"remark-emoji": "^3.0.2",
121+
"remark-emoji": "^4.0.0",
186122
"remark-extract-anchors": "1.1.1",
187123
"remark-frontmatter": "^4.0.1",
188124
"remark-gfm": "^1.0.0",
189-
<<<<<<< HEAD
190-
"remark-html": "^15.0.1",
125+
"remark-html": "^15.0.2",
191126
"remark-refractor": "montogeek/remark-refractor",
192-
"rimraf": "^3.0.2",
193-
"sass": "^1.55.0",
194-
"sass-loader": "^13.1.0",
127+
"rimraf": "^5.0.1",
128+
"sass": "^1.67.0",
129+
"sass-loader": "^13.3.2",
195130
"sirv-cli": "^2.0.2",
196131
"sitemap-static": "^0.4.2",
197132
"static-site-generator-webpack-plugin": "^3.4.1",
198-
"style-loader": "^3.3.1",
199-
"tailwindcss": "^3.2.1",
133+
"style-loader": "^3.3.3",
134+
"tailwindcss": "^3.3.3",
200135
"tap-spot": "^1.1.2",
201-
"textlint": "^13.3.1",
202-
"textlint-rule-heading": "^1.0.10",
203-
"unist-util-visit": "^4.1.1",
204-
"webpack": "^5.74.0",
205-
"webpack-bundle-analyzer": "^4.7.0",
206-
"webpack-cli": "^4.10.0",
207-
"webpack-dev-server": "^4.11.1",
208-
"webpack-merge": "^5.8.0",
209-
"workbox-webpack-plugin": "^6.5.4",
210-
"yarn-deduplicate": "^6.0.0"
136+
"unist-util-visit": "^5.0.0",
137+
"webpack": "^5.88.2",
138+
"webpack-bundle-analyzer": "^4.9.1",
139+
"webpack-cli": "^5.1.4",
140+
"webpack-dev-server": "^4.15.1",
141+
"webpack-merge": "^5.9.0",
142+
"workbox-webpack-plugin": "^7.0.0",
143+
"yarn-deduplicate": "^6.0.2"
211144
},
212145
"dependencies": {
213146
"@docsearch/react": "^3.0.0-alpha.50",
214-
=======
215-
"remark-html": "^15.0.0",
216-
"remark-refractor": "montogeek/remark-refractor",
217-
"remark-slug": "^7.0.1",
218-
"rimraf": "^3.0.2",
219-
"sass": "^1.44.0",
220-
"sass-loader": "^12.4.0",
221-
"sirv-cli": "^1.0.14",
222-
"sitemap-static": "^0.4.2",
223-
"start-server-and-test": "^1.14.0",
224-
"static-site-generator-webpack-plugin": "^3.4.1",
225-
"style-loader": "^3.3.1",
226-
"tailwindcss": "^3.0.0",
227-
"tap-spot": "^1.1.1",
228-
"textlint": "^11.8.2",
229-
"textlint-rule-heading": "^1.0.10",
230-
"unist-util-visit": "^4.1.0",
231-
"webpack": "^5.65.0",
232-
"webpack-bundle-analyzer": "^4.5.0",
233-
"webpack-cli": "^4.9.1",
234-
"webpack-dev-server": "^4.6.0",
235-
"webpack-merge": "^5.8.0",
236-
"workbox-webpack-plugin": "^6.4.2"
237-
},
238-
"dependencies": {
239-
"@docsearch/react": "^3.0.0-alpha.42",
240-
>>>>>>> d054d4656cbfb5228fc96f5de26d4f0ce349f742
147+
"@react-spring/web": "^9.7.3",
241148
"path-browserify": "^1.0.1",
242149
"prop-types": "^15.8.1",
243150
"react": "^17.0.2",
244151
"react-dom": "^17.0.2",
245-
<<<<<<< HEAD
246152
"react-helmet-async": "^1.3.0",
247-
"react-router-dom": "^6.4.2",
248-
"react-spring": "^9.5.5",
153+
"react-router-dom": "^6.16.0",
249154
"react-tiny-popover": "5",
250155
"react-use": "^17.4.0",
251156
"react-visibility-sensor": "^5.0.2",
252157
"webpack-pwa-manifest": "^4.3.0",
253-
"webpack.vote": "https://github.com/webpack/voting-app.git",
254-
"workbox-window": "^6.5.4"
255-
=======
256-
"react-g-analytics": "0.4.2",
257-
"react-helmet-async": "^1.2.2",
258-
"react-router-dom": "^5.3.0",
259-
"react-spring": "^9.3.2",
260-
"react-tiny-popover": "5",
261-
"react-use": "^17.3.1",
262-
"react-visibility-sensor": "^5.0.2",
263-
"webpack-pwa-manifest": "^4.3.0",
264-
"webpack.vote": "https://github.com/webpack/voting-app.git",
265-
"workbox-window": "^6.4.2"
266-
>>>>>>> d054d4656cbfb5228fc96f5de26d4f0ce349f742
158+
"workbox-window": "^7.0.0"
267159
},
268160
"resolutions": {
269161
"sitemap-static/minimist": "1.2.5",
270162
"ini": "1.3.7",
271-
"eval": "^0.1.5"
163+
"eval": "^0.1.5",
164+
"markdownlint-cli/markdownlint": "^0.27.0"
272165
}
273166
}

src/content/api/normalmodulefactory-hooks.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,23 @@ NormalModuleFactory.hooks.someHook.for('identifier').tap(/* ... */);
5050

5151
- 回调参数:`resolveData`
5252

53-
### resolveForScheme $#resolveForScheme$
53+
### resolveForScheme $#resolveforscheme$
5454

5555
`AsyncSeriesBailHook`
5656

5757
在解析符合统一资源标志符方案(URI)的请求之前调用。
5858

5959
- 回调参数:`resolveData`
6060

61-
### afterResolve $#afterResolve$
61+
### afterResolve $#afterresolve$
6262

6363
`AsyncSeriesBailHook`
6464

6565
在请求解析后调用。
6666

6767
- 回调参数:`resolveData`
6868

69-
### createModule $#createModule$
69+
### createModule $#createmodule$
7070

7171
`AsyncSeriesBailHook`
7272

@@ -82,7 +82,7 @@ NormalModuleFactory.hooks.someHook.for('identifier').tap(/* ... */);
8282

8383
- 回调参数:`module` `createData` `resolveData`
8484

85-
### createParser $#createParser$
85+
### createParser $#createparser$
8686

8787
`HookMap<SyncBailHook>`
8888

@@ -112,7 +112,7 @@ NormalModuleFactory.hooks.someHook.for('identifier').tap(/* ... */);
112112
6. `webassembly/async`
113113
7. `asset`
114114

115-
### createGenerator $#createGenerator$
115+
### createGenerator $#creategenerator$
116116

117117
`HookMap<SyncBailHook>`
118118

0 commit comments

Comments
 (0)