UNPKG

720 BJavaScriptView Raw
1module.exports = function(grunt) {
2
3 // Project configuration.
4 grunt.initConfig({
5 pkg: '<json:package.json>',
6 test: {
7 files: ['test/**/*.js']
8 },
9 lint: {
10 files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
11 },
12 watch: {
13 files: '<config:lint.files>',
14 tasks: 'default'
15 },
16 jshint: {
17 options: {
18 curly: true,
19 eqeqeq: true,
20 immed: true,
21 latedef: true,
22 newcap: true,
23 noarg: true,
24 sub: true,
25 undef: true,
26 boss: true,
27 eqnull: true,
28 node: true
29 },
30 globals: {
31 exports: true
32 }
33 }
34 });
35
36 // Default task.
37 grunt.registerTask('default', 'lint test');
38
39};
\No newline at end of file