@@ -47,57 +47,61 @@ const InitCommand: any = Command.extend({
4747 commandOptions . skipBower = true ;
4848 }
4949
50- var installBlueprint = new this . tasks . InstallBlueprint ( {
50+ const installBlueprint = new this . tasks . InstallBlueprint ( {
5151 ui : this . ui ,
5252 analytics : this . analytics ,
5353 project : this . project
5454 } ) ;
5555
5656 // needs an explicit check in case it's just 'undefined'
5757 // due to passing of options from 'new' and 'addon'
58+ let gitInit ;
5859 if ( commandOptions . skipGit === false ) {
59- var gitInit = new GitInit ( {
60+ gitInit = new GitInit ( {
6061 ui : this . ui ,
6162 project : this . project
6263 } ) ;
6364 }
6465
66+ let linkCli ;
6567 if ( commandOptions . linkCli ) {
66- var linkCli = new LinkCli ( {
68+ linkCli = new LinkCli ( {
6769 ui : this . ui ,
6870 analytics : this . analytics ,
6971 project : this . project
7072 } ) ;
7173 }
7274
75+ let npmInstall ;
7376 if ( ! commandOptions . skipNpm ) {
74- var npmInstall = new NpmInstall ( {
77+ npmInstall = new NpmInstall ( {
7578 ui : this . ui ,
7679 analytics : this . analytics ,
7780 project : this . project
7881 } ) ;
7982 }
8083
84+ let bowerInstall ;
8185 if ( ! commandOptions . skipBower ) {
82- var bowerInstall = new this . tasks . BowerInstall ( {
86+ bowerInstall = new this . tasks . BowerInstall ( {
8387 ui : this . ui ,
8488 analytics : this . analytics ,
8589 project : this . project
8690 } ) ;
8791 }
8892
89- var project = this . project ;
90- var packageName = commandOptions . name !== '.' && commandOptions . name || project . name ( ) ;
93+ const project = this . project ;
94+ const packageName = commandOptions . name !== '.' && commandOptions . name || project . name ( ) ;
9195
9296 if ( ! packageName ) {
93- var message = 'The `ng ' + this . name + '` command requires a ' +
97+ const message = 'The `ng ' + this . name + '` command requires a ' +
9498 'package.json in current folder with name attribute or a specified name via arguments. ' +
9599 'For more details, use `ng help`.' ;
96100
97101 return Promise . reject ( new SilentError ( message ) ) ;
98102 }
99103
100- var blueprintOpts = {
104+ const blueprintOpts = {
101105 dryRun : commandOptions . dryRun ,
102106 blueprint : commandOptions . blueprint || this . _defaultBlueprint ( ) ,
103107 rawName : packageName ,
0 commit comments