<commit_before>module.exports = function(grunt) {

  require('load-grunt-tasks')(grunt);

  grunt.initConfig({

    pkg: grunt.file.readJSON('package.json'),

    bower: {
      options: {
        targetDir:'public/bower'
      },
      install: {}
    },

    shell: {
      migrate: {
        command: './node_modules/migrate/bin/migrate up'
      }
    },

    uglify: {
      options: {
        banner:'/*! <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> */',
        separator:';'
      },
      compile: {
        files: {
          'public/js/dest/scripts.min.js':[
            'public/bower/jquery/dist/jquery.min.js',
            'public/bower/pace/pace.min.js',
            'public/bower/bootstrap/dist/js/bootstrap.min.js',
            'public/js/*.js'
          ]
        }
      }
    },

    cssmin: {
      compile: {
        files: {
          'public/css/dest/styles.min.css':[
            'public/bower/bootstrap/dist/css/bootstrap.min.css',
            'public/bower/pace/themes/blue/pace-theme-flash.css',
            'public/font/tello/css/fontello.css',
            'public/css/*.css'
          ]
        }
      }
    },

    watch: {
      scripts: {
        files:['public/js/*.js'],
        tasks:['uglify:compile']
      },
      styles: {
        files:['public/css/*.css'],
        tasks:['cssmin:compile']
      }
    }

  });

  // Tâche par défaut ( compilation automatique )
  grunt.registerTask('default', ['watch']);

  grunt.registerTask('run', [
    'bower:install',
    'shell:migrate',
    'uglify:compile',
    'cssmin:compile'
  ]);

  // Tâche lancée lors du déploiement en prod
  grunt.registerTask('heroku:production', 'run');

};<commit_msg>Suppression de la tâche 'migrate' lors du déploiement<commit_after>module.exports = function(grunt) {

  require('load-grunt-tasks')(grunt);

  grunt.initConfig({

    pkg: grunt.file.readJSON('package.json'),

    bower: {
      options: {
        targetDir:'public/bower'
      },
      install: {}
    },

    shell: {
      migrate: {
        command: './node_modules/migrate/bin/migrate up'
      }
    },

    uglify: {
      options: {
        banner:'/*! <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> */',
        separator:';'
      },
      compile: {
        files: {
          'public/js/dest/scripts.min.js':[
            'public/bower/jquery/dist/jquery.min.js',
            'public/bower/pace/pace.min.js',
            'public/bower/bootstrap/dist/js/bootstrap.min.js',
            'public/js/*.js'
          ]
        }
      }
    },

    cssmin: {
      compile: {
        files: {
          'public/css/dest/styles.min.css':[
            'public/bower/bootstrap/dist/css/bootstrap.min.css',
            'public/bower/pace/themes/blue/pace-theme-flash.css',
            'public/font/tello/css/fontello.css',
            'public/css/*.css'
          ]
        }
      }
    },

    watch: {
      scripts: {
        files:['public/js/*.js'],
        tasks:['uglify:compile']
      },
      styles: {
        files:['public/css/*.css'],
        tasks:['cssmin:compile']
      }
    }

  });

  // Tâche par défaut ( compilation automatique )
  grunt.registerTask('default', ['watch']);

  grunt.registerTask('run', [
    'bower:install',
    'shell:migrate',
    'uglify:compile',
    'cssmin:compile'
  ]);

  // Tâche lancée lors du déploiement en prod
  grunt.registerTask('heroku:production', [
    'bower:install',
    'uglify:compile',
    'cssmin:compile'
  ]);

};
{'fraction_non_alphanumeric': 0.1780474040632054, 'fraction_numerical': 0.0, 'mean_word_length': 1.8134920634920635, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2070369', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1211, 'n_words': 141}