-
Notifications
You must be signed in to change notification settings - Fork 14
improve component blueprint for octane #218
base: master
Are you sure you want to change the base?
Conversation
(cherry picked from commit 5c57a58)
(cherry picked from commit 9d721f8)
remove comment Co-authored-by: Chris Krycho <hello@chriskrycho.com> (cherry picked from commit 3e86833)
(cherry picked from commit d152c31)
(cherry picked from commit 02217a6)
(cherry picked from commit 3c59cf8)
(cherry picked from commit 58d6499)
(cherry picked from commit ce84d15)
(cherry picked from commit dc4c154)
@chriskrycho let me know when to rebase |
Thanks, @BryanCrotaz – will ping you as soon as the other maintainers have had a chance to look at #216 and and #217 and therefore we merge them! (I try to practice good PR hygiene on things I maintain: stuff doesn't go in without a review. 😅) |
@BryanCrotaz all right, this is now in need of a merge or rebase—I unfortunately had to touch some of the test files to get things all working again. Once your rebase, though, you should be able to drop a fair bit from this branch. Sorry about the hassle, and thanks again for the contribution! Ping me once you have it working, and we'll get it landed! |
Also, fair warning: I'm working on actually getting all the Renovate-bot-powered dependency updates landed today, so you may just want to wait till those land, or you'll have an obnoxious time with rebase/merge issues from |
#216 deleted all the component blueprints - was that deliberate? |
@BryanCrotaz , it was apparently: |
Yep, intentional precisely so that I wouldn't just end up duplicating your work. Re-adding them here is what we need! |
…still hammering away at merging those other ones; once all the PRs marked |
And we are all caught up! Rebase and let's do this thing! |
@chriskrycho can you see why there's a parsing error in the component test template? I've isolated it to the
|
Oh man! I have been there. Believe it or not, running in Docker may be substantially faster (for Ember stuff in general). It ends up absorbing a lot of the file system operations in RAM before flushing them to disk (only way it can do stuff in a reasonably speedy way), and… the virtual file system ends up being substantially faster than the Windows native file system. Which, you know, is bonkers. But it’s also true. One of us will take a peek at this in the next couple days. I have a confirmed COVID exposure so not sure exactly what my own next few days will look like. 😬 |
blueprints/component-test/qunit-files/__root__/__testType__/__path__/__test__.ts
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,34 @@ | |||
import { expect } from 'chai'; |
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 still wrong—until you replace it with the correct file, stuff is going to be broken. Also, while you're at it, go ahead and remove all the shenanigans around supporting unit tests. As noted on the QUnit test blueprint, we only care here about integration tests, esp. b/c unit tests straight-up don't work with Glimmer components (as it should be!).
To clarify, @chriskrycho am I dropping support for anything except glimmer? |
No, we should support generating Ember components the same as the core blueprints do. We just don’t want to generate unit tests for them. |
My brain is melting. So much undocumented stuff in Ember blueprints. Any idea what the difference between files and native_files is? And any idea why the test for glimmer being present is succeeding in all tests, even the ember classic components ones? |
Fancy pairing on this @chriskrycho ? |
I’m off this week, and spending what OSS time I have chosen to use on getting our docs finally up to date – see typed-ember/ember-cli-typescript#935 – but perhaps next week. |
Anything new here? |
I may be able to help a little in a week or two. And perhaps @jamescdavis might be able to? If not, folks will just have to keep plugging away independently in the meantime. |
🦜 |
I'm trying to get up-to-speed on what's going on with this PR and seeing if there's anything that the community can do to hop in on and get this stable for merge? Looks like a rebase is needed as well as just getting tests passing? Not sure if that's all? |
@BryanCrotaz we need you! If I can help somehow, just let me know. |
So... Any ideas if we will ever merge this on or are we waiting for the Typescriptification of Ember for this? 😋 |
Considering number of changed files in PR, it's age and number of feedback/concerns, does it make sense to split into pieces? Another thought, we may at least update existing files like https://github.com/typed-ember/ember-cli-typescript-blueprints/blob/master/blueprints/model/files/__root__/__path__/__name__.ts in parallel and separately from the (definitely great!) work done here. |
Happy to help out but I reached beyond the end of my blueprint understanding, so I'd just be happy to see my partial work get finished by someone keen |
Did any of this happen? |
Cleaned up from #213