aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.coffee
blob: cf72ee207fee96a52ce1aceedec6565041422f38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = (grunt) ->
  grunt.initConfig(
    pkg: grunt.file.readJSON('package.json')
    coffee:
      server: 
        expand: true
        cwd: 'src'
        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')
  grunt.registerTask('default', ['less', 'coffee']);