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

Update addon for FastBoot 1.0 #112

Merged
merged 1 commit into from
Jun 15, 2017

Conversation

kratiahuja
Copy link
Contributor

This change wraps the browser specific libraries with if (typeof FastBoot === 'undefined') {...} check so that they are eval'd and run in browser but only eval'd and skipped in Node.

This prepares the addon for the upcoming FastBoot 1.0. See ember-fastboot/ember-cli-fastboot#387

cc: @tim-evans

}

if (debugMode) {
app.import('vendor/plupload/moxie.js');

Choose a reason for hiding this comment

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

@kratiahuja Can I ask why this is changed to the vendor/ folder instead of bower_components folder? Is this something to do with app.import specifically? I've noticed in a few addons that vendor and node_modules/bower_components are almost interchangeable? Does Ember CLI treat them all the same during build or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the path to your file. Since we needed to wrap the file before importing it, we did it in treeForVendor and merged it there so it will be in the vendor trees.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If you're going to change the directory, could you also change Moxie.swf?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tim-evans happy to change, but curious to understand why you want to chain for Moxie.swf too since that can be imported via bower.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Consistency, but it doesn't matter :)

@tim-evans tim-evans merged commit 8c5afb5 into knownasilya:master Jun 15, 2017
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