<commit_before>const fountain = require('fountain-generator');
const webpackConf = require('./conf');

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

  configuring: {
    package() {
      const pkg = {
        devDependencies: {
          'webpack': '^v2.1.0-beta.3',
          'babel-loader': '^6.2.0',
          'html-webpack-plugin': '^1.7.0',
          'style-loader': '^0.13.0',
          'css-loader': '^0.23.1',
          'postcss-loader': '^0.8.0',
          'autoprefixer': '^6.2.2'
        }
      };

      if (this.props.framework === 'react') {
        Object.assign(pkg.devDependencies, {
          'webpack-dev-middleware': '^1.4.0',
          'webpack-hot-middleware': '^2.6.0',
          'react-hot-loader': '^1.3.0',
          'babel-preset-react': '^6.1.18'
        });
      }

      if (this.props.framework === 'angular1') {
        Object.assign(pkg.devDependencies, {
          'ng-annotate-loader': '^0.0.10'<commit_msg>webpack 2 compatible html-webpack-plugin<commit_after>const fountain = require('fountain-generator');
const webpackConf = require('./conf');

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

  configuring: {
    package() {
      const pkg = {
        devDependencies: {
          'webpack': '^v2.1.0-beta.3',
          'babel-loader': '^6.2.0',
          'html-webpack-plugin': '^2.9.0',
          'style-loader': '^0.13.0',
          'css-loader': '^0.23.1',
          'postcss-loader': '^0.8.0',
          'autoprefixer': '^6.2.2'
        }
      };

      if (this.props.framework === 'react') {
        Object.assign(pkg.devDependencies, {
          'webpack-dev-middleware': '^1.4.0',
          'webpack-hot-middleware': '^2.6.0',
          'react-hot-loader': '^1.3.0',
          'babel-preset-react': '^6.1.18'
        });
      }

      if (this.props.framework === 'angular1') {
        Object.assign(pkg.devDependencies, {
          'ng-annotate-loader': '^0.0.10'
{'fraction_non_alphanumeric': 0.20047961630695443, 'fraction_numerical': 0.0407673860911271, 'mean_word_length': 2.0408163265306123, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2607293', 'n_tokens_mistral': 765, 'n_tokens_neox': 727, 'n_words': 100}