We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78005d3 commit eb83cf3Copy full SHA for eb83cf3
addon/ng2/commands/generate.ts
@@ -0,0 +1,17 @@
1
+import * as EmberGenerateCommand from 'ember-cli/lib/commands/generate';
2
+import * as path from 'path';
3
+
4
5
+const GenerateCommand = EmberGenerateCommand.extend({
6
+ name: 'generate',
7
8
+ lookupBlueprint: function(name) {
9
+ return Blueprint.lookup(name, {
10
+ paths: [path.join(__dirname, '..', 'blueprints')]
11
+ });
12
+ },
13
+});
14
15
16
+module.exports = GenerateCommand;
17
+module.exports.overrideCore = true;
addon/ng2/index.js
@@ -6,6 +6,7 @@ module.exports = {
includedCommands: function() {
return {
'new' : require('./commands/new'),
+ 'generate' : require('./commands/generate.ts'),
'init' : require('./commands/init'),
'test' : require('./commands/test'),
'e2e' : require('./commands/e2e'),
0 commit comments