Skip to content

Commit 6ed067d

Browse files
committed
docs(en): merging all conflicts
2 parents 06aff71 + d054d46 commit 6ed067d

File tree

3 files changed

+116
-14
lines changed

3 files changed

+116
-14
lines changed

package.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
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
3738
"fetch:supporters": "node src/utilities/fetch-supporters.mjs",
39+
=======
40+
>>>>>>> d054d4656cbfb5228fc96f5de26d4f0ce349f742
3841
"prebuild": "npm run clean",
3942
"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",
4043
"postbuild": "npm run sitemap",
@@ -44,8 +47,13 @@
4447
"lint": "run-s lint:*",
4548
"lint:js": "npm run lint-js .",
4649
"lint-js": "eslint --cache --cache-location .cache/.eslintcache",
50+
<<<<<<< HEAD
4751
"lint:markdown": "npm run lint-markdown '**/*.{md,mdx}'",
4852
"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
4957
"lint:prose": "vale --config='.vale.ini' src/content",
5058
"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",
5159
"lint:heading": "textlint --fix src/content/*",
@@ -73,6 +81,7 @@
7381
]
7482
},
7583
"devDependencies": {
84+
<<<<<<< HEAD
7685
"@babel/core": "^7.19.6",
7786
"@babel/eslint-parser": "^7.19.1",
7887
"@babel/plugin-proposal-class-properties": "^7.17.12",
@@ -121,13 +130,63 @@
121130
"postcss-loader": "^7.0.1",
122131
"prettier": "^2.7.1",
123132
"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
124182
"redirect-webpack-plugin": "^1.0.0",
125183
"remark": "^14.0.2",
126184
"remark-autolink-headings": "7.0.1",
127185
"remark-emoji": "^3.0.2",
128186
"remark-extract-anchors": "1.1.1",
129187
"remark-frontmatter": "^4.0.1",
130188
"remark-gfm": "^1.0.0",
189+
<<<<<<< HEAD
131190
"remark-html": "^15.0.1",
132191
"remark-refractor": "montogeek/remark-refractor",
133192
"rimraf": "^3.0.2",
@@ -152,10 +211,38 @@
152211
},
153212
"dependencies": {
154213
"@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
155241
"path-browserify": "^1.0.1",
156242
"prop-types": "^15.8.1",
157243
"react": "^17.0.2",
158244
"react-dom": "^17.0.2",
245+
<<<<<<< HEAD
159246
"react-helmet-async": "^1.3.0",
160247
"react-router-dom": "^6.4.2",
161248
"react-spring": "^9.5.5",
@@ -165,6 +252,18 @@
165252
"webpack-pwa-manifest": "^4.3.0",
166253
"webpack.vote": "https://github.com/webpack/voting-app.git",
167254
"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
168267
},
169268
"resolutions": {
170269
"sitemap-static/minimist": "1.2.5",

src/content/plugins/image-minimizer-webpack-plugin.mdx

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ module.exports = {
283283
| **[`minify`](#minify)** | `{Function \| Array<Function>}` | `ImageMinimizerPlugin.imageminMinify` | Allows to override default minify function |
284284
| **[`minimizerOptions`](#minimizeroptions)** | `{Object\|Array<Object>}` | `{ plugins: [] }` | Options for `imagemin` |
285285
| **[`loader`](#loader)** | `{Boolean}` | `true` | Automatically adding `imagemin-loader` |
286-
| **[`maxConcurrency`](#maxconcurrency)** | `{Number}` | `Math.max(1, os.cpus().length - 1)` | Maximum number of concurrency optimization processes in one time |
286+
| **[`concurrency`](#concurrency)** | `{Number}` | `Math.max(1, os.cpus().length - 1)` | Maximum number of concurrency optimization processes in one time |
287287
| **[`filename`](#filename)** | `{string\|Function}` | `'[path][name][ext]'` | Allows to set the filename for the generated asset. Useful for converting to a `webp` |
288288
| **[`deleteOriginalAssets`](#deleteoriginalassets)** | `{Boolean}` | `false` | Allows to delete the original asset. Useful for converting to a `webp` and remove original assets |
289289

@@ -610,7 +610,7 @@ module.exports = {
610610
};
611611
```
612612

613-
#### `maxConcurrency`
613+
#### `concurrency`
614614

615615
Type: `Number`
616616
Default: `Math.max(1, os.cpus().length - 1)`
@@ -625,7 +625,7 @@ const ImageMinimizerPlugin = require("image-minimizer-webpack-plugin");
625625
module.exports = {
626626
plugins: [
627627
new ImageMinimizerPlugin({
628-
maxConcurrency: 3,
628+
concurrency: 3,
629629
}),
630630
],
631631
};
@@ -1230,17 +1230,6 @@ The function normalizes configuration (converts plugins names and options to `Fu
12301230
```js
12311231
const imagemin = require("imagemin");
12321232
const { imageminNormalizeConfig } = require("image-minimizer-webpack-plugin");
1233-
const imageminConfig = imageminNormalizeConfig({
1234-
plugins: [
1235-
"jpegtran",
1236-
[
1237-
"pngquant",
1238-
{
1239-
quality: [0.6, 0.8],
1240-
},
1241-
],
1242-
],
1243-
});
12441233

12451234
/*
12461235
console.log(imageminConfig);
@@ -1255,6 +1244,9 @@ const imageminConfig = imageminNormalizeConfig({
12551244
*/
12561245

12571246
(async () => {
1247+
const imageminConfig = await imageminNormalizeConfig({
1248+
plugins: ["jpegtran", ["pngquant", { quality: [0.6, 0.8] }]],
1249+
});
12581250
const files = await imagemin(["images/*.{jpg,png}"], {
12591251
destination: "build/images",
12601252
plugins: imageminConfig.plugins,

src/utilities/fetch-package-readmes.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ async function main() {
4848
const url = `https://raw.githubusercontent.com/${repo}/master/README.md`;
4949
const htmlUrl = `https://github.com/${repo}`;
5050
const editUrl = `${htmlUrl}/edit/master/README.md`;
51+
<<<<<<< HEAD
5152
const fileName = path.resolve(outputDir, `_${packageName}.mdx`);
53+
=======
54+
const fileName = path.resolve(outputDir, `${packageName}.mdx`);
55+
const mdxFileName = path.resolve(outputDir, `${packageName}.mdx`);
56+
>>>>>>> d054d4656cbfb5228fc96f5de26d4f0ce349f742
5257

5358
let title = packageName;
5459

@@ -68,15 +73,21 @@ async function main() {
6873
source: url,
6974
edit: editUrl,
7075
repo: htmlUrl,
76+
<<<<<<< HEAD
7177
thirdParty: true
78+
=======
79+
>>>>>>> d054d4656cbfb5228fc96f5de26d4f0ce349f742
7280
});
7381
} else {
7482
let basic = {
7583
title: title,
7684
source: url,
7785
edit: editUrl,
7886
repo: htmlUrl,
87+
<<<<<<< HEAD
7988
thirdParty: true
89+
=======
90+
>>>>>>> d054d4656cbfb5228fc96f5de26d4f0ce349f742
8091
};
8192

8293
if (loaderGroup[packageName]) {

0 commit comments

Comments
 (0)