-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from kaliber5/prepare-fastboot-1.0
Prepare for upcoming breaking changes in FastBoot 1.0
- Loading branch information
Showing
10 changed files
with
41 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
language: node_js | ||
node_js: | ||
- "4" | ||
- "6" | ||
|
||
sudo: false | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import ResponsiveImage from '../services/responsive-image'; | ||
import Ember from 'ember'; | ||
|
||
export function initialize(/* appInstance */) { | ||
if (typeof FastBoot === 'undefined') { | ||
let meta = JSON.parse(Ember.$('#ember_responsive_image_meta').text()); | ||
ResponsiveImage.reopen({ | ||
meta | ||
}); | ||
} | ||
} | ||
|
||
export default { | ||
name: 'responsive-meta', | ||
initialize | ||
}; |
2 changes: 1 addition & 1 deletion
2
...e-initializers/browser/responsive-meta.js → app/instance-initializers/responsive-meta.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { default, initialize } from 'ember-responsive-image/instance-initializers/browser/responsive-meta'; | ||
export { default, initialize } from 'ember-responsive-image/instance-initializers/responsive-meta'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2302,7 +2302,7 @@ [email protected]: | |
chalk "^1.1.3" | ||
fastboot "^1.0.0-rc.3" | ||
|
||
[email protected], fastboot-filter-initializers@^0.0.2: | ||
[email protected]: | ||
version "0.0.2" | ||
resolved "https://registry.yarnpkg.com/fastboot-filter-initializers/-/fastboot-filter-initializers-0.0.2.tgz#67aa9e8b22ca4b0e6a244f2450fd1cc6befa45e7" | ||
dependencies: | ||
|