<commit_before>module.exports = (grunt) ->
  config =
    icon:
      src: [
        'assets/img/icon/*.png'
      ]
      destImg: 'assets/img/icon-<%= grunt.config("git-commit") %>.png'
      imgPath: '../img/icon-<%= grunt.config("git-commit") %>.png'
      destCSS: 'assets/sass/partial/_sprite-icon.sass'
      # destCSS: 'assets/scss/partial/_sprite-icon.scss'
      # destCSS: 'assets/less/partial/_sprite-icon.less'
      # destCSS: 'assets/styl/partial/_sprite-icon.styl'
      cssTemplate: 'assets/sass/template.mustache'
      # cssTemplate: 'assets/scss/template.mustache'
      # cssTemplate: 'assets/less/template.mustache'
      # cssTemplate: 'assets/styl/template.mustache'
      cssOpts:
        target: 'icon'

  if process.env.TRAVIS
    for key of config
      config[key].engineOpts =
        imagemagick: true

  grunt.config 'sprite', config
  grunt.loadNpmTasks 'grunt-spritesmith'<commit_msg>updated to allow better set up<commit_after>module.exports = (grunt) ->
  config = {}
  targets = [
    'icon'
  ]

  targets.forEach (target) ->
    config[target] =
      src: [
        "assets/img/#{target}/*.png"
      ]
      destImg: "assets/img/#{target}-<%= grunt.config('git-commit') %>.png"
      imgPath: "../img/#{target}-<%= grunt.config('git-commit') %>.png"
      destCSS: "assets/sass/partial/_sprite-#{target}.sass"
      # destCSS: "assets/scss/partial/_sprite-#{target}.scss"
      # destCSS: "assets/less/partial/_sprite-#{target}.less"
      # destCSS: "assets/styl/partial/_sprite-#{target}.styl"
      cssTemplate: 'assets/sass/template.mustache'
      # cssTemplate: 'assets/scss/template.mustache'
      # cssTemplate: 'assets/less/template.mustache'
      # cssTemplate: 'assets/styl/template.mustache'
      cssOpts:
        target: target
      engineOpts:
        imagemagick: !!process.env.TRAVIS

  grunt.config 'sprite', config
  grunt.loadNpmTasks 'grunt-spritesmith'
{'fraction_non_alphanumeric': 0.16266944734098018, 'fraction_numerical': 0.0, 'mean_word_length': 2.853413654618474, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, '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': '4004453', 'n_tokens_mistral': 677, 'n_tokens_neox': 674, 'n_words': 96}