diff options
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 00000000..a7a54128 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,47 @@ +(function() { + module.exports = function(grunt) { + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + less: { + css: { + options: { + paths: ["public/css"] + }, + files: [ + { + expand: true, + cwd: 'public/css', + src: ['*.less'], + dest: 'public/css', + ext: '.css' + } + ] + } + }, + coffee: { + glob_to_multiple: { + expand: true, + cwd: '.', + src: '**/*.coffee', + dest: '.', + ext: '.js' + } + }, + watch: { + less: { + files: ['public/css/**/*.less'], + tasks: ['less'] + }, + coffee: { + files: ['**/*.coffee'], + tasks: ['coffee'] + } + } + }); + grunt.loadNpmTasks('grunt-contrib-coffee'); + grunt.loadNpmTasks('grunt-contrib-less'); + grunt.loadNpmTasks('grunt-contrib-watch'); + return grunt.registerTask('default', ['less', 'coffee']); + }; + +}).call(this); |
