Skip to content

[WIP]: Prepare fastboot addon for Fasboot 1.0 release#288

Closed
kratiahuja wants to merge 2 commits intoember-fastboot:masterfrom
kratiahuja:build-refactor
Closed

[WIP]: Prepare fastboot addon for Fasboot 1.0 release#288
kratiahuja wants to merge 2 commits intoember-fastboot:masterfrom
kratiahuja:build-refactor

Conversation

@kratiahuja
Copy link
Contributor

@kratiahuja kratiahuja commented Nov 10, 2016

In order to unblock Fastboot 1.0 release, we want to make the fastboot build performant. We will achieve this by creating additive assets (see this issue for details). This PR primarily addresses some of the work already.

This PR primarily addresses the following issues:

TODO:

  • Cleanup and tidy this work
  • Add more comments to explain what this PR is doing
  • Make fastboot app work using ember-serve. Corresponding issue.
  • Fix tests once ember-cli changes land and this issue is fixed.
  • Update documentation
  • Kill ember fastboot command

cc: @tomdale @stefanpenner @rwjblue @kellyselden @ryanone @danmcclain @arjansingh @ryanone @masonwan @kristoferbaxter

This PR primarily addresses the following issues:
1. Double fastboot builds [issue](#264). Corresponding ember-cli changes are in this [PR](ember-cli/ember-cli#6395)
2. Removes the monkey patching introduced with fastboot build. Related [issue](#276)
3. Updates generated package.json to take in an array of app files (containing app.js and app-fastboot.js). Addresses this [issue](#270)

Once the ember-cli [PR](ember-cli/ember-cli#6395) and this [issue](#274) is fixed, we can kill the `ember fastboot` command itself.
@kratiahuja
Copy link
Contributor Author

Here is a gist of how this can run with fastboot currently.

var patchEmberApp = require('./lib/ext/patch-ember-app');
var fastbootAppModule = require('./lib/utilities/fastboot-app-module');

var filterInitializers = require('fastboot-filter-initializers');
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this dependency needed still?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, this was the dirty ember-app private patching that we was causing issues and perf problems.

Copy link
Contributor

Choose a reason for hiding this comment

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

I was actually referring to fastboot-filter-initializers :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Aah no i need to remove that.

@kratiahuja
Copy link
Contributor Author

Going to close this since there is no clear decision yet on how we want to approach the build problem. We can reopen this whenever a decision is made.

@kratiahuja kratiahuja closed this Dec 29, 2016
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.

EmberApp requires defaults as first argument, otherwise: JavaScript heap out of memory

2 participants