-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add-on uses blueprint
addBowerPackageToProject()
hook to add ed as …
…bower dep instead of including a pre-built version
- Loading branch information
Showing
4 changed files
with
44 additions
and
30 deletions.
There are no files selected for viewing
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,13 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
normalizeEntityName: function() { | ||
// this prevents an error when the entityName is | ||
// not specified (since that doesn't actually matter | ||
// to us | ||
}, | ||
|
||
afterInstall: function() { | ||
return this.addBowerPackageToProject('ember-data', '1.0.0-beta.9'); | ||
} | ||
}; |
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,26 @@ | ||
'use strict'; | ||
|
||
var path = require('path'); | ||
|
||
module.exports = { | ||
name: 'ember-data', | ||
blueprintsPath: function() { | ||
return path.join(__dirname, 'blueprints'); | ||
}, | ||
included: function(app) { | ||
this._super.included(app); | ||
|
||
var options = { | ||
exports: { | ||
'ember-data': [ | ||
'default' | ||
] | ||
} | ||
}; | ||
|
||
this.app.import({ | ||
development: app.bowerDirectory + '/ember-data/ember-data.js', | ||
production: app.bowerDirectory + '/ember-data/ember-data.prod.js' | ||
}, options); | ||
} | ||
}; |
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