|
25 | 25 | }, |
26 | 26 | "scripts": { |
27 | 27 | "clean-dist": "rimraf ./dist", |
28 | | - "clean-printable": "rimraf src/content/**/printable.md", |
| 28 | + "clean-printable": "rimraf src/content/**/printable.mdx", |
29 | 29 | "preclean": "run-s clean-dist clean-printable", |
30 | | - "clean": "rimraf src/content/**/_*.md src/**/_*.json repositories/*.json", |
31 | | - "start": "npm run clean-dist && webpack serve --config webpack.dev.js --env dev --progress --node-env development", |
32 | | - "content": "node src/scripts/build-content-tree.js ./src/content ./src/_content.json", |
33 | | - "bundle-analyze": "run-s clean fetch content && webpack --config webpack.prod.js --node-env production && run-s printable content && webpack --config webpack.ssg.js --node-env production --env ssg --profile --json > stats.json && webpack-bundle-analyzer stats.json", |
34 | | - "fetch-repos": "node src/utilities/fetch-package-repos.js", |
| 30 | + "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", |
| 32 | + "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", |
| 34 | + "fetch-repos": "node src/utilities/fetch-package-repos.mjs", |
35 | 35 | "fetch": "run-p fetch:*", |
36 | | - "fetch:readmes": "node src/utilities/fetch-package-readmes.js", |
| 36 | + "fetch:readmes": "node src/utilities/fetch-package-readmes.mjs", |
37 | 37 | "prebuild": "npm run clean", |
38 | | - "build": "run-s content && webpack --config webpack.prod.js --node-env production && run-s printable content && webpack --config webpack.ssg.js --node-env production", |
| 38 | + "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 | 39 | "postbuild": "npm run sitemap", |
40 | 40 | "build-test": "npm run build && http-server --port 4200 dist/", |
41 | 41 | "test": "npm run lint", |
42 | 42 | "lint": "run-s lint:*", |
43 | 43 | "lint:js": "npm run lint-js .", |
44 | 44 | "lint-js": "eslint --cache --cache-location .cache/.eslintcache", |
45 | | - "lint:markdown": "npm run lint-markdown *.md ./src/content/**/*.md", |
46 | | - "lint-markdown": "markdownlint --config ./.markdownlint.json --ignore './src/content/**/_*.md' --ignore '.vale/**/*.md' --ignore '.github/**/*.md'", |
| 45 | + "lint:markdown": "npm run lint-markdown *.md", |
| 46 | + "lint-markdown": "markdownlint --config ./.markdownlint.json --ignore '.vale/**/*.md' --ignore '.github/**/*.md'", |
47 | 47 | "lint:prose": "vale --config='.vale.ini' src/content", |
48 | 48 | "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", |
49 | 49 | "lint:heading": "textlint --fix src/content/*", |
|
52 | 52 | "sitemap": "cd dist && sitemap-static --ignore-file=../sitemap-ignore.json --pretty --prefix=https://webpack.js.org/ > sitemap.xml", |
53 | 53 | "serve": "npm run build && sirv start ./dist --port 4000", |
54 | 54 | "preprintable": "npm run clean-printable", |
55 | | - "printable": "node ./src/scripts/concatenate-docs.js", |
56 | | - "jest": "jest", |
| 55 | + "printable": "node ./src/scripts/concatenate-docs.mjs", |
| 56 | + "jest": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.mjs", |
57 | 57 | "cypress:open": "cypress open", |
58 | 58 | "cypress:run": "cypress run", |
59 | 59 | "cypress:ci": "start-server-and-test build-test http://localhost:4200 cypress:run", |
60 | 60 | "prettier": "prettier --write '**/*.{js,json,jsx,css,scss,md,mdx}'", |
61 | 61 | "prepare": "husky install" |
62 | 62 | }, |
63 | 63 | "lint-staged": { |
64 | | - "*.{js,jsx,md}": [ |
| 64 | + "*.{js,jsx,md,mdx}": [ |
65 | 65 | "npm run lint-js" |
66 | 66 | ], |
67 | 67 | "*.md": [ |
|
72 | 72 | ] |
73 | 73 | }, |
74 | 74 | "devDependencies": { |
75 | | - "@babel/core": "^7.14.6", |
76 | | - "@babel/eslint-parser": "^7.14.5", |
| 75 | + "@babel/core": "^7.16.0", |
| 76 | + "@babel/eslint-parser": "^7.16.3", |
77 | 77 | "@babel/plugin-proposal-class-properties": "^7.12.1", |
78 | | - "@babel/preset-env": "^7.14.5", |
79 | | - "@babel/preset-react": "^7.14.5", |
80 | | - "@mdx-js/loader": "^1.6.21", |
| 78 | + "@babel/preset-env": "^7.16.4", |
| 79 | + "@babel/preset-react": "^7.16.0", |
| 80 | + "@mdx-js/loader": "^2.0.0-next.9", |
81 | 81 | "@octokit/auth-action": "^1.3.3", |
82 | | - "@octokit/rest": "^18.6.0", |
| 82 | + "@octokit/rest": "^18.12.0", |
83 | 83 | "@pmmmwh/react-refresh-webpack-plugin": "next", |
84 | | - "@svgr/webpack": "^5.5.0", |
85 | | - "autoprefixer": "^10.2.6", |
86 | | - "babel-loader": "^8.2.2", |
87 | | - "copy-webpack-plugin": "^9.0.0", |
88 | | - "css-loader": "^5.2.6", |
89 | | - "css-minimizer-webpack-plugin": "^3.0.1", |
90 | | - "cypress": "^7.5.0", |
91 | | - "directory-tree": "^2.2.9", |
92 | | - "directory-tree-webpack-plugin": "^1.0.2", |
93 | | - "docschina-remark-slugger": "^0.1.4", |
| 84 | + "@svgr/webpack": "^6.1.1", |
| 85 | + "autoprefixer": "^10.4.0", |
| 86 | + "babel-loader": "^8.2.3", |
| 87 | + "copy-webpack-plugin": "^10.0.0", |
| 88 | + "css-loader": "^6.5.1", |
| 89 | + "css-minimizer-webpack-plugin": "^3.2.0", |
| 90 | + "cypress": "^9.1.1", |
| 91 | + "directory-tree": "^3.0.1", |
| 92 | + "directory-tree-webpack-plugin": "^1.0.3", |
94 | 93 | "duplexer": "^0.1.1", |
95 | | - "eslint": "^7.28.0", |
| 94 | + "eslint": "^8.4.1", |
96 | 95 | "eslint-config-prettier": "^8.3.0", |
97 | | - "eslint-plugin-cypress": "^2.11.3", |
98 | | - "eslint-plugin-markdown": "^2.2.0", |
99 | | - "eslint-plugin-mdx": "^1.13.0", |
100 | | - "eslint-plugin-react": "^7.24.0", |
101 | | - "eslint-plugin-react-hooks": "^4.2.0", |
| 96 | + "eslint-plugin-cypress": "^2.12.1", |
| 97 | + "eslint-plugin-mdx": "^1.16.0", |
| 98 | + "eslint-plugin-react": "^7.27.1", |
| 99 | + "eslint-plugin-react-hooks": "^4.3.0", |
102 | 100 | "front-matter": "^4.0.2", |
| 101 | + "github-slugger": "^1.3.0", |
103 | 102 | "html-loader": "^2.1.2", |
104 | | - "html-webpack-plugin": "^5.3.0", |
105 | | - "http-server": "^0.12.3", |
106 | | - "husky": "^6.0.0", |
107 | | - "hyperlink": "^4.6.1", |
108 | | - "jest": "^27.0.4", |
109 | | - "lint-staged": "^11.0.0", |
| 103 | + "html-webpack-plugin": "^5.5.0", |
| 104 | + "http-server": "^14.0.0", |
| 105 | + "husky": "^7.0.4", |
| 106 | + "hyperlink": "^5.0.3", |
| 107 | + "jest": "^27.4.3", |
| 108 | + "lint-staged": "^12.1.2", |
110 | 109 | "lodash": "^4.17.21", |
111 | | - "markdownlint": "^0.23.1", |
112 | | - "markdownlint-cli": "^0.27.1", |
113 | | - "mini-css-extract-plugin": "^1.6.0", |
| 110 | + "markdownlint": "^0.24.0", |
| 111 | + "markdownlint-cli": "^0.30.0", |
| 112 | + "mdast-util-to-string": "^1.1.0", |
| 113 | + "mini-css-extract-plugin": "^2.4.5", |
114 | 114 | "mkdirp": "^1.0.4", |
115 | 115 | "modularscale-sass": "^3.0.3", |
116 | | - "node-fetch": "^2.6.1", |
| 116 | + "node-fetch": "^3.1.0", |
117 | 117 | "npm-run-all": "^4.1.1", |
118 | | - "postcss": "^8.3.4", |
119 | | - "postcss-loader": "^6.1.0", |
120 | | - "prettier": "^2.3.1", |
121 | | - "react-refresh": "^0.10.0", |
| 118 | + "postcss": "^8.4.4", |
| 119 | + "postcss-loader": "^6.2.1", |
| 120 | + "prettier": "^2.5.1", |
| 121 | + "react-refresh": "^0.11.0", |
122 | 122 | "redirect-webpack-plugin": "^1.0.0", |
123 | | - "remark": "^13.0.0", |
124 | | - "remark-autolink-headings": "^6.0.1", |
125 | | - "remark-emoji": "^2.2.0", |
| 123 | + "remark": "^14.0.2", |
| 124 | + "remark-autolink-headings": "7.0.1", |
| 125 | + "remark-emoji": "^3.0.2", |
126 | 126 | "remark-extract-anchors": "1.1.1", |
127 | | - "remark-frontmatter": "^3.0.0", |
| 127 | + "remark-frontmatter": "^4.0.1", |
128 | 128 | "remark-gfm": "^1.0.0", |
129 | | - "remark-html": "^13.0.1", |
130 | | - "remark-loader": "^4.0.0", |
131 | | - "remark-refractor": "git://github.com/montogeek/remark-refractor.git", |
132 | | - "remark-slug": "^6.0.0", |
| 129 | + "remark-html": "^15.0.0", |
| 130 | + "remark-refractor": "montogeek/remark-refractor", |
| 131 | + "remark-slug": "^7.0.1", |
133 | 132 | "rimraf": "^3.0.2", |
134 | | - "sass": "^1.35.0", |
135 | | - "sass-loader": "^12.1.0", |
136 | | - "sirv-cli": "^1.0.12", |
| 133 | + "sass": "^1.44.0", |
| 134 | + "sass-loader": "^12.4.0", |
| 135 | + "sirv-cli": "^1.0.14", |
137 | 136 | "sitemap-static": "^0.4.2", |
138 | | - "start-server-and-test": "^1.12.5", |
| 137 | + "start-server-and-test": "^1.14.0", |
139 | 138 | "static-site-generator-webpack-plugin": "^3.4.1", |
140 | | - "style-loader": "^2.0.0", |
141 | | - "tailwindcss": "^2.1.4", |
| 139 | + "style-loader": "^3.3.1", |
| 140 | + "tailwindcss": "^3.0.0", |
142 | 141 | "tap-spot": "^1.1.1", |
143 | 142 | "textlint": "^11.8.2", |
144 | 143 | "textlint-rule-heading": "^1.0.10", |
145 | | - "unist-util-visit": "^2.0.3", |
146 | | - "webpack": "^5.39.0", |
147 | | - "webpack-bundle-analyzer": "^4.4.2", |
148 | | - "webpack-cli": "^4.7.2", |
149 | | - "webpack-dev-server": "^4.0.0-beta.3", |
| 144 | + "unist-util-visit": "^4.1.0", |
| 145 | + "webpack": "^5.65.0", |
| 146 | + "webpack-bundle-analyzer": "^4.5.0", |
| 147 | + "webpack-cli": "^4.9.1", |
| 148 | + "webpack-dev-server": "^4.6.0", |
150 | 149 | "webpack-merge": "^5.8.0", |
151 | | - "workbox-webpack-plugin": "^6.1.5" |
| 150 | + "workbox-webpack-plugin": "^6.4.2" |
152 | 151 | }, |
153 | 152 | "dependencies": { |
154 | | - "docsearch.js": "^2.5.2", |
| 153 | + "@docsearch/react": "^3.0.0-alpha.42", |
155 | 154 | "path-browserify": "^1.0.1", |
156 | 155 | "prop-types": "^15.7.2", |
157 | 156 | "react": "^17.0.2", |
158 | | - "react-banner": "^1.0.0-rc.0", |
159 | 157 | "react-dom": "^17.0.2", |
160 | 158 | "react-g-analytics": "0.4.2", |
161 | | - "react-helmet-async": "^1.0.9", |
162 | | - "react-router-dom": "^5.2.0", |
163 | | - "react-spring": "next", |
| 159 | + "react-helmet-async": "^1.2.2", |
| 160 | + "react-router-dom": "^5.3.0", |
| 161 | + "react-spring": "^9.3.2", |
164 | 162 | "react-tiny-popover": "5", |
165 | | - "react-use": "^17.2.4", |
| 163 | + "react-use": "^17.3.1", |
166 | 164 | "react-visibility-sensor": "^5.0.2", |
167 | | - "unist-util-visit": "^2.0.3", |
168 | 165 | "webpack-pwa-manifest": "^4.3.0", |
169 | 166 | "webpack.vote": "https://github.com/webpack/voting-app.git", |
170 | | - "workbox-window": "^6.1.5" |
| 167 | + "workbox-window": "^6.4.2" |
171 | 168 | }, |
172 | 169 | "resolutions": { |
173 | 170 | "sitemap-static/minimist": "1.2.5", |
|
0 commit comments