{"size": 1928, "ext": "js", "max_stars_repo_path": "Gruntfile.js", "max_stars_repo_name": "kevinconway/itertools.js", "max_stars_repo_stars_event_min_datetime": "2018-09-05T10:44:23.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-13T11:25:22.000Z", "max_issues_repo_path": "Gruntfile.js", "max_issues_repo_name": "kevinconway/itertools.js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Gruntfile.js", "max_forks_repo_name": "kevinconway/itertools.js", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.2289156627, "max_line_length": 90, "alphanum_fraction": 0.4875518672}
/*jslint node: true, indent: 2, passfail: true */
"use strict";

module.exports = function (grunt) {

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    jslint: {
      all: {
        src: [
          'helper/*',
          'itertools/*.js',
          'itertools/core/*.js',
          'itertools/iterables/*.js'
        ],
        exclude: ['test/*', 'Gruntfile.js'],
        directives: {
          node: true,
          browser: true,
          indent: 2,
          passfail: true
        },
        options: {
          edition: 'latest'
        }
      }
    },
    mochaTest: {
      test: {
        options: {
          reporter: 'spec'
        },
        src: ['test/*.spec.js']
      }
    },
    browserify: {
      itertools: {
        files: {
          'build/itertools.browser.js': ['itertools/browser.js']
        },
        options: {
          bundleOptions: {
            "standalone": "itertools"
          }
        }
      },
      tests: {
        files: {
          'build/itertools.tests.browser.js': ['test/*.spec.js']
        },
        options: {
          exclude: ["test/file.spec.js", "test/stream.spec.js"]
        }
      }
    },
    uglify: {
      options: {
        banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
      },
      build: {
        files: {
          'build/itertools.browser.min.js': ['build/itertools.browser.js'],
          'build/itertools.tests.browser.min.js': ['build/itertools.tests.browser.js']
        },
      }
    },
    shell: {
      prepareBrowserTests: {
        command: 'test/install_libs'
      }
    }
  });

  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-jslint');
  grunt.loadNpmTasks('grunt-mocha-test');
  grunt.loadNpmTasks('grunt-browserify');
  grunt.loadNpmTasks('grunt-shell');

  grunt.registerTask('default', ['jslint', 'mochaTest', 'browserify', 'uglify', 'shell']);

};
