From 51daca704f27e59462c6d8b1731867007c8fd273 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 20 Jul 2014 11:24:09 -0700 Subject: Precompile all coffeescript --- Gruntfile.js | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Gruntfile.js (limited to 'Gruntfile.js') 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); -- cgit v1.2.3