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

Added babel to addons package.json dependencies by default #3564

Merged
merged 1 commit into from
Mar 18, 2015

Conversation

jayphelps
Copy link
Member

From discussions over at #3556, I don't see any real harm in giving this to addons by default since they don't have to use babel syntax and if they truly care, they can simply remove it from them package.json, just like many do for content-security-policy, among others. Good defaults--that's the "ember way"

I think creating options/flags is overcomplicating things. At least as a first pass. If someone wants to add a flag to exclude it, that's cool sugar.

*I would love to write a test for this, but would require some decent refactoring and/or using mock-fs or something. The current addon package.json isn't being tested, I vote get this out then I have cycles to pair with Robert or Stef to refactor so we can test these sort of things, if they'd like.

@rwjblue
Copy link
Member

rwjblue commented Mar 18, 2015

I'm happy with this, but leaving ember-cli-babel in both deps and devDeps generally triggers a warning by NPM.

I think that if we remove it from devDeps, the dummy app will still work as expected, can you confirm (then fix)?

@jayphelps
Copy link
Member Author

@rwjblue confirmed. Dummy still gets babel when in deps-only. Made the change. 👍

@DougPuchalski
Copy link

Thanks @jayphelps

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

3 participants