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

Make all environments available from modules. #1820

Merged
merged 1 commit into from
Aug 30, 2014

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Aug 30, 2014

This is another step towards #1750. Also, will be helpful for fixing #1793 (more to come on that front in a future PR).

fs.mkdirSync(outputDir);
}

['test', 'development', 'production'].forEach(function(env) {
Copy link
Member

Choose a reason for hiding this comment

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

There seems to be a lot of requests for custom environment support(ex: I use a staging environment).

This should be extendable to allow users to define other environments

Copy link
Member

Choose a reason for hiding this comment

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

It could be added to the project's config since it's being passed in to the options

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that is the plan.

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed hard coded environments. Anyone using the current mechanism for adding custom environments (passing vendorFiles to EmberApp upon instantiation) will have things "just work".

@rwjblue rwjblue force-pushed the make-all-environments-available branch from eea7fe1 to f9de2ce Compare August 30, 2014 23:28
rwjblue added a commit that referenced this pull request Aug 30, 2014
Make all environments available from modules.
@rwjblue rwjblue merged commit ddfe13e into ember-cli:master Aug 30, 2014
@rwjblue rwjblue deleted the make-all-environments-available branch August 30, 2014 23:38
@rwjblue
Copy link
Member Author

rwjblue commented Aug 31, 2014

This was changed in #1827 to only export the current environment and test environment (if testing is enabled). This is to ensure we do not leak environment information (for example you wouldn't want development/staging/etc environment info in a production build).

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