Created
August 29, 2014 18:46
-
-
Save chrisjdavis/33c9f99f40fdc7179cfa to your computer and use it in GitHub Desktop.
Barebones Grunt File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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