Skip to content
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

Install ec-typescript as a dependency for addons #623

Merged
merged 3 commits into from
Aug 27, 2019

Conversation

ro0gr
Copy link
Contributor

@ro0gr ro0gr commented Mar 17, 2019

Seems like ember-cli-typescript isn't supposed to work when installed as a dev dep to the host addon. I've just got a blank screen due to missing assets in my case.

In the build output I've seen a warning:

ember-cli-typescript should be included in your dependencies, not devDependencies

which was great cause it finally led me to a fix. But the question is whether we should convert it to error? Seems like nothing works anyways with ec-ts in the addon dev deps..

Also I've found I just wasn't careful enough, cause there are special installation instructions for addon case:

ember install ember-cli-typescript --save

However, I feel it still can be better if we take care of this installation difference in the blueprint. Which would to allow install this addon by simply running ember install ember-cli-typescript.

At the moment I'd like to know if the feature makes sense here?

@chriskrycho
Copy link
Member

We've been EmberConf-ing and traveling back from that; one of us will get back to you in the next few (work) days!

@chriskrycho
Copy link
Member

@ro0gr this seems like a great idea, do you mind rebasing this and we'll iterate forward with you on it?

@ro0gr
Copy link
Contributor Author

ro0gr commented Apr 11, 2019

@chriskrycho sure, will do.

@mike-north

This comment has been minimized.

@ro0gr

This comment has been minimized.

@chriskrycho

This comment has been minimized.

@ro0gr ro0gr force-pushed the deps-for-addon branch 2 times, most recently from 9c3c768 to 560b565 Compare June 11, 2019 22:05
@ro0gr ro0gr changed the title [wip] Install ec-typescript as a dependecy for addons Install ec-typescript as a dependecy for addons Jun 11, 2019
@ro0gr
Copy link
Contributor Author

ro0gr commented Jun 11, 2019

I've just updated docs and tests, rebased and squashed.

According to Azure there is a test failure:

$ mocha --recursive js/tests -R xunit -O output=node-tests.xml
indexDeclarations is not defined (Error in blueprint template: /home/vsts/work/1/s/node_modules/ember-cli-typescript/blueprint-files/ember-cli-typescript/types/app_name/index.d.ts)
ReferenceError: indexDeclarations is not defined (Error in blueprint template: /home/vsts/work/1/s/node_modules/ember-cli-typescript/blueprint-files/ember-cli-typescript/types/app_name/index.d.ts)

But that doesn't seem like related one. At least I can see the same failure on a sibling PRs

README.md Show resolved Hide resolved
@chriskrycho
Copy link
Member

Thanks again for doing this! On Wednesday (after we've finally fully cleared our backlog of built-up PRs), would you mind rebasing this? We'll coordinate with you to get it polished and integrated! Sorry about the delay. 😅


```sh
ember install ember-cli-typescript@latest
```

### In addons

To work properly, Ember addons must declare this library as a `dependency`, not a `devDependency`. **This is a *change* from ember-cli-typescript v1.**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as in the README.

@chriskrycho chriskrycho merged commit 5ecb154 into typed-ember:master Aug 27, 2019
@ro0gr ro0gr mentioned this pull request Oct 2, 2019
@jamescdavis jamescdavis changed the title Install ec-typescript as a dependecy for addons Install ec-typescript as a dependency for addons Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants