UNPKG

904 BJavaScriptView Raw
1/*
2 * grunt
3 * https://github.com/cowboy/grunt
4 *
5 * Copyright (c) 2012 "Cowboy" Ben Alman
6 * Licensed under the MIT license.
7 * http://benalman.com/about/license/
8 */
9
10module.exports = function(grunt) {
11
12 // Project configuration.
13 grunt.initConfig({
14 pkg: '<json:package.json>',
15 test: {
16 all: ['test/**/*.js']
17 },
18 lint: {
19 all: ['grunt.js', 'lib/**/*.js', 'tasks/*.js', 'tasks/*/*.js', 'test/**/*.js']
20 },
21 watch: {
22 files: '<config:lint.all>',
23 tasks: 'default'
24 },
25 jshint: {
26 options: {
27 curly: true,
28 eqeqeq: true,
29 immed: true,
30 latedef: true,
31 newcap: true,
32 noarg: true,
33 sub: true,
34 undef: true,
35 boss: true,
36 eqnull: true,
37 node: true,
38 es5: true
39 },
40 globals: {}
41 }
42 });
43
44 // Default task.
45 grunt.registerTask('default', 'lint test');
46
47};