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

module.exports = generators.Base.extend({

  constructor: function () {
    generators.Base.apply(this, arguments);
  },

  prompting: function () {
    var done = this.async();
    this.prompt({
      type    : 'input',
      name    : 'name',
      message : 'Your Rjanko project name',
      default : this.appname
    }, function (answers) {
      this.log(answers.name);
      done();
    }.bind(this));
  },

  writing: function () {
    var vars = { title: this.appname };
    this.copy('.babelrc');
    this.copy('nginx.dev.conf');
    this.template('package.json', vars);
    this.copy('Procfile.dev');
    this.copy('webpack.config.client.js');
    this.copy('webpack.config.js');
    this.copy('webpack.config.server.js');
    this.copy('src/client.js');
    this.copy('src/client.styl');
    this.copy('src/server.js');
  },

  install: function() {
    this.npmInstall();
  }

});

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

module.exports = generators.Base.extend({

  constructor: function () {
    generators.Base.apply(this, arguments);
  },

  prompting: function () {
    var done = this.async();
    this.prompt({
      type    : 'input',
      name    : 'name',
      message : 'Your Rjanko project name',
      default : this.appname
    }, function (answers) {
      this.log(answers.name);
      done();
    }.bind(this));
  },

  writing: function () {
    var vars = { title: this.appname };
    this.copy('.babelrc');
    this.copy('nginx.dev.conf');
    this.template('package.json', vars);
    this.copy('Procfile.dev');
    this.copy('webpack.config.client.js');
    this.copy('webpack.config.js');
    this.copy('webpack.config.server.js');
    this.copy('src/client.js');
    this.copy('src/models.js');
    this.copy('src/modelsDb.js');
    this.copy('src/client.styl');
    this.copy('src/server.js');
  },

  install: function() {
    this.npmInstall();
  }

});

Add test models to generator.
Add test models to generator.
