Skip to content

Commit

Permalink
Commit from Travis Build #33
Browse files Browse the repository at this point in the history
  • Loading branch information
Parashuram N committed Apr 23, 2013
2 parents 6e90f58 + 4af6f51 commit 55c04e9
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 46 deletions.
40 changes: 40 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"camelcase": true,
"nonew": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"latedef": true,
"newcap": true,
"undef": true,
"regexp": true,
"evil": true,
"eqnull": true,
"expr": true,
"browser": true,
"predef": ["DEBUG",
"console",
"require",
"jQuery",
"module",

"_",
"asyncTest",
"DB",
"dbVersion",
"deepEqual",
"equal",
"expect",
"fail",
"module",
"nextTest",
"notEqual",
"ok",
"sample",
"start",
"stop",
"queuedAsyncTest",
"queuedModule",
"unescapse",
"process"]
}
56 changes: 12 additions & 44 deletions GruntFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,48 +38,8 @@ module.exports = function(grunt) {
src: ['grunt.js', 'test/**/*.js']
},
options: {
camelcase: true,
nonew: true,
curly: true, // require { }
eqeqeq: true, // === instead of ==
immed: true, // wrap IIFE in parentheses
latedef: true, // variable declared before usage
newcap: true, // capitalize class names
undef: true, // checks for undefined variables
regexp: true,
evil: true,
eqnull: true, // == allowed for undefined/null checking
expr: true, // allow foo && foo()
browser: true // browser environment
},
globals: {
DEBUG: true,
console: true,
require: true,
jQuery: true,
module: true,

// Tests.
_: true,
asyncTest: true,
DB: true,
dbVersion: true,
deepEqual: true,
equal: true,
expect: true,
fail: true,
module: true,
nextTest: true,
notEqual: true,
ok: true,
sample: true,
start: true,
stop: true,
queuedAsyncTest: true,
queuedModule: true,
unescape: true,
process: true
}
jshintrc: '.jshintrc'
}
}
},

Expand All @@ -98,15 +58,23 @@ module.exports = function(grunt) {
uglify: {
options: {
report: 'gzip',
banner: '/*! <%= pkg.name %> v<%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
banner: '/*! <%= pkg.name %> v<%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
sourceMap: 'dist/<%= (pkg.name).replace(/-/g, ".") %>.min.map',
sourceMapRoot: 'http://nparashuram.com/jquery-indexeddb/',
sourceMappingURL: 'http://nparashuram.com/jquery-indexeddb/dist/<%=pkg.name%>.min.map'
},
main: {
files: {
'dist/<%= (pkg.name).replace(/-/g, ".")%>.min.js': ['src/jquery.indexeddb.js']
}
}
},
watch: {},
watch: {
all : {
files: ['src/*.js'],
tasks: ['uglify']
}
},
clean: {
dist: ['./dist']
}
Expand Down
5 changes: 3 additions & 2 deletions dist/jquery.indexeddb.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 55c04e9

Please sign in to comment.