<commit_before>LIVERELOAD_PORT = 35729
lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT })

replaceWithMin = (path) ->
  parts = path.split('/')
  basename = parts[parts.length - 1]
  parts = basename.split('.')
  ext = parts.pop()
  parts.join('.') + '.min.' + ext

module.exports = (grunt) ->
  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)

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

    uglify:
      dist:
        options:
          sourceMap: true
        files:
          'dist/license-selector.min.js': ['dist/license-selector.js']

    cssmin:
      dist:
        files:
          'dist/license-selector.min.css': ['dist/license-selector.css']

    buildcontrol:
      options:
        dir: 'dist'
        commit: true
        push: true
        connectCommits: true
        message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%'

      pages:
        options:
          branch: 'gh-pages'
          remote: '<EMAIL>:ufal/lindat-license-selector.git'

      release:
        options:
          branch: 'releases'
          remote: '<EMAIL>:ufal/lindat-license-selector.git'

    copy:
      pages:
        files: [
          {
            src: 'bower_components/jquery/dist/jquery.min.js'
            dest: 'dist/jquery.min.js'
          },
          {
            src: 'bower_components/lodash/dist/lodash.min.js'
            dest: 'dist/lodash.min.js'
          },
          {
            src: 'src/fonts/*'
            dest: 'dist/fonts/'
          },<commit_msg>Copy fonts to correct directory<commit_after>LIVERELOAD_PORT = 35729
lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT })

replaceWithMin = (path) ->
  parts = path.split('/')
  basename = parts[parts.length - 1]
  parts = basename.split('.')
  ext = parts.pop()
  parts.join('.') + '.min.' + ext

module.exports = (grunt) ->
  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)

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

    uglify:
      dist:
        options:
          sourceMap: true
        files:
          'dist/license-selector.min.js': ['dist/license-selector.js']

    cssmin:
      dist:
        files:
          'dist/license-selector.min.css': ['dist/license-selector.css']

    buildcontrol:
      options:
        dir: 'dist'
        commit: true
        push: true
        connectCommits: true
        message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%'

      pages:
        options:
          branch: 'gh-pages'
          remote: '<EMAIL>:ufal/lindat-license-selector.git'

      release:
        options:
          branch: 'releases'
          remote: '<EMAIL>:ufal/lindat-license-selector.git'

    copy:
      pages:
        files: [
          {
            src: 'bower_components/jquery/dist/jquery.min.js'
            dest: 'dist/jquery.min.js'
          },
          {
            src: 'bower_components/lodash/dist/lodash.min.js'
            dest: 'dist/lodash.min.js'
          },
          {
            src: 'src/fonts/*'
            dest: 'dist/fonts/'
            filter: 'isFile'
            expand: true
            flatten: true
          },
{'fraction_non_alphanumeric': 0.13856168629882207, 'fraction_numerical': 0.0037197768133911966, 'mean_word_length': 1.8633540372670807, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '1017955', 'n_tokens_mistral': 1049, 'n_tokens_neox': 1017, 'n_words': 180}