Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- JSHint - Run QUnit tests - Create a minified version, not that its big...
- Loading branch information
1 parent
b07477a
commit 00e4685
Showing
3 changed files
with
116 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"bitwise" : true, | ||
"curly" : true, | ||
"eqeqeq" : false, | ||
"forin" : true, | ||
"immed" : true, | ||
"latedef" : true, | ||
"newcap" : true, | ||
"noarg" : true, | ||
"noempty" : true, | ||
"nonew" : true, | ||
"plusplus" : false, | ||
"regexp" : true, | ||
"undef" : true, | ||
"strict" : false, | ||
"trailing" : true, | ||
|
||
"asi" : false, | ||
"boss" : false, | ||
"debug" : false, | ||
"eqnull" : false, | ||
"es5" : false, | ||
"esnext" : false, | ||
"evil" : false, | ||
"expr" : false, | ||
"funcscope" : false, | ||
"globalstrict" : false, | ||
"iterator" : false, | ||
"lastsemic" : false, | ||
"laxbreak" : false, | ||
"laxcomma" : false, | ||
"loopfunc" : false, | ||
"multistr" : false, | ||
"onecase" : false, | ||
"proto" : false, | ||
"regexdash" : false, | ||
"scripturl" : false, | ||
"smarttabs" : false, | ||
"shadow" : false, | ||
"sub" : false, | ||
"supernew" : false, | ||
"validthis" : false, | ||
|
||
"browser" : true, | ||
"couch" : false, | ||
"devel" : true, | ||
"dojo" : false, | ||
"jquery" : true, | ||
"mootools" : false, | ||
"node" : true, | ||
"nonstandard" : false, | ||
"prototypejs" : false, | ||
"rhino" : false, | ||
"wsh" : false, | ||
|
||
"nomen" : false, | ||
"onevar" : false, | ||
"passfail" : false, | ||
"white" : false, | ||
|
||
"maxerr" : 100, | ||
"predef" : [ | ||
"test", | ||
"deepEqual" | ||
], | ||
"indent" : 4 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
module.exports = function (grunt) { | ||
|
||
// Project configuration | ||
|
||
grunt.initConfig({ | ||
pkg: '<json:serializeObject.jquery.json>', | ||
|
||
files: { | ||
all: ['jquery.serializeObject.js'], | ||
tests: ['test/**/*.js'] | ||
}, | ||
|
||
lint: { | ||
all: ['<config:files.all>', '<config:files.tests>'] | ||
}, | ||
|
||
docs: { | ||
all: ['README.markdown'] | ||
}, | ||
|
||
min: { | ||
dist: { | ||
src: '<config:files.all>', | ||
dest: 'dist/jquery.serializeObject.min.js' | ||
} | ||
}, | ||
|
||
// JSHint options | ||
// See: http://www.jshint.com/options/ for list of options and definitions | ||
|
||
jshint: { | ||
options: '<json:.jshintrc>' | ||
}, | ||
|
||
// QUnit | ||
|
||
qunit: { | ||
all: ['test/*.html'] | ||
} | ||
|
||
}); | ||
|
||
// Default grunt task | ||
|
||
grunt.registerTask('default', 'lint qunit min'); | ||
|
||
}; |