-
-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[website][docs][cli] Make Core the default project #3868
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just small nitpicks.
{secondaryLabel} | ||
</Button> | ||
) : null} | ||
<GithubStars /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As there's another page with a Github star button, couldn't both pages use the same component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are both using the same component - the GithubStars
component inside landing-studio
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah nevermind I guess I misread the diff in this case.
); | ||
|
||
// check that file exists or not in the directory | ||
const gitignore = await fs.readFile(path.resolve(testDir, './.gitignore'), { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you can also use fs.exists
or fs.stat
instead of readFile
here (not sure which is better or the best way nowadays, would have to try it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node.js deprecated fs.exists
in favour of fs.access
and fs.stat
, both of which warn against using them to check for existence before attempting to read or write the file, for race condition worries: https://nodejs.org/api/fs.html#fsstatpath-options-callback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ok great I didn't know (wasn't sure like I said :D), thanks for clarifying!
Co-authored-by: Pedro Ferreira <[email protected]> Signed-off-by: Bharat Kashyap <[email protected]>
Co-authored-by: Pedro Ferreira <[email protected]> Signed-off-by: Bharat Kashyap <[email protected]>
https://deploy-preview-3868--mui-toolpad-docs.netlify.app/toolpad/
https://deploy-preview-3868--mui-toolpad-docs.netlify.app/toolpad/studio/