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

Keep --output-path up to date from build and serve commands. #1034

Merged
merged 1 commit into from
Jun 15, 2014

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jun 14, 2014

  • Adds ability to specify output-path for ember server command.
  • Removes usage of broccoli-export-tree in favor of maintaining a single set of logic in the Builder model. (previously we had logic in both the Build task and loadBrocfile utility function to keep the output directory in sync).

Closes #1031.

@rwjblue
Copy link
Member Author

rwjblue commented Jun 15, 2014

I've been in the position lately to be running around 5-10 interdependent apps, and it would be VERY nice to be able to link them instead of adding an exportTree to the Brocfile.js.

@stefanpenner - Pending your review + testing, but I'd like to see this in the next release if it passes muster.

@stefanpenner
Copy link
Contributor

ya, link is wonderful :)

Especially thanks to @krisselden's broccoli-sane-watcher which reduced idle CPU, next big win will by restoring broccoli's perfs

var promises = [];
var entries = fs.readdirSync(this.outputPath);

for (var i = 0, l = entries.length, path = entries[i]; i < l; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

leave a quick comment, why we don't just rimraf the whole dir. (e.g. symlinks)

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool, will do.

Copy link
Member Author

Choose a reason for hiding this comment

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

Wrote a function comment explaining what was going on here.

@stefanpenner
Copy link
Contributor

left one comment, otherwise LGTM

* Adds ability to specify output-path for `ember server` command.
* Removes usage of `broccoli-export-tree` in favor of maintaining a
  single set of logic in the `Builder` model. (previously we had logic
  in both the `Build` task and `loadBrocfile` utility function to keep
  the output directory in sync)
rwjblue added a commit that referenced this pull request Jun 15, 2014
Keep --output-path up to date from build and serve commands.
@rwjblue rwjblue merged commit 616655c into ember-cli:master Jun 15, 2014
@rwjblue rwjblue deleted the live-output-to-dist branch June 15, 2014 22:08
@stefanpenner
Copy link
Contributor

:)

@mansona
Copy link
Member

mansona commented Jun 19, 2014

Eh.. awesome! Does this fix this problem then? #16 so now it's going to be quite easy to use ember server with node-webkit

@stefanpenner
Copy link
Contributor

@mansona yup!

jakecraige added a commit to poetic/ember-cli-cordova that referenced this pull request Jun 23, 2014
jakecraige added a commit to poetic/ember-cli-cordova that referenced this pull request Jul 4, 2014
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.

configurable/symlinkable output directory
3 participants