Skip to content
This repository has been archived by the owner on Dec 5, 2017. It is now read-only.

Commit

Permalink
use a blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoow committed Sep 8, 2014
1 parent 79336ba commit f76bc6d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
4 changes: 0 additions & 4 deletions .bowerrc

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
@@ -1,2 +1 @@
.DS_Store
bower_components
10 changes: 10 additions & 0 deletions blueprints/ember-cli-simple-auth-oauth2/index.js
@@ -0,0 +1,10 @@
module.exports = {
normalizeEntityName: function() {
},

afterInstall: function() {
var context = this;

return this.addBowerPackageToProject('ember-simple-auth', '0.6.4');
}
};
6 changes: 0 additions & 6 deletions bower.json

This file was deleted.

16 changes: 11 additions & 5 deletions index.js
@@ -1,14 +1,20 @@
module.exports = {
name: 'ember-cli-simple-auth-oauth2',
name: 'Ember CLI Simple Auth OAuth 2.0',

blueprintsPath: function() {
return path.join(__dirname, 'blueprints');
},

included: function(app) {
this._super.included(app);

this.app.import('bower_components/ember-simple-auth/simple-auth-oauth2.amd.js', {
this.app.import(app.bowerDirectory + '/ember-simple-auth/simple-auth.amd.js', {
exports: {
'simple-auth-oauth2/authenticators/oauth2': ['default'],
'simple-auth-oauth2/authorizers/oauth2': ['default'],
'simple-auth-oauth2/initializer': ['default']
'simple-auth': [
'authenticators/oauth2',
'authorizers/oauth2',
'initializer'
]
}
});
}
Expand Down

0 comments on commit f76bc6d

Please sign in to comment.