forked from cowboy/grunt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
2,204 additions
and
1,884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,57 @@ | ||
/*global config:true, task:true*/ | ||
config.init({ | ||
pkg: '<json:package.json>', | ||
test: { | ||
all: ['test/**/*.js'] | ||
}, | ||
lint: { | ||
all: ['grunt.js', 'lib/**/*.js', 'tasks/*.js', 'tasks/*/*.js', 'test/**/*.js'] | ||
}, | ||
watch: { | ||
files: '<config:lint.all>', | ||
tasks: 'default' | ||
}, | ||
jshint: { | ||
options: { | ||
curly: true, | ||
eqeqeq: true, | ||
immed: true, | ||
latedef: true, | ||
newcap: true, | ||
noarg: true, | ||
sub: true, | ||
undef: true, | ||
boss: true, | ||
eqnull: true, | ||
node: true, | ||
es5: true | ||
/* | ||
* grunt | ||
* https://github.com/cowboy/grunt | ||
* | ||
* Copyright (c) 2012 "Cowboy" Ben Alman | ||
* Licensed under the MIT license. | ||
* http://benalman.com/about/license/ | ||
*/ | ||
|
||
module.exports = function(grunt) { | ||
// Grunt utilities. | ||
var task = grunt.task; | ||
var file = grunt.file; | ||
var utils = grunt.utils; | ||
var log = grunt.log; | ||
var verbose = grunt.verbose; | ||
var fail = grunt.fail; | ||
var option = grunt.option; | ||
var config = grunt.config; | ||
var template = grunt.template; | ||
|
||
// Initialize config. | ||
grunt.initConfig({ | ||
pkg: '<json:package.json>', | ||
test: { | ||
all: ['test/**/*.js'] | ||
}, | ||
lint: { | ||
all: ['grunt.js', 'lib/**/*.js', 'tasks/*.js', 'tasks/*/*.js', 'test/**/*.js'] | ||
}, | ||
globals: { | ||
exports: true, | ||
grunt: true, | ||
utils: true, | ||
task: true, | ||
file: true, | ||
fail: true, | ||
config: true, | ||
option: true, | ||
template: true, | ||
log: true, | ||
verbose: true | ||
watch: { | ||
files: '<config:lint.all>', | ||
tasks: 'default' | ||
}, | ||
jshint: { | ||
options: { | ||
curly: true, | ||
eqeqeq: true, | ||
immed: true, | ||
latedef: true, | ||
newcap: true, | ||
noarg: true, | ||
sub: true, | ||
undef: true, | ||
boss: true, | ||
eqnull: true, | ||
node: true, | ||
es5: true | ||
}, | ||
globals: {} | ||
} | ||
} | ||
}); | ||
}); | ||
|
||
// Default task. | ||
grunt.registerTask('default', 'lint test'); | ||
|
||
// Default task. | ||
task.registerTask('default', 'lint test'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.