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

Improved test and prod env detection #38

Merged
merged 2 commits into from
Nov 9, 2017
Merged

Improved test and prod env detection #38

merged 2 commits into from
Nov 9, 2017

Conversation

SergeAstapov
Copy link
Collaborator

Commands ember test, ember t and ember build -prod do not specify environment name explicitly.
Do our best to identify test and prod env in init hook of the addon.

Copy link
Collaborator

@jasonmit jasonmit left a comment

Choose a reason for hiding this comment

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

Should either adjust our Node target or remove Array.proto.includes changes

@jasonmit
Copy link
Collaborator

jasonmit commented Nov 6, 2017

Other than the CI/Node target, LGTM.

@SergeAstapov
Copy link
Collaborator Author

Ah, good point - forgot that Node 4 does not have Array.proto.includes. Replaced with indexOf.
Would you suggest a better way?

@SergeAstapov SergeAstapov merged commit a075fce into fivetanley:master Nov 9, 2017
@SergeAstapov SergeAstapov deleted the improve-env-detection branch November 9, 2017 08:50
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.

2 participants