Skip to content

Instantly share code, notes, and snippets.

@ultimatemonty
Created July 24, 2016 17:28
Show Gist options
  • Save ultimatemonty/ea9d9b672d7d34137d6a145ce05ecf57 to your computer and use it in GitHub Desktop.
Save ultimatemonty/ea9d9b672d7d34137d6a145ce05ecf57 to your computer and use it in GitHub Desktop.
importing blueprints pre Ember 2.x
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