source: Dev/trunk/node_modules/grunt-exec/Gruntfile.js @ 484

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

Commit node_modules, to make checkouts and builds more deterministic.

File size: 1.5 KB
Line 
1module.exports = function(grunt) {
2  grunt.initConfig({
3    exec: {
4      remove_logs: {
5        command: 'rm -f *.log'
6      , stdout: false
7      , stderr: false
8      }
9    , list_files: {
10        cmd: 'ls -l **'
11      }
12    , echo_grunt_version: {
13        cmd: function() { return 'echo ' + this.version; }
14      }
15    , print_name: {
16        cmd: function(firstName, lastName) {
17          var formattedName = [
18                lastName.toUpperCase()
19              , firstName.toUpperCase()
20              ].join(', ');
21
22          return 'echo ' + formattedName;
23        }
24      }
25    , test_callback: {
26        cmd : 'ls -h',
27        callback : function(error, stdout, stderr){
28          var cp = require('child_process');
29          var util = require('util');
30          console.log(util.inspect(cp));
31          console.log('callback is ok, you can use error,stdout,stderr as arguments');
32        }
33      }
34    }
35
36  , jshint: {
37      options: {
38      // enforcing options
39        curly: true
40      , forin: true
41      , newcap: true
42      , noarg: true
43      , noempty: true
44      , nonew: true
45      , quotmark: true
46      , undef: true
47      , unused: true
48      , trailing: true
49      , maxlen: 80
50
51      // relaxing options
52      , boss: true
53      , es5: true
54      , expr: true
55      , laxcomma: true
56
57      // environments
58      , node: true
59      }
60    , tasks: ['tasks/*.js']
61    , tests: ['test/*.js']
62    , gruntfile: ['Gruntfile.js']
63    }
64  });
65
66  grunt.loadTasks('tasks');
67  grunt.loadNpmTasks('grunt-contrib-jshint');
68
69  grunt.registerTask('lint', 'jshint');
70};
Note: See TracBrowser for help on using the repository browser.