module.exports = function(grunt) { require('jit-grunt')(grunt); grunt.initConfig({ less: { dev: { options: { compress: false, }, files: { "style.css": "assets/less/style.less" // destination file and source file } }, production: { options: { compress: true, yuicompress: true, optimization: 2, }, files: { "style.min.css": "assets/less/style.less" // destination file and source file } } }, postcss: { options: { map: true, processors: [ require('autoprefixer-core')({browsers: ['last 4 version']}) ] }, dev: { src: 'style.css', }, production: { src: 'style.min.css', } }, githubChanges: { dev : { options: { owner : 'pattonwebz', // MANDATORY repository : 'best-reloaded-bootstrap-theme', // MANDATORY branch : '', // optional string tagName : '',// optional string auth : false, // optional boolean token : '', // optional string file : '', // optional string verbose : false, // optional boolean host : '', // optional string pathPrefix : '', // optional string noMerges : false, // optional boolean onlyMerges : false, // optional boolean onlyPulls : false, // optional boolean useCommitBody : false, // optional boolean orderSemver : false // optional boolean } } }, watch: { styles: { files: ['assets/less/**/*.less'], // which files to watch tasks: ['default'], options: { nospawn: true } }, } }); grunt.registerTask('default', ['less', 'postcss', 'githubChanges', 'watch']); grunt.registerTask('dev', ['less:dev', 'postcss:dev']); grunt.registerTask('production', ['less:production', 'postcss:production']); };