UNPKG

backbone.epoxy

Version:

Elegant data binding for Backbone.js

26 lines (24 loc) 731 B
module.exports = function( grunt ) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '// Backbone.Epoxy <%= pkg.version %>\n// (c) 2015 Greg MacWilliam\n// Freely distributed under the MIT license\n// http://epoxyjs.org\n', sourceMapRoot: './', sourceMap: '<%= pkg.name %>.min.map', sourceMapUrl: '<%= pkg.name %>.min.map' }, target: { src: '<%= pkg.name %>.js', dest: '<%= pkg.name %>.min.js' } }, mocha_phantomjs: { all: ['test.html'] } }); grunt.loadNpmTasks("grunt-contrib-uglify"); grunt.loadNpmTasks('grunt-mocha-phantomjs'); grunt.registerTask("test", ["mocha_phantomjs"]); grunt.registerTask("default", ["uglify"]); };