From 5255f026a68be987dbccc191900752d7e9daf1af Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 15 Jul 2014 00:44:25 -0700 Subject: Add menu, change view engine, use Grunt --- Gruntfile.coffee | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Gruntfile.coffee (limited to 'Gruntfile.coffee') diff --git a/Gruntfile.coffee b/Gruntfile.coffee new file mode 100644 index 00000000..530fdb6a --- /dev/null +++ b/Gruntfile.coffee @@ -0,0 +1,34 @@ +module.exports = (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: 'public/js' + src: '**/*.coffee' + dest: 'public/js' + ext: '.js' + watch: + less: + files: ['public/css/**/*.less'] + tasks: ['less'] + coffee: + files: ['public/js/**/*.coffee'] + tasks: ['coffee'] + ) + + grunt.loadNpmTasks('grunt-contrib-coffee') + grunt.loadNpmTasks('grunt-contrib-less') + grunt.loadNpmTasks('grunt-contrib-watch') + grunt.registerTask('default', ['less', 'coffee']); -- cgit v1.2.3