'use strict';
var generators = require('yeoman-generator');

module.exports = generators.Base.extend({
  constructor: function () {
    generators.Base.apply(this, arguments);

    this.option('skip-install', {
      desc: 'Skip installing dependencies',
      type: Boolean
    });
  },

  prompting: function () {
    var prompts = [{
      name: 'babel',
      type: 'confirm',
      message: 'Compile your JS with Babel',
      when: this.options.babel === undefined
    }, {
      name: 'uploading',
      type: 'list',
      message: 'How do you want to upload your site?',
      choices: ['Amazon S3', 'Rsync', 'Github Pages', 'None'],
      store: true
    }];

    return this.prompt(prompts).then(function (props) {
      // To access props later use this.props.someAnswer;
      this.props = props;
    }.bind(this));
  },

  default: function () {
    this.composeWith('jekyllized:gulp', {
      options: {
        uploading: this.props.uploading,
        babel: this.props.babel
      }
    }, {
      local: require.resolve('generator-statisk/generators/gulp')
    });
  },

  install: function () {
    this.installDependencies({
      bower: false,
      skipInstall: this.options['skip-install']
    });
    this.spawnCommand('bundle', ['install', '--quiet']);
  }
});

@@ -52,16 +52,46 @@
 rator');
+%0Avar chalk = require('chalk');
 %0A%0Amodule
@@ -200,16 +200,153 @@
 ents);%0A%0A
+    this.option('skip-install-message', %7B%0A      desc: 'Skip the post-install message',%0A      type: Boolean,%0A      default: true%0A    %7D);%0A%0A
     this
@@ -1325,16 +1325,73 @@
  false,%0A
+      skipMessage: this.options%5B'skip-install-message'%5D,%0A
       sk
@@ -1495,16 +1495,299 @@
 iet'%5D);%0A
+  %7D,%0A%0A  end: function () %7B%0A    var skipInstallMessage =%0A      '%5CnPlease run ' + chalk.blue('npm install') + ' and ' +%0A      chalk.blue('bundle install') + ' to install dependencies%5Cn';%0A%0A    if (this.options%5B'skip-install'%5D) %7B%0A      this.log(skipInstallMessage);%0A      return;%0A    %7D%0A 
   %7D%0A%7D);%0A

Add skip install message