UNPKG

dirtyjs

Version:

do questionable things to the native js objects

33 lines (28 loc) 739 B
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('./package.json'), concat: { options: { banner: '/*! <%= pkg.name %> \n by @spencermountain\n <%= grunt.template.today("yyyy-mm-dd") %> */\n', footer: "" }, dist: { src: [ './dirty.js' ], dest: './build/dirty.js' } }, uglify: { do :{ src: ['./build/dirty.js'], dest: './build/dirty.min.js' } } }); // Load the plugin that provides the "uglify" task. grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.registerTask('default', ['concat', 'uglify']); };