source: Dev/trunk/node_modules/grunt-contrib-jshint/Gruntfile.js @ 531

Last change on this file since 531 was 484, checked in by hendrikvanantwerpen, 11 years ago

Commit node_modules, to make checkouts and builds more deterministic.

File size: 1.4 KB
RevLine 
[484]1/*
2 * grunt-contrib-jshint
3 * http://gruntjs.com/
4 *
5 * Copyright (c) 2013 "Cowboy" Ben Alman, contributors
6 * Licensed under the MIT license.
7 */
8
9'use strict';
10
11module.exports = function(grunt) {
12
13  // Project configuration.
14  grunt.initConfig({
15    jshint: {
16      allFiles: [
17        'Gruntfile.js',
18        'tasks/**/*.js',
19        '<%= nodeunit.tests %>',
20      ],
21      individualFiles: {
22        files: [
23          {src: 'Gruntfile.js'},
24          {src: 'tasks/**/*.js'},
25          {src: '<%= nodeunit.tests %>'},
26        ],
27      },
28      withReporterShouldFail: {
29        options: {
30          reporter: 'checkstyle',
31          reporterOutput: 'tmp/report.xml',
32          force: true,
33        },
34        src: ['test/fixtures/missingsemicolon.js'],
35      },
36      ignoresSupport: {
37        src: ['test/fixtures/dontlint.txt'],
38      },
39      options: {
40        jshintrc: '.jshintrc',
41      },
42    },
43
44    // Unit tests.
45    nodeunit: {
46      tests: ['test/*_test.js'],
47    },
48  });
49
50  // Actually load this plugin's task(s).
51  grunt.loadTasks('tasks');
52
53  // These plugins provide necessary tasks.
54  grunt.loadNpmTasks('grunt-contrib-nodeunit');
55  grunt.loadNpmTasks('grunt-contrib-internal');
56
57  // Whenever the "test" task is run, run the "nodeunit" task.
58  grunt.registerTask('test', ['jshint', 'nodeunit']);
59
60  // By default, lint and run all tests.
61  grunt.registerTask('default', ['test', 'build-contrib']);
62
63};
Note: See TracBrowser for help on using the repository browser.