UNPKG

bootstrap-calendar

Version:
52 lines (48 loc) 1.08 kB
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), less: { options: { ieCompat: true, strictImports: false, syncImport: false, report: 'min' }, css: { options: { compress: false, yuicompress: false }, files: { 'css/calendar.css': 'less/calendar.less', } }, css_min: { options: { compress: true, yuicompress: true }, files: { 'css/calendar.min.css': 'css/calendar.css' } } }, uglify: { options: { banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %> - ' + 'https://github.com/Serhioromano/bootstrap-calendar */\n' }, build: { src: 'js/calendar.js', dest: 'js/calendar.min.js' } } }); // Load the plugin that provides the tasks. grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-uglify'); // Default task(s). grunt.registerTask('default', ['less:css', 'less:css_min', 'uglify']); };