1 | 'use strict';
|
2 |
|
3 | module.exports = function(grunt) {
|
4 |
|
5 |
|
6 | grunt.initConfig({
|
7 | test: {
|
8 | files: ['test/**/*.js']
|
9 | },
|
10 | lint: {
|
11 | files: ['Gruntfile.js', 'tasks/**/*.js', 'test/**/*.js']
|
12 | },
|
13 | watch: {
|
14 | files: '<config:lint.files>',
|
15 | tasks: 'default'
|
16 | },
|
17 | open : {
|
18 | dev : {
|
19 | url : 'http://127.0.0.1/~jsoverson/'
|
20 | },
|
21 | google : {
|
22 | url : 'http://google.com/'
|
23 | },
|
24 | file : {
|
25 | file : '/etc/hosts'
|
26 | }
|
27 | },
|
28 | jshint: {
|
29 | options: {
|
30 | curly: true,
|
31 | eqeqeq: true,
|
32 | immed: true,
|
33 | latedef: true,
|
34 | newcap: true,
|
35 | noarg: true,
|
36 | sub: true,
|
37 | undef: true,
|
38 | boss: true,
|
39 | eqnull: true,
|
40 | node: true,
|
41 | es5: true
|
42 | },
|
43 | globals: {}
|
44 | }
|
45 | });
|
46 |
|
47 |
|
48 | grunt.loadTasks('tasks');
|
49 |
|
50 |
|
51 | grunt.registerTask('default', 'lint open');
|
52 |
|
53 | };
|