2017-07-07 13:28:29 -04:00
{
2019-03-23 03:21:36 -04:00
"private" : true ,
"workspaces" : [
"packages/*" ,
"website" ,
2021-08-26 06:21:58 -04:00
"test-website-in-workspace" ,
2021-10-07 10:06:42 -04:00
"packages/create-docusaurus/templates/*" ,
2021-07-22 15:10:36 -04:00
"admin/new.docusaurus.io"
2019-03-23 03:21:36 -04:00
] ,
2017-10-25 17:04:24 -04:00
"scripts" : {
2021-08-20 12:11:13 -04:00
"start" : "yarn build:packages && yarn start:website" ,
"start:website" : "yarn workspace website start" ,
"start:website:watch" : "nodemon --watch \"./packages/*/lib/**/*.*\" --exec \"yarn start:website\"" ,
"start:website:baseUrl" : "yarn workspace website start:baseUrl" ,
"start:website:blogOnly" : "yarn workspace website start:blogOnly" ,
"start:website:deployPreview" : "cross-env NETLIFY=true CONTEXT='deploy-preview' yarn workspace website start" ,
2020-11-16 11:09:44 -05:00
"examples:generate" : "node generateExamples" ,
2021-08-20 12:11:13 -04:00
"build" : "yarn build:packages && yarn build:website" ,
2020-07-01 12:30:44 -04:00
"build:packages" : "lerna run build --no-private" ,
2021-08-20 12:11:13 -04:00
"build:website" : "yarn workspace website build" ,
"build:website:baseUrl" : "yarn workspace website build:baseUrl" ,
"build:website:blogOnly" : "yarn workspace website build:blogOnly" ,
"build:website:deployPreview" : "cross-env NETLIFY=true CONTEXT='deploy-preview' yarn workspace website build" ,
2021-10-21 11:17:03 -04:00
"build:website:fast" : "yarn workspace website build:fast" ,
2021-08-20 12:11:13 -04:00
"build:website:en" : "yarn workspace website build --locale en" ,
"clear:website" : "yarn workspace website clear" ,
"serve:website" : "yarn workspace website serve" ,
"serve:website:baseUrl" : "serve website" ,
"serve:website:ssl" : "yarn serve:website:ssl:gencert && yarn serve:website:ssl:message && yarn serve:website:ssl:serve" ,
"serve:website:ssl:gencert" : "openssl req -x509 -nodes -days 365 -newkey rsa:4096 -subj \"/C=US/ST=Docusaurus/L=Anywhere/O=Dis/CN=localhost\" -keyout ./website/.docusaurus/selfsigned.key -out ./website/.docusaurus/selfsigned.crt" ,
"serve:website:ssl:message" : "echo '\n\n\nServing Docusaurus with HTTPS on localhost requires to disable the Chrome security: chrome://flags/#allow-insecure-localhost\n\n\n'" ,
"serve:website:ssl:serve" : "serve website/build --ssl-cert ./website/.docusaurus/selfsigned.crt --ssl-key ./website/.docusaurus/selfsigned.key" ,
"crowdin:upload:website" : "crowdin upload sources --config ./crowdin-v2.yaml" ,
"crowdin:download:website" : "crowdin download --config ./crowdin-v2.yaml" ,
2020-12-01 05:56:59 -05:00
"canary" : "yarn canary:bumpVersion && yarn canary:publish" ,
2021-08-05 08:19:58 -04:00
"canary:version" : "echo 0.0.0-`git rev-list --count HEAD`+`git rev-parse --short HEAD`" ,
2021-08-04 12:34:06 -04:00
"canary:bumpVersion" : "yarn lerna version `yarn --silent canary:version` --exact --no-push --yes" ,
2020-12-02 14:15:12 -05:00
"canary:publish" : "yarn lerna publish from-package --dist-tag canary --yes --no-verify-access" ,
2019-11-08 11:58:56 -05:00
"changelog" : "lerna-changelog" ,
2021-02-18 09:12:42 -05:00
"postinstall" : "run-p postinstall:**" ,
"postinstall:main" : "yarn lock:update && yarn build:packages" ,
"postinstall:dev" : "is-ci || husky install" ,
2021-03-18 14:39:50 -04:00
"prettier" : "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,json}\"" ,
"prettier:diff" : "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,json}\"" ,
2021-03-18 12:40:28 -04:00
"prettier-docs" : "prettier --config .prettierrc --write \"**/*.{md,mdx}\"" ,
"prettier-docs:diff" : "prettier --config .prettierrc --list-different \"**/*.{md,mdx}\"" ,
2020-06-18 05:37:48 -04:00
"lint" : "yarn lint:js && yarn lint:style" ,
2021-09-21 12:07:54 -04:00
"lint:ci" : "yarn lint:js --quiet --report-unused-disable-directives && yarn lint:style" ,
2020-06-18 05:37:48 -04:00
"lint:js" : "eslint --cache \"**/*.{js,jsx,ts,tsx}\"" ,
"lint:style" : "stylelint \"**/*.css\"" ,
2019-03-23 03:21:36 -04:00
"lerna" : "lerna" ,
2021-03-15 13:02:53 -04:00
"test" : "cross-env TZ=UTC jest" ,
2021-08-20 12:11:13 -04:00
"test:build:website" : "./admin/scripts/test-release.sh" ,
2021-09-30 11:49:44 -04:00
"watch" : "yarn lerna run --parallel watch" ,
2021-08-20 12:11:13 -04:00
"clear" : "(yarn workspace website clear || echo 'Failure while running docusaurus clear') && yarn lerna exec --ignore docusaurus yarn rimraf lib lib-next" ,
"test:baseUrl" : "yarn build:website:baseUrl && yarn serve:website:baseUrl" ,
2020-11-13 08:21:04 -05:00
"lock:update" : "npx yarn-deduplicate"
2017-07-07 13:28:29 -04:00
} ,
2017-12-12 15:47:52 -05:00
"devDependencies" : {
2021-09-24 10:36:41 -04:00
"@babel/cli" : "^7.15.7" ,
2021-02-18 09:12:42 -05:00
"@babel/core" : "^7.12.16" ,
2021-09-24 10:36:41 -04:00
"@babel/eslint-parser" : "^7.15.7" ,
2021-02-18 09:12:42 -05:00
"@babel/plugin-proposal-nullish-coalescing-operator" : "^7.12.13" ,
"@babel/plugin-proposal-optional-chaining" : "^7.12.16" ,
"@babel/plugin-transform-modules-commonjs" : "^7.12.13" ,
"@babel/preset-typescript" : "^7.12.16" ,
2021-09-24 10:36:41 -04:00
"@crowdin/cli" : "^3.7.0" ,
2021-03-15 13:02:53 -04:00
"@formatjs/intl-datetimeformat" : "^3.2.12" ,
"@formatjs/intl-numberformat" : "^6.2.2" ,
"@formatjs/intl-pluralrules" : "^4.0.11" ,
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
"@types/cssnano" : "^4.0.0" ,
2019-11-24 11:06:25 -05:00
"@types/express" : "^4.17.2" ,
2021-02-02 08:37:45 -05:00
"@types/fs-extra" : "^9.0.6" ,
2021-02-18 09:12:42 -05:00
"@types/jest" : "^26.0.20" ,
2021-09-24 10:36:41 -04:00
"@types/loader-utils" : "^2.0.3" ,
2021-03-09 06:15:52 -05:00
"@types/lodash" : "^4.14.168" ,
2021-02-02 08:37:45 -05:00
"@types/node" : "^14.14.22" ,
"@types/prismjs" : "^1.16.2" ,
2021-01-11 09:33:40 -05:00
"@types/prompts" : "^2.0.9" ,
2021-02-18 09:12:42 -05:00
"@types/react" : "^17.0.2" ,
2019-05-21 02:58:14 -04:00
"@types/react-dev-utils" : "^9.0.1" ,
2020-06-21 03:09:00 -04:00
"@types/react-helmet" : "^6.0.0" ,
"@types/react-loadable" : "^5.5.3" ,
"@types/react-router-config" : "^5.0.1" ,
2021-10-14 09:47:03 -04:00
"@types/react-test-renderer" : "^17.0.1" ,
2020-04-05 07:07:44 -04:00
"@types/semver" : "^7.1.0" ,
2019-11-22 05:55:22 -05:00
"@types/shelljs" : "^0.8.6" ,
2021-01-11 09:33:40 -05:00
"@types/wait-on" : "^5.2.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
"@types/webpack-dev-server" : "^3.11.1" ,
2021-03-18 11:10:16 -04:00
"@typescript-eslint/eslint-plugin" : "^4.18.0" ,
"@typescript-eslint/parser" : "^4.18.0" ,
2021-09-24 10:36:41 -04:00
"concurrently" : "^6.2.1" ,
2021-02-02 08:37:45 -05:00
"cross-env" : "^7.0.3" ,
2021-02-18 09:12:42 -05:00
"eslint" : "^7.20.0" ,
2020-11-18 11:52:50 -05:00
"eslint-config-airbnb" : "^18.2.1" ,
"eslint-config-prettier" : "^6.15.0" ,
2019-03-24 03:50:26 -04:00
"eslint-plugin-header" : "^3.0.0" ,
2020-11-18 11:52:50 -05:00
"eslint-plugin-import" : "^2.22.1" ,
"eslint-plugin-jsx-a11y" : "^6.4.1" ,
"eslint-plugin-react" : "^7.21.5" ,
"eslint-plugin-react-hooks" : "^4.2.0" ,
2020-10-21 09:05:01 -04:00
"glob" : "^7.1.6" ,
2021-02-18 09:12:42 -05:00
"husky" : "^5.0.9" ,
2021-09-24 10:36:41 -04:00
"is-ci" : "^3.0.0" ,
2021-02-18 09:12:42 -05:00
"jest" : "^26.6.3" ,
2020-12-02 14:15:12 -05:00
"lerna" : "^3.22.1" ,
2020-04-05 07:07:44 -04:00
"lerna-changelog" : "^1.0.1" ,
2021-02-18 09:12:42 -05:00
"lint-staged" : "^10.5.4" ,
2020-07-22 13:55:40 -04:00
"netlify-cli" : "^2.58.0" ,
2021-09-24 10:36:41 -04:00
"nodemon" : "^2.0.13" ,
2021-02-18 09:12:42 -05:00
"npm-run-all" : "^4.1.5" ,
2021-09-30 06:54:17 -04:00
"prettier" : "^2.4.1" ,
2021-02-12 11:04:45 -05:00
"react" : "^17.0.1" ,
"react-dom" : "^17.0.1" ,
2021-10-14 09:47:03 -04:00
"react-test-renderer" : "^17.0.2" ,
2020-06-16 08:40:46 -04:00
"rimraf" : "^3.0.2" ,
2021-09-24 10:36:41 -04:00
"serve" : "^12.0.1" ,
2021-02-18 09:12:42 -05:00
"stylelint" : "^13.10.0" ,
2021-09-24 10:36:41 -04:00
"tslib" : "^2.3.1" ,
2021-03-17 11:25:42 -04:00
"typescript" : "^4.1.5"
2018-08-03 21:25:57 -04:00
} ,
2018-09-17 12:58:07 -04:00
"lint-staged" : {
2020-06-18 05:37:48 -04:00
"*.{js,jsx,ts,tsx}" : [
2020-08-11 10:51:32 -04:00
"eslint --fix" ,
2021-10-07 10:06:42 -04:00
"prettier --config .prettierrc --write"
2019-12-08 00:56:30 -05:00
] ,
2020-08-11 10:51:32 -04:00
"*.{md,mdx}" : [
2021-10-07 10:06:42 -04:00
"prettier --config .prettierrc --write"
2019-11-22 05:55:22 -05:00
]
2019-02-11 21:34:31 -05:00
} ,
2020-01-12 00:24:11 -05:00
"engines" : {
2021-02-18 09:12:42 -05:00
"node" : ">=12.13.0"
2017-07-07 13:28:29 -04:00
}
}