2019-03-23 03:21:36 -04:00
|
|
|
{
|
2021-08-20 12:11:13 -04:00
|
|
|
"name": "website",
|
2021-09-02 12:31:42 -04:00
|
|
|
"version": "2.0.0-beta.6",
|
2019-03-23 03:21:36 -04:00
|
|
|
"private": true,
|
|
|
|
|
"scripts": {
|
2020-07-23 12:37:02 -04:00
|
|
|
"docusaurus": "docusaurus",
|
2019-03-23 03:21:36 -04:00
|
|
|
"start": "docusaurus start",
|
|
|
|
|
"build": "docusaurus build",
|
2019-05-07 02:56:43 -04:00
|
|
|
"swizzle": "docusaurus swizzle",
|
2020-07-23 05:51:28 -04:00
|
|
|
"deploy": "docusaurus deploy",
|
2020-09-28 10:33:35 -04:00
|
|
|
"clear": "docusaurus clear",
|
2020-10-05 09:20:03 -04:00
|
|
|
"serve": "docusaurus serve",
|
2021-02-03 14:06:26 -05:00
|
|
|
"write-translations": "docusaurus write-translations",
|
2021-03-05 13:36:14 -05:00
|
|
|
"write-heading-ids": "docusaurus write-heading-ids",
|
2020-11-05 09:13:47 -05:00
|
|
|
"start:baseUrl": "cross-env BASE_URL='/build/' yarn start",
|
|
|
|
|
"build:baseUrl": "cross-env BASE_URL='/build/' yarn build",
|
2021-03-02 11:34:23 -05:00
|
|
|
"start:blogOnly": "cross-env yarn start --config=docusaurus.config-blog-only.js",
|
|
|
|
|
"build:blogOnly": "cross-env yarn build --config=docusaurus.config-blog-only.js",
|
2021-05-06 13:12:13 -04:00
|
|
|
"netlify:build:production": "yarn docusaurus write-translations && yarn netlify:crowdin:delay && yarn netlify:crowdin:uploadSources && yarn netlify:crowdin:downloadTranslations && yarn build",
|
2021-03-18 12:40:28 -04:00
|
|
|
"netlify:build:deployPreview": "yarn docusaurus write-translations --locale fr --messagePrefix '(fr) ' && yarn build",
|
2021-05-06 13:12:13 -04:00
|
|
|
"netlify:crowdin:delay": "node delayCrowdin.js",
|
2021-05-06 11:54:50 -04:00
|
|
|
"netlify:crowdin:wait": "node waitForCrowdin.js",
|
2021-08-20 12:11:13 -04:00
|
|
|
"netlify:crowdin:downloadTranslations": "yarn netlify:crowdin:wait && yarn --cwd .. crowdin:download:website",
|
|
|
|
|
"netlify:crowdin:downloadTranslationsFailSafe": "yarn netlify:crowdin:wait && (yarn --cwd .. crowdin:download:website || echo 'Crowdin translation download failure (only internal PRs have access to the Crowdin env token)')",
|
|
|
|
|
"netlify:crowdin:uploadSources": "yarn --cwd .. crowdin:upload:website",
|
2021-08-30 07:06:00 -04:00
|
|
|
"netlify:test": "yarn netlify:build:deployPreview && yarn netlify dev --debug",
|
|
|
|
|
"typecheck": "tsc"
|
2019-03-23 03:21:36 -04:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
2021-01-19 11:26:31 -05:00
|
|
|
"@crowdin/cli": "^3.5.2",
|
2021-05-06 11:54:50 -04:00
|
|
|
"@crowdin/crowdin-api-client": "^1.10.6",
|
2021-09-02 12:31:42 -04:00
|
|
|
"@docusaurus/core": "2.0.0-beta.6",
|
|
|
|
|
"@docusaurus/plugin-client-redirects": "2.0.0-beta.6",
|
|
|
|
|
"@docusaurus/plugin-ideal-image": "2.0.0-beta.6",
|
|
|
|
|
"@docusaurus/plugin-pwa": "2.0.0-beta.6",
|
|
|
|
|
"@docusaurus/preset-classic": "2.0.0-beta.6",
|
|
|
|
|
"@docusaurus/remark-plugin-npm2yarn": "2.0.0-beta.6",
|
|
|
|
|
"@docusaurus/theme-live-codeblock": "2.0.0-beta.6",
|
2020-06-07 01:40:06 -04:00
|
|
|
"clsx": "^1.1.1",
|
2021-02-02 08:37:45 -05:00
|
|
|
"color": "^3.1.3",
|
2021-05-19 04:11:53 -04:00
|
|
|
"esbuild-loader": "2.13.1",
|
2021-06-18 10:54:46 -04:00
|
|
|
"hast-util-is-element": "1.1.0",
|
feat(v2): Webpack 5, PostCSS 8 (#4089)
* Initial webpack 5 work
* It works on my machine (lol)
* Committing a bit more work
* It works - sorta
* Update packages/docusaurus/package.json
* at least fix prettier /shrug
* making more progress. build should work now, css stuff is still a bit broken
* Terser things
Signed-off-by: Reece Dunham <me@rdil.rocks>
* Working on things
* Vendor webpack
* Repair chunks, and tests
* Rerun prettier
* Re-add client prefetching
* Update snapshots
* Update snapshots
* I hope this works
* Remove redundant dev server code
* relock
* Trying to reduce memory usage and fix things
* Dead code elim
* Search bar works!!!
* Prefetching should work again
* lock
* ts issue
* Repair snapshot
* Run prettier
* Fix the CI for now
* fix lint-prettier
* clean-css works, now for the other one
* Fix lockfile
* Fixes prettier
* Other css minification works!!!
* Add clean-css options, fix webpack versions
Signed-off-by: Reece Dunham <me@rdil.rocks>
* Fix tests and several of the webpack loaders
Signed-off-by: Reece Dunham <me@rdil.rocks>
* Re-add support for simple css minifier
* Update other related dependencies
* Fix lockfile
* Dev server fixups
Signed-off-by: Reece Dunham <me@rdil.rocks>
* Simplify css things
* Update webpack, try with postcss 7
* Other cssnano repairs
* fix lockfile
* Clean up the babel preset
* Fix lockfile
* Bump RL SSR version
* Fix the build errors
* Lockfile fix
* It works again
* webpack 5 should close compiler after run
* add proper webpack5 persistent caching config
* upgrade webpack deps again
* reduce build perf timeouts to avoid build time regressions
* test if incremental build can run on netlify
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* test
* test
* test
* test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* fix existsSync() calls
* replace @ts-nocheck by a temporary Webpack type
* replace @ts-nocheck by a temporary Webpack type
* replace @ts-nocheck by a temporary Webpack type
* migrate existing stats.warningsFilter to config.ignoreWarnings
* remove stats from postBuild lifecycle data doc, as it is likely unused (we'll add it back if someone ask for it)
* improve build.ts TS issues + move some sync code to async
* cleanup TS of start.ts
* fix TS error
* fix TS issues
* fix TS issues
* fix ts error
* netlify test
* netlify test
* netlify test
* netlify test
* netlify test
* script cleanup
* script cleanup
* re-enable @typescript-eslint/ban-ts-comment
* Deprecate getCacheLoader / getBabelLoader but keep retrocompatibility
* useless TS
* fix and comment gca(chunkName) prefetching function
* remove deprecated mainTemplate.requireFn
* temporarily use react-loadable-ssr-addon-v5-slorber until PR merged: https://github.com/facebook/docusaurus/pull/4089
* comment unsafeCache option
* add explicit and more precise webpack targets
* splitChunks, use new type: "css/mini-extract" as it seems recommended for webpack 5
* webpack error handling:
- log error.details as documented
- keep using react-dev-utils/formatWebpackMessages for now
* fix webpack5 warnings for evalSourceMapMiddleware.js
* typo
* rename webpackHotDevClient
* make all modifications of react-dev-utils explicit with a comment
* revert LogPlugin adapter
* loader-utils update
* add useful share cache comment
* add useful comments regarding the null-loader used in SSR for css files
* upgrade webpack-merge in a retrocompatible way
* use MiniCssExtractPlugin.emit false as recommended
* use @docusaurus/responsive-loader
* revert MiniCssExtractPlugin esModule: false change
* add link to PR for custom CleanWebpackPlugin
* pwa: add fallback to env variable or webpack 5 fails to build
* upgrade to CssMinimizerPlugin 2.0
* only build en locale for windows tests
* line breaks between errors
* add useful comment
* Fix e2e tests with Yarn2 not finding new init template dependencies
* fix bad import
* disable browserslist target as webpack already tries to use browserlists if a config is found, and it is a problem for existing sites
* webpack5 TS fixes
* fix getMinimizer order (even if it does not work yet)
* update postcss to v8, fix cssnano minimizer errors
* add NavbarItem position to types (useful for QuestDB site upgrade to Webpack5)
* add webpack cache env variable to reduce risk of webpack 5 adoption
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-04-30 12:06:53 -04:00
|
|
|
"netlify-plugin-cache": "^1.0.3",
|
2020-03-23 20:53:48 -04:00
|
|
|
"npm-to-yarn": "^1.0.0-2",
|
2021-05-19 04:11:53 -04:00
|
|
|
"react": "^17.0.2",
|
|
|
|
|
"react-dom": "^17.0.2",
|
2021-06-02 08:55:50 -04:00
|
|
|
"rehype-katex": "^4.0.0",
|
|
|
|
|
"remark-math": "^3.0.1",
|
2020-07-08 06:32:41 -04:00
|
|
|
"workbox-routing": "^5.0.0",
|
|
|
|
|
"workbox-strategies": "^5.0.0"
|
2019-06-02 13:43:39 -04:00
|
|
|
},
|
|
|
|
|
"browserslist": {
|
|
|
|
|
"production": [
|
2020-11-09 09:28:18 -05:00
|
|
|
">0.5%",
|
2019-06-02 13:43:39 -04:00
|
|
|
"not dead",
|
|
|
|
|
"not op_mini all"
|
|
|
|
|
],
|
|
|
|
|
"development": [
|
|
|
|
|
"last 1 chrome version",
|
|
|
|
|
"last 1 firefox version",
|
|
|
|
|
"last 1 safari version"
|
|
|
|
|
]
|
2020-10-08 12:39:50 -04:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2021-08-30 07:06:00 -04:00
|
|
|
"@tsconfig/docusaurus": "^1.0.4",
|
2021-02-02 08:37:45 -05:00
|
|
|
"cross-env": "^7.0.3",
|
|
|
|
|
"raw-loader": "^4.0.2"
|
2019-03-23 03:21:36 -04:00
|
|
|
}
|
|
|
|
|
}
|