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

Change the build process to build all targets at once #374

Merged
merged 1 commit into from
Jun 3, 2015

Conversation

teddyzeenny
Copy link
Contributor

Previously each build could target only one output at a time. You would need to decide what you're targeting before calling the build/serve commands. We also had to use environment variables to set
the type of dist.

For example, to build for Chrome, you would need to do:

EMBER_DIST=chrome ember build --output-path dist_chrome/panes

The build output would end up in dist_chrome. The Firefox targetted build would end up in dist_firefox.. etc.

This commit changes the entire concept from one build per target to one build that targets everything. We now only need to call:

ember build

to build all the outputs inside the dist directory. The dist directory will contain chrome, firefox, websocket, bookmarklet directories. Build time takes almost the same time to build all outputs because the difference between them is very minor.

This is possible thanks to @joliss who started the work on this and has been advising me throughout my work on this.

@teddyzeenny teddyzeenny force-pushed the new-build-setup branch 2 times, most recently from ccf41f0 to 2f6e208 Compare June 3, 2015 13:09
Previously each build could target only one output at a time.
You would need to decide what you're targeting before calling the
build/serve commands. We also had to use environment variables to set
the type of dist.

For example, to build for Chrome, you would need to do:

`EMBER_DIST=chrome ember build --output-path dist_chrome/panes`

The build output would end up in `dist_chrome`. The Firefox targetted build
would end up in `dist_firefox`.. etc.

This commit changes the entire concept from one build per target to one
build that targets everything. We now only need to call:

`ember build`

to build all the outputs inside the `dist` directory. The `dist`
directory will contain `chrome`, `firefox`, `websocket`, `bookmarklet`
directories. Build time takes almost the same time to build all outputs
because the difference between them is very minor.
teddyzeenny added a commit that referenced this pull request Jun 3, 2015
Change the build process to build all targets at once
@teddyzeenny teddyzeenny merged commit c6a4efc into emberjs:master Jun 3, 2015
@teddyzeenny teddyzeenny deleted the new-build-setup branch June 3, 2015 14:32
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

1 participant