Skip to content

Commit

Permalink
Add grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 6, 2012
1 parent e400f4d commit deb0061
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions grunt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*global module */
module.exports = function( grunt ) {
'use strict';

grunt.initConfig({
meta: {
version: '2.5.3',
banner: '/*!\n' +
' * Modernizr v<%= meta.version %>\n' +
' * www.modernizr.com\n *\n' +
' * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton\n' +
' * Available under the BSD and MIT licenses: www.modernizr.com/license/\n */'
},
lint: {
files: [
'grunt.js',
'modernizr.js',
'feature-detects/*.js'
]
},
min: {
dist: {
src: [
'<banner:meta.banner>',
'modernizr.js'
],
dest: 'modernizr.min.js'
}
},
watch: {
files: '<config:lint.files>',
tasks: 'lint'
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
browser: true
},
globals: {
Modernizr: true
}
}
});

grunt.registerTask('default', 'min');

};

0 comments on commit deb0061

Please sign in to comment.