forked from carhartl/jquery-cookie
-
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.
Adding lint task, adding default, so a simple �[4mRunning "lint:files…
…" (lint) task�[24m Lint free. �[4mRunning "qunit:files" (qunit) task�[24m Testing test.html..........................�[32mOK�[39m �[32m>> �[39m30 assertions passed (72ms) �[32mDone, without errors.�[39m will lint and run tests
- Loading branch information
Showing
2 changed files
with
39 additions
and
29 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
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,32 +1,38 @@ | ||
/*global module */ | ||
module.exports = function( grunt ) { | ||
'use strict'; | ||
module.exports = function (grunt) { | ||
'use strict'; | ||
|
||
grunt.initConfig({ | ||
qunit: { | ||
files: ['test.html'] | ||
}, | ||
jshint: { | ||
options: { | ||
boss: true, | ||
browser: true, | ||
curly: false, | ||
devel: true, | ||
eqeqeq: false, | ||
eqnull: true, | ||
expr: true, | ||
evil: true, | ||
immed: false, | ||
laxcomma: true, | ||
newcap: false, | ||
noarg: true, | ||
smarttabs: true, | ||
sub: true, | ||
undef: true | ||
} | ||
} | ||
}); | ||
grunt.initConfig({ | ||
qunit: { | ||
files: ['test.html'] | ||
}, | ||
lint: { | ||
files: [ | ||
'grunt.js', | ||
'jquery.cookie.js' | ||
] | ||
}, | ||
jshint: { | ||
options: { | ||
boss: true, | ||
browser: true, | ||
curly: true, | ||
eqeqeq: true, | ||
eqnull: true, | ||
expr: true, | ||
evil: true, | ||
newcap: true, | ||
noarg: true, | ||
undef: true | ||
}, | ||
globals: { | ||
jQuery: true | ||
} | ||
} | ||
}); | ||
|
||
// Travis CI task. | ||
grunt.registerTask('ci', 'qunit'); | ||
grunt.registerTask('default', 'lint qunit'); | ||
|
||
// Travis CI task. | ||
grunt.registerTask('ci', 'default'); | ||
}; |