Skip to content

Instantly share code, notes, and snippets.

@chrisjdavis
Created August 29, 2014 18:46
Show Gist options
  • Save chrisjdavis/33c9f99f40fdc7179cfa to your computer and use it in GitHub Desktop.
Save chrisjdavis/33c9f99f40fdc7179cfa to your computer and use it in GitHub Desktop.
Barebones Grunt File
module.exports = function(grunt) {
grunt.initConfig({
concat: {
options: {
separator: '',
},
dist: {
src: ['../scripts/*.functions.js'],
dest: '../js/application.js',
},
},
less: {
development: {
options: {
compress: true,
yuicompress: true,
optimization: 2,
livereload: true,
},
files: {
"../css/style.css": "../less/style.less",
}
}
},
watch: {
scripts: {
files: ['../js/*.js', '../scripts/*.js'],
tasks: ['concat'],
options: {
livereload: true,
}
},styles: {
files: ['../less/*.less'],
tasks: ['less'],
options: {
livereload: true,
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-notify');
grunt.registerTask('default', [ 'watch' ]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment