Commit Graph

20 Commits

Author SHA1 Message Date
Sébastien Lorber 96b32dd2e5 refactor(monorepo): migrate to pnpm 11 (#12109) 2026-06-04 19:29:20 +02:00
Sébastien Lorber 29c3b5ce11 feat(core): Docusaurus Faster is stable + v4 future flag turns it on by default (#11802)
* feat(core): promote `future.experimental_faster` to `future.faster` + add `future.v4.fasterByDefault` flag

Stabilize the Docusaurus Faster config by removing the `experimental_` prefix.
Add a `fasterByDefault` v4 future flag that enables all faster features by default
when `v4: true` is used, allowing granular overrides. Init templates now include
`@docusaurus/faster` as a dependency since they use `v4: true`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: apply lint autofix

* fix(docs): remove broken #faster anchor link in fasterByDefault docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(ci): add Yarn PnP packageExtension for @docusaurus/bundler → @docusaurus/faster

Yarn PnP strict mode doesn't resolve optional dependencies automatically.
Add a packageExtension so @docusaurus/bundler can resolve @docusaurus/faster
in the e2e Yarn Berry tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(core): declare @docusaurus/faster as optional peer dep instead of CI packageExtension

Revert the packageExtensions workaround in the e2e CI workflow and instead
declare @docusaurus/faster as an optional peer dependency of @docusaurus/core,
matching the existing pattern in @docusaurus/bundler.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: retrigger CI

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* empty

* add randomness to e2e test script version, to avoid using cached versions when trying to run this locally

* Rspack + PnP doesn't work, so add a warning in this case + fallback to Webpack
This should fix the e2e pnp workflows

* refactor: apply lint autofix

* typo

* typo

* revert wrong change

* also use slower minimizers

* comment

* restore snapshots

* ensure faster key resolution is always exhaustive, no hardcoding of keys

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2026-03-13 17:17:28 +01:00
Sébastien Lorber ef23f546fd chore(ci): add yarn-v1-windows e2e job (#11231) 2025-06-05 12:50:07 +02:00
Sébastien Lorber 0f29a37b3a feat: Add React 19 support to Docusaurus v3 (#10763) 2024-12-24 14:43:03 +01:00
Rafael Martins 628752d92a feat(create-docusaurus): ask user for preferred language when no language CLI option provided (#9442)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-02-15 13:05:05 +01:00
Sébastien Lorber 1aae05b606 chore: update changelog after 2.0.1 release (#7920) 2022-08-08 16:49:38 +02:00
Joshua Chen bafa4711b1 test: add TypeScript template to E2E test matrix (#6768)
* test: add TypeScript template to E2E test

* fix

* fix

* fix...

* exclude this

* refactor
2022-02-27 09:20:59 +08:00
Joshua Chen a70514205d feat(create): new --package-manager option; interactive package manager selection (#6750) 2022-02-24 11:50:37 +01:00
Joshua Chen 4809a1aab1 chore: add NPM and PNPM to E2E tests (#6080)
* chore: add NPM and PNPM to E2E tests

* Align node versions

* Install PNPM

* Fix options

Maybe fix

Fix
2021-12-10 22:04:05 +08:00
Ludovico Fischer 5678911555 chore: update @svgr/webpack to version 6 (#5958)
* chore: update @svgr/webpack to version 6

* svgr changelog https://github.com/gregberge/svgr/releases
* SVGO 2 changelog https://github.com/svg/svgo/releases/tag/v2.0.0
* depend on maintained svgo version
* although svgr 6 is in alpha, it fixes a few issues
  with webpack 5 (https://github.com/gregberge/svgr/commit/1a8cc98)
  and React (https://github.com/gregberge/svgr/commit/3700aba)
* see also https://github.com/facebook/docusaurus/pull/5703

* Fix config

* fix e2e test

* Fix again

* Update to stable

Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2021-11-29 15:12:18 +08:00
Sébastien Lorber f6ec757aa0 feat: npm init docusaurus, yarn create docusaurus (#5635)
* initial create-docusaurus impl

* cleanup

* @docusaurus/init renamed to create-docusaurus

* 0.0.6

* update lockfile

* fix lint

* remove npm2yarn for "npm init" because npm2yarn doesn't convert it and yarn result fails to execute

* prettier

* add correct version

* prettier

* prettier

* prettier

* prettier

* fix annoying --config .prettierrc issue
2021-10-07 16:06:42 +02:00
Sébastien Lorber ac4a253cdf chore: fix e2e yarn berry tests (#5342)
* disable pnp

* test-release support --skip-install + revert to pnp mode

* fix yarn canary?

* add YARN_ENABLE_IMMUTABLE_INSTALLS env

* add nodeLinker matrix

* Update .github/workflows/v2-tests-e2e.yml

Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>

* polish e2e test workflows

* polish e2e test workflows

* set npm_config_registry

Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2021-08-12 13:18:07 +02:00
Sébastien Lorber 2a2da8006f chore(v2): fix yarn2 end2end test by using lerna publish --exact (#4613) 2021-04-14 17:25:50 +02:00
Alexey Pyltsyn 5f20200661 feat(v2): allow init project via npm (#3729)
* feat(v2: allow init project via npm

* Add test-website to workspace

* Remove test-website from workspace

* Refactor
2020-11-16 16:11:16 +01:00
Alexey Pyltsyn ede65d3097 chore(v2): fix unbound env variable in test release script (#3641) 2020-10-26 15:10:04 +01:00
Sébastien Lorber 3b16fb15e9 docs(v2): publish changes after release (#3116) 2020-07-27 12:17:59 +02:00
Sam Zhou cf5babd5c1 chore(v2): Add E2E test for yarn v2 (#3008)
* chore(v2): Add E2E test for yarn v2

* Remove root node_modules to prevent them from accessible in e2e test

The purpose of e2e test is to ensure that the docusaurus inited website can stand on its own. The root node_modules remain accessible according to how node resolution works and it might interfere with the test. Remove them for safety.

* Add @mdx-js/react to docusaurus init templates
2020-07-01 12:06:03 +02:00
Yangshun Tay 03070a2b8d chore: add copyright headers to missing files 2020-05-11 00:11:11 +08:00
Alexey Pyltsyn bfeb1044fb misc: simplify test release script (#2641)
* misc: simplify test release script

* misc: suppress output of Docker command
2020-04-22 20:31:44 +08:00
Alexey Pyltsyn 18d31b5f5f misc: add instructions about test release (#2486)
* misc: add instructions about test release

* Fix tests

* Rebuild yarn.lock

* Fixes

* Fixes

* Upd
2020-04-02 15:11:19 +08:00