<commit_before>"use strict"

pathUtils = require("path")
glob = require("glob")
fs = require("fs")

module.exports = (grunt) ->
  grunt = (require 'grunt-utilities') grunt

  grunt.initConfig
    name: 'tree_search'

    bower:
      install:
        options:
          install: yes
          targetDir: '.tmp'
          cleanup: no
          layout: (type, component) ->
            (require 'path').join 'components', component

    clean:
      dist:
        files: [
          dot: true
          src: [".tmp"]
        ]

    coffee:
      dist:
        files: [
          expand: true
          cwd: "lib"
          src: "**/*.coffee"
          dest: ".tmp/lib"
          ext: ".js"
        ]

    neuter:
      dist:
        options:
          template: "{%= src %}"
          loadPaths: ['.tmp', '.tmp/lib', '.tmp/components']
          filepathTransform: require 'neuter-grunt-resolve-path'
        src: [".tmp/lib/<%= name %>.js"]
        dest: "dist/<%= name %>.js"

  grunt.registerTask "default", ["clean", "bower", "coffee", "neuter"]<commit_msg>Remove bower components from distro<commit_after>"use strict"

pathUtils = require("path")
glob = require("glob")
fs = require("fs")

module.exports = (grunt) ->
  grunt = (require 'grunt-utilities') grunt

  grunt.initConfig
    name: 'tree_search'

    bower:
      install:
        options:
          install: yes
          targetDir: '.tmp'
          cleanup: no
          layout: (type, component) ->
            (require 'path').join 'components', component

    clean:
      dist:
        files: [
          dot: true
          src: [".tmp"]
        ]

    coffee:
      dist:
        files: [
          expand: true
          cwd: "lib"
          src: "**/*.coffee"
          dest: ".tmp/lib"
          ext: ".js"
        ]

    neuter:
      dist:
        options:
          template: "{%= src %}"
          loadPaths: ['.tmp', '.tmp/lib', '.tmp/components']
          filepathTransform: require 'neuter-grunt-resolve-path'
        src: [".tmp/lib/<%= name %>.js"]
        dest: "dist/<%= name %>.js"

  grunt.registerTask "default", ["clean", "coffee", "neuter"]

  # TOOD Test
  # grunt.registerTask "default", ["clean", "bower", "coffee", "neuter"]  
{'fraction_non_alphanumeric': 0.16118865375956776, 'fraction_numerical': 0.0, 'mean_word_length': 1.75, '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': '6911378', 'n_tokens_mistral': 720, 'n_tokens_neox': 697, 'n_words': 168}