@@ -6,6 +6,7 @@ var SilentError = require('silent-error');
6
6
var validProjectName = require ( 'ember-cli/lib/utilities/valid-project-name' ) ;
7
7
var normalizeBlueprint = require ( 'ember-cli/lib/utilities/normalize-blueprint-option' ) ;
8
8
var GitInit = require ( '../tasks/git-init' ) ;
9
+ var LinkCli = require ( '../tasks/link-cli' ) ;
9
10
10
11
module . exports = Command . extend ( {
11
12
name : 'init' ,
@@ -17,6 +18,7 @@ module.exports = Command.extend({
17
18
{ name : 'dry-run' , type : Boolean , default : false , aliases : [ 'd' ] } ,
18
19
{ name : 'verbose' , type : Boolean , default : false , aliases : [ 'v' ] } ,
19
20
{ name : 'blueprint' , type : String , aliases : [ 'b' ] } ,
21
+ { name : 'link-cli' , type : Boolean , default : false , aliases : [ 'lc' ] } ,
20
22
{ name : 'skip-npm' , type : Boolean , default : false , aliases : [ 'sn' ] } ,
21
23
{ name : 'skip-bower' , type : Boolean , default : true , aliases : [ 'sb' ] } ,
22
24
{ name : 'name' , type : String , default : '' , aliases : [ 'n' ] } ,
@@ -57,6 +59,14 @@ module.exports = Command.extend({
57
59
} ) ;
58
60
}
59
61
62
+ if ( commandOptions . linkCli ) {
63
+ var linkCli = new LinkCli ( {
64
+ ui : this . ui ,
65
+ analytics : this . analytics ,
66
+ project : this . project
67
+ } ) ;
68
+ }
69
+
60
70
if ( ! commandOptions . skipNpm ) {
61
71
var npmInstall = new this . tasks . NpmInstall ( {
62
72
ui : this . ui ,
@@ -109,6 +119,14 @@ module.exports = Command.extend({
109
119
return gitInit . run ( commandOptions , rawArgs ) ;
110
120
}
111
121
} . bind ( this ) )
122
+ . then ( function ( ) {
123
+ if ( commandOptions . linkCli ) {
124
+ return linkCli . run ( {
125
+ verbose : commandOptions . verbose ,
126
+ optional : false
127
+ } ) ;
128
+ }
129
+ } )
112
130
. then ( function ( ) {
113
131
if ( ! commandOptions . skipNpm ) {
114
132
return npmInstall . run ( {
0 commit comments