UNPKG

bb-collection-view

Version:

Easily render backbone.js collections with support for automatic selection of models in response to clicks, reordering models via drag and drop, and more.

75 lines (69 loc) 1.44 kB
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), banner: '/*!\n' + '* Backbone.CollectionView, v<%= pkg.version %>\n' + '* Copyright (c)2013 Rotunda Software, LLC.\n' + '* Distributed under MIT license\n' + '* http://github.com/rotundasoftware/backbone-collection-view\n' + '*/\n\n', // Task configuration. concat: { options: { banner: '<%= banner %>', stripBanners: true }, js: { src: ['src/backbone.collectionView.js'], dest: 'dist/backbone.collectionView.js' } }, uglify: { options: { banner: '<%= banner %>' }, dist: { src: '<%= concat.js.dest %>', dest: 'dist/backbone.collectionView.min.js' } }, compress: { dist: { options: { archive: 'zips/Backbone.CollectionView.zip' }, expand: true, cwd: 'dist/', src: ['**/*'], dest: './' } }, jshint: { options: { curly: true, eqeqeq: true, immed: true, latedef: true, newcap: true, noarg: true, sub: true, undef: true, unused: true, boss: true, eqnull: true, browser: true, globals: { jQuery: true } }, library: { src: 'collectionView.js' } } }); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-compress'); grunt.registerTask('default', ['concat', 'uglify', 'compress']); };