<commit_before>module.exports = (grunt) ->

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

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

    coffee:
      build:
        files:
          'build/js/script.js' : 'src/js/script.coffee'

    uglify:
      build:
        files:
          'build/js/lib.js' : [
            'bower_components/jquery/dist/jquery.js'
            'bower_components/jquery-throttle-debounce/jquery.ba-throttle-debounce.js'
            'bower_components/purl/purl.js'
            'bower_components/zeroclipboard/ZeroClipboard.js'
          ]

    sass:
      build:
        files:
          'tmp/css/style.css' : 'src/css/style.sass'

    autoprefixer:
      single_file:
        src: 'tmp/css/style.css'
        dest: 'build/css/style.css'

    connect:
      server:
        options:
          port: 5000
          hostname: 'localhost'
          base: 'build'
          livereload: true

    watch:
      coffee:
        files: ['src/js/script.coffee']
        tasks: ['coffee:build']
      sass:
        files: ['src/css/*.sass']
        tasks: ['sass:build']
      autoprefixer:
        files: ['tmp/css/style.css']
        tasks: ['autoprefixer:single_file']
      reload:
        files: ['build/*.html','build/js/script.js']
        options: {livereload: true}
      livereload:
        files: ['build/css/style.css']
        options: {livereload: true}

    'gh-pages':
      options:<commit_msg>Fixed Grunt connect server settings.<commit_after>module.exports = (grunt) ->

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

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

    coffee:
      build:
        files:
          'build/js/script.js' : 'src/js/script.coffee'

    uglify:
      build:
        files:
          'build/js/lib.js' : [
            'bower_components/jquery/dist/jquery.js'
            'bower_components/jquery-throttle-debounce/jquery.ba-throttle-debounce.js'
            'bower_components/purl/purl.js'
            'bower_components/zeroclipboard/ZeroClipboard.js'
          ]

    sass:
      build:
        files:
          'tmp/css/style.css' : 'src/css/style.sass'

    autoprefixer:
      single_file:
        src: 'tmp/css/style.css'
        dest: 'build/css/style.css'

    connect:
      server:
        options:
          port: 8764 # phone keypad equivalent of TPMG
          hostname: '*'
          base: 'build'
          livereload: true

    watch:
      coffee:
        files: ['src/js/script.coffee']
        tasks: ['coffee:build']
      sass:
        files: ['src/css/*.sass']
        tasks: ['sass:build']
      autoprefixer:
        files: ['tmp/css/style.css']
        tasks: ['autoprefixer:single_file']
      reload:
        files: ['build/*.html','build/js/script.js']
        options: {livereload: true}
      livereload:
        files: ['build/css/style.css']
        options: {livereload: true}

    'gh-pages':
      options:
{'fraction_non_alphanumeric': 0.13846153846153847, 'fraction_numerical': 0.002735042735042735, 'mean_word_length': 1.8352713178294573, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2174012', 'n_tokens_mistral': 1022, 'n_tokens_neox': 980, 'n_words': 149}