aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'Gruntfile.coffee')
-rw-r--r--Gruntfile.coffee25
1 files changed, 23 insertions, 2 deletions
diff --git a/Gruntfile.coffee b/Gruntfile.coffee
index 977b25e5..66f35542 100644
--- a/Gruntfile.coffee
+++ b/Gruntfile.coffee
@@ -1,6 +1,13 @@
module.exports = (grunt) ->
grunt.initConfig(
pkg: grunt.file.readJSON('package.json')
+ coffeeify:
+ src:
+ expand: true
+ cwd: 'public/js'
+ src: ['*.coffee']
+ dest: 'public/js'
+ ext: '.js'
coffee:
server:
expand: true
@@ -8,12 +15,26 @@ module.exports = (grunt) ->
src: '**/*.coffee'
dest: '.'
ext: '.js'
+ less:
+ options:
+ paths: ["public/css"]
+ src:
+ expand: true
+ cwd: "public/css"
+ src: "*.less"
+ dest: 'public/css'
+ ext: ".css"
watch:
+ less:
+ files: ['public/css/*.less']
+ tasks: ['less']
coffee:
files: ['**/*.coffee']
- tasks: ['coffee']
+ tasks: ['coffee', 'coffeeify']
)
+ grunt.loadNpmTasks('grunt-coffeeify')
+ grunt.loadNpmTasks('grunt-contrib-less')
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-watch')
- grunt.registerTask('default', ['coffee']);
+ grunt.registerTask('default', 'watch')