 chalk       = require 'chalk'
 yosay       = require 'yosay'
 generators  = require 'yeoman-generator'
+_s          = require 'underscore.string'
 
 module.exports = generators.Base.extend
 
   initializing : ->
+
+
+  install : ->
+
+    @installDependencies()
 
 
   prompting : ->


    bower : ->

      @fs.copy @templatePath('_bower.json'), @destinationPath('bower.json')
      @fs.copy @templatePath('bowerrc'),     @destinationPath('.bowerrc')


    npm : ->

      @fs.copyTpl(
        @templatePath('_package.json'), @destinationPath('package.json'),
        { appName: @props.appName }
      )



      {
        type: 'input'
        name: 'appName'
        message: 'Enter your app name'
        default : this.appname
      }
      {
        type: 'input'
        name: 'appWidth'
        message: 'Enter desired canvas width'
        default : 640
      }
      {
        type: 'input'
        name: 'appHeight'
        message: 'Enter desired canvas height'
        default : 480
      }
      {
        type: 'input'
        name: 'phaserVersion'
        message: 'Which Phaser version do you want to use?'
        default : '^2.4.2'
      }
    ], (props) =>
      props.appName = _s.slugify props.appName
      @props = props
      done()


  configuring : ->
