Created
July 24, 2016 17:28
-
-
Save ultimatemonty/ea9d9b672d7d34137d6a145ce05ecf57 to your computer and use it in GitHub Desktop.
importing blueprints pre Ember 2.x
This file contains hidden or 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
var Blueprint = require('ember-cli/lib/models/blueprint'); | |
var blueprints = [ 'route', 'route-test', 'component', 'component-test' ].map(function(name) { | |
return Blueprint.lookup(name); | |
}); | |
| |
/*jshint node:true*/ | |
module.exports = { | |
description: 'Generates a glimmer-component style route', | |
| |
beforeInstall: function(options) { | |
blueprints.forEach(function(blueprint) { | |
blueprint.install(options); | |
}); | |
}, | |
| |
beforeUninstall: function(options) { | |
blueprints.forEach(function(blueprint) { | |
blueprint.uninstall(options); | |
}); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment