UNPKG

underscore.deferred

Version:
59 lines (55 loc) 1.41 kB
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: '<json:package.json>', meta: { banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' + '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */' }, concat: { dist: { src: ['<banner:meta.banner>', '<file_strip_banner:<%= pkg.name %>.js>'], dest: 'dist/<%= pkg.name %>.js' } }, min: { dist: { src: ['<banner:meta.banner>', '<config:concat.dist.dest>'], dest: 'dist/<%= pkg.name %>.min.js' } }, qunit: { files: ['test/*.html'] }, lint: { files: ['grunt.js', 'underscore.deferred.js'] }, watch: { files: '<config:lint.files>', tasks: 'lint test' }, jshint: { options: { curly: true, eqeqeq: true, latedef: true, newcap: true, noarg: true, sub: true, undef: true, boss: true, eqnull: true }, globals: { exports: true, module: false } }, uglify: {} }); // Default task. grunt.registerTask('default', 'lint qunit concat min'); };