const _ = require('lodash');
const fountain = require('fountain-generator');

module.exports = fountain.Base.extend({
  prompting() {
    this.fountainPrompting();
  },

  configuring: {
    pkg() {
      var pkg = {
        devDependencies: {
          tslint: '^3.2.1',
          typescript: '^1.7.5'
        }
      };

      if (this.props.modules === 'webpack') {
        _.merge(pkg, {devDependencies: {'tslint-loader': '^2.1.0'}});
      } else {
        _.merge(pkg, {devDependencies: {'gulp-tslint': '^4.2.2'}});
      }

      this.mergeJson('package.json', pkg);
    },

    tslint() {
      this.copyTemplate('conf/tslint.conf.json', 'tslint.json');
    }
  },

  writing: {
    wireing() {
      if (this.props.modules === 'webpack') {
        this.replaceInFileWithTemplate(
          'conf/webpack.conf.js',
          'conf/webpack.conf.js',
          / {2}module: \{/
        );
        this.replaceInFileWithTemplate(
          'conf/webpack.conf.js',
          'conf/webpack-test.conf.js',
          / {2}module: \{/
        );
      } else if (this.props.modules === 'systemjs') {
        this.copyTemplate(
          'gulp_tasks/scripts-full.js',
          'gulp_tasks/scripts.js'
        );
      } else if (this.props.modules === 'inject') {
        this.replaceInFileWithTemplate(
          'gulp_tasks/scripts-require.js',
          'gulp_tasks/scripts.js',
          /const gulp = require\('gulp'\);/
        );
        this.replaceInFileWithTemplate(
          'gulp_tasks/scripts-stream.js',
          'gulp_tasks/scripts.js',
          / {2}return gulp\.src[^\n]*/
        );
      }
    },

    tsConf() {
      if (this.props.modules !== 'systemjs') {
        this.copyTemplate(
          'conf/ts.conf.json',
          'conf/ts.conf.json'
        );
      }
    },

    typings() {
      this.copyTemplate('typings.json', 'typings.json', {
        addToTsd: this.env.addToTsd
      });
    }
  },

  installing() {
    this.runInstall('typings');
  }
});

@@ -202,11 +202,13 @@
     
-var
+const
  pkg

Replace var by const