feat(v2): new docusaurus clear command#3446
Conversation
|
Deploy preview for docusaurus-2 ready! Built with commit 8f91247 |
lex111
left a comment
There was a problem hiding this comment.
Thank you for your contribution, but we still need to document the new command in the master docs.
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
Hi @lex111, is here where I should document the new command?, https://v2.docusaurus.io/docs/cli |
Yes, please. |
|
website/docs/cli.md
Outdated
|
|
||
| ### `docusaurus clear` | ||
|
|
||
| Remove build artifacts. |
There was a problem hiding this comment.
Need to explain in more detail which folders are removed by this command.
|
Thanks Did some little changes and added more doc, will merge when CI completes |
|
Thank you :) I've tagged a few starter issues, and guess some of them are still available |
* feat: new docusaurus clear command * Update packages/docusaurus/bin/docusaurus.js Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com> * docs: new docusaurus clear command * fix doc * update monorepo clear cmd * make clear async function wait for deletes to complete + factorize a bit * prettier fix * better clear docs Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com> Co-authored-by: slorber <lorber.sebastien@gmail.com> Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Motivation
Implementing a new clear command to help users before reporting bugs as described in #3370
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
yarn start:

No errors found.
yarn clear:

Done message, no errors with the new command.
System complaining because something is missing during run time


yarn start:


Everything is back to normal and working again.
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)