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
[ENHANCEMENT] Use packager commands in CONTRIBUTING.md
and README.md
files in app
and addon
blueprints
#9514
[ENHANCEMENT] Use packager commands in CONTRIBUTING.md
and README.md
files in app
and addon
blueprints
#9514
Conversation
8ab9070
to
6a92252
Compare
Does this issue still exist when using |
Seems like the bug was fixed in Yarn 2, waiting for a backport to Yarn 1. Do we make an explicit assumption or recommendation about which major version of Yarn people will use in their Ember projects? |
6a92252
to
637fd4b
Compare
Windows tests seem to be inexplicably failing after I rebased today. Are they flaky? |
637fd4b
to
de1f61b
Compare
We do not currently support yarn@2, and AFAIK yarn@1 is completely EOL'ed (no bugfixes being backported). |
Is there an RFC to drop yarn support in Ember? It seems we should either support it (and document it) or not, but half support is generally not a great experience. To give a bit more context on this PR: Part of the reason I created it is that telling people to run Putting the known yarn bug aside, this is still true for If our generated documentation says to run So, while I'm sympathetic to the fact that there is a bug in yarn, I would argue that it's a bug in yarn, not a bug on our side. Furthermore, it's a minor UX bug that doesn't cause anything to break. I'm open to the idea that we should drop support for Yarn (though that should be discussed in an RFC rather than here, of course), but I think if we're going to support a |
@rwjblue How would you like to move forward? |
I actually think these changes are good and I've preferred using |
Isn't this PR just documenting scripts that have already been in place in Ember projects for years, though? I'd argue that this choice was already made a long time ago, and we just didn't document it fully. What practical decision do you think still needs to be discussed at this point? |
Putting it another way - do we expect that a realistic possible outcome is that we're going to remove these scripts from package.json? If not, what is the purpose of the RFC? Just discussing whether we should document the default scripts we've been shipping for years? |
The point I'm making is that this PR is effectively saying that the default way we expect people to interact with their app is via yarn scripts, not the |
I would argue that it has been the de facto default for years, but I can see there is disagreement on that. Unfortunately, such an RFC is something I have neither the time nor motivation to write up, so unless someone else is going to volunteer to drive that discussion, this PR appears to be at an impasse. |
An issue in the RFCs repo might be a good start? |
Go for it. |
FWIW, the known yarn bug doesn't even exist on Windows; exiting a yarn script with ctrl-c works perfectly in my experience. So, we're basically holding off on documenting the primary way that most people interact with Ember's default scripts because of a bug that only occurs in one of the possible package managers (that is EOL'd and isn't even the default) on some operating systems/terminal platforms. This really doesn't seem like a good tradeoff to me. |
26d2ea2
to
bfc245a
Compare
@elwayman02 Are you still interested in pursuing this PR? Should we close if not? |
I absolutely think we should still make this change. I've made my case for
it.
…On Thu, Jun 16, 2022, 12:12 AM Bert De Block ***@***.***> wrote:
@elwayman02 <https://github.com/elwayman02> Are you still interested in
pursuing this PR? Should we close if not?
—
Reply to this email directly, view it on GitHub
<#9514 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKDTKQRGHM2S2YRXCYBVUTVPLHVJANCNFSM4323FF4Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There's more to it than just this PR though. Using the |
That sounds like a good follow-up change. We as a community need to start
teaching people how to use our tools in a way that is consistent with
industry standards and move past our history of having to build bespoke
tools for ourselves. NPM/Yarn provide a useful tooling abstraction, and
that is how we should teach it.
Frankly, the "ember" command should be an implementation detail, not the
top-level interface.
…On Thu, Jun 16, 2022, 12:16 AM Bert De Block ***@***.***> wrote:
There's more to it than just this PR though. Using the ember global is
also what's used in the guides etc.
—
Reply to this email directly, view it on GitHub
<#9514 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKDTKSJZ6H44VNXWHHNJL3VPLIGHANCNFSM4323FF4Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I agree, but why not coordinate this via an RFC (issue) as suggested in this thread? |
I have not stood in the way of an RFC for those who believe it's necessary.
However, given the scope of the proposed change, that's not an investment
of time I'm prepared to make personally. It's a pretty straightforward
change, and I've already invested more time justifying it than it was
worth, to be quite honest. If more discussion is needed, I welcome people
to share their thoughts in whatever format they feel passionate about
pursuing.
…On Thu, Jun 16, 2022, 1:48 AM Bert De Block ***@***.***> wrote:
I agree, but why not coordinate this via an RFC (issue) as suggested in
this thread?
I think the learning team would also like to know about / weigh in on this.
—
Reply to this email directly, view it on GitHub
<#9514 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKDTKUNAG5N47TT5GP2X63VPLS47ANCNFSM4323FF4Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
this whole thread feels like a "too many cooks" problem 😅 an RFC for this sort of change isn't worth the time. we can respectfully discuss learning / tradeoffs in this thread (and I think we already have) |
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.
Changes look good to me.
in practice, folks will use the script-runner capabilities of their package-manager more than ember.
(except for maybe ember s).
These are good changes
* `ember test --server` – Runs the test suite in "watch mode" | ||
* `ember try:each` – Runs the test suite against multiple Ember versions | ||
* `<% if (yarn) { %>yarn<% } else { %>npm run<% } %> test:ember` – Runs the test suite on the current Ember version | ||
* `<% if (yarn) { %>yarn<% } else { %>npm run<% } %> test:ember --server` – Runs the test suite in "watch mode" |
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.
The npm
version needs an extra --
for the --server
flag to work.
blueprints/app/files/README.md
Outdated
* `ember test` | ||
* `ember test --server` | ||
* `<% if (yarn) { %>yarn<% } else { %>npm run<% } %> test:ember` | ||
* `<% if (yarn) { %>yarn<% } else { %>npm run<% } %> test:ember --server` |
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.
The npm
version needs an extra --
for the --server
flag to work.
I've asked on Discord if the learning team would be okay with merging these changes: |
Hello! Thanks for raising this. I consider this PR to be currently blocked, unless @rwjblue says otherwise. The core teams have a consensus-based decision making model, which we should lean on here to guide the next step. An RFC would be beneficial, even if it was not required in the end. I can try to find a volunteer to write it, and therefore unblock this PR. This may feel like a small change but it does ripple through guides and API docs. |
To preface, I say this with all the love of Ember in the world.... This is a giant problem with this community. We cannot be doing RFCs for every little basic-AF change. The fact that this RFC has already been open for a year and had more discussion than an RFC would have is already a crime against humanity. The resistance to basic contributions here is super alienating towards contributors, and is likely a big part of why our contributor count is so low. |
Good news, there are 3 volunteers to help with an RFC. Progress will be tracked in emberjs/rfcs#827 and I've set a goal of 2 weeks to have a rough draft. We have some rules of thumb about when something may need an RFC. They are outlined in the RFCs readme. The third bullet point seems relevant. I understand the frustrations with the RFC process and do what I can to make it easier/faster to participate. |
Just an update - there's a draft of the RFC and it will be PR'd soon by the authors. |
@jenweber Would you be okay with already getting these changes in even though the RFC is still open? It seems everyone agrees we should do this? |
Good question. I don’t think it’s my call to make though. Let me follow up with the RFC authors and see if we can get those edits in ASAP |
CONTRIBUTING.md
and README.md
files in app
and addon
blueprints
CONTRIBUTING.md
and README.md
files in app
and addon
blueprintsCONTRIBUTING.md
and README.md
files in app
and addon
blueprints
@elwayman02 any chance you have time to rebase? looks like tests are failing 🙈 |
* Updates all commands to match the scripts written to `package.json` by the blueprint * Aligns the format for interpolating yarn vs npm to reduce duplication and simplify future updates
2162c1a
to
0912d02
Compare
@NullVoxPopuli I rebased, but FYI there will probably need to be a follow-up in some files to account for pnpm now, where previously the output was the same in all cases because it was doing |
package.json
by the blueprint