-
Notifications
You must be signed in to change notification settings - Fork 99
Initial MU support #199
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
Initial MU support #199
Conversation
Tests are exploding on master, too — looks like we're getting type conflicts with ember-try. |
@@ -32,7 +32,10 @@ module.exports = { | |||
let inRepoAddons = (this.project.pkg['ember-addon'] || {}).paths || []; | |||
let hasMirage = 'ember-cli-mirage' in (this.project.pkg.devDependencies || {}); | |||
let isAddon = this.project.isEmberCLIAddon(); | |||
let includes = ['app', isAddon && 'addon', 'tests', 'types'].concat(inRepoAddons).filter(Boolean); | |||
let isMU = this._detectMU(); |
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.
does javascript support unicode for variables? isμ
?
I actually just looked up upper case mu/μ, and it's pretty boring. (capital M). lame.
I've been testing out this branch, couple things I've noticed (Not sure if pre-existing or not) I started with deleting tmp and dist, just in case :-)
though, it could also be that the master version of ember-cli is broken.
|
@NullVoxPopuli Here's the app I was testing this all out with: dfreeman/typescript-mu-app@9b78ad6...master — I haven't been able to reproduce any of what you're describing with that, so I'm curious whether the difference is in the project or in the environment. I did push one additional commit to the |
@dfreeman interesting. I'm using this app: https://github.com/NullVoxPopuli/emberclear Your diff was pretty helpful. I managed to find some differences between our apps, and made some updates here: NullVoxPopuli/emberclear@f3c8172 everything seems to work now e-c-ts-wise :-) Thanks a ton!! |
Glad to hear that solved it! Looking at your diff, I suspect |
been using this for a while. still good! |
Actually, I'm getting an infinite tsc loop of errors printing to the console now. hmm |
@NullVoxPopuli rebased off master, which should make things happy with 2.9 now |
yeah, this was discovered in the #st-module-unification channel on slack yesterday or Saturday, I think.
Thanks, @dfreeman !! you are the best!!! Also, I should probably follow master as well for bug fixes and such so I can test things more thoroughly. |
Just occurred to me I should leave this branch around for a while until we have a release out and anyone relying on it can switch over... 😬 |
@dfreeman should we delete |
will support for routes, components etc be added to in future ? |
@championswimmer if you're talking about |
Fixes #198. Note that there will almost certainly be follow-on work as things evolve, particularly in the addon space. If we're lucky, Babel 7 will land soon and we'll have a lot less to worry about 😉
This PR includes:
ember g ember-cli-typescript
support for app and addon projectsIt does not include:
tsconfig
support forimport foo from 'addon-root';
(not actually clear whether/how that works with MU)The vast majority of the changes here are updates to the default blueprint and the addition of test coverage for MU scenarios. The meat of the change, in the incremental compiler and
ts:precompile
command, only constitutes a couple dozen lines of diff total.Given that, I believe this is a pretty low-risk change, and I think it could be nice to try and include in a beta before 1.3.0 is stable, but if we'd rather hold off I can see the argument for that. @chriskrycho @dwickern @jamescdavis thoughts?