-
Notifications
You must be signed in to change notification settings - Fork 920
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
Follow root level naming convention as proposed in #977 #1006
Follow root level naming convention as proposed in #977 #1006
Conversation
It might be worth having a discussion about the other global commands. Here is my argumentation why I did not include other commands: Generally, the root commands should:
|
Thanks @schmidsi! This canges makes sense! A coule of things which I feel we should do is:
|
Thanks @schmidsi ! I agree with @technophile-04 mostly
For my eye there will be no difference between For me, alphabetical order for everything is good since it's easier for an eye to search the script and doesn't require to remember the order of groups The second option could be
it almost doesn't require to remember order of groups too |
I personally like the alphabetical ordering too: It's easy to reason about, like no discussion about "does this belong to happy path or misc"? Also, it looks pretty good and it groups the prefixed ones. This is what it looks like on my test repo:
@technophile-04 would you agree? Otherwise, let me know, I can also change to your proposed ordering. I don't have a strong opinion here. |
It's probably also easier to compose multiple commands from multiple plugins together if sorted alphabetically. |
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.
This is looking sharp @schmidsi
I think sorting alphabetically makes sense, so we don't have to think where to add new stuff.
A couple of things:
- I'd personally miss the
yarn compile
happy path, but maybe it's just me. - This is probably for another PR/discussion, but: In the past, we've talked about having a global
yarn lint
command (lint everything + check-types). Same asyarn lint-staged
but for the current state of your files (not only staged ones).
@carletex, thanks for the feedback. Added both. +1 for a global lint command. |
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 think this looks great, Thanks!! A very small nitpick maybe we update "scripts" section of packages/nextjs/package.json
and packages/hardhat/package.json
too? Just so that everything follows same rule...very small thing but lol not sure in future when touch again the scripts sections of packages.json, so that's why trying to get it in this PR 🙌
5a7efa7
to
2c16b7e
Compare
@technophile-04 good point. I've sorted those alphabetical too. Rebased, force-pushed, let's merge that mfer in ;) |
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.
Thanks @schmidsi! Looks great!
Description
Changes root-level commands names to follow the
{package}:{command}
standard. Except some globally important commands:yarn chain
,yarn deploy
,yarn start
.Additional Information
Related Issues
Closes #977
Your ENS/address: ses.eth