 module.exports = (grunt) ->
+  jasmine = './node_modules/jasmine-focused/bin/jasmine-focused'
+  lessc = './node_modules/less/bin/lessc'
+  theme = 'themes/default'
+
   grunt.initConfig
     pkg: grunt.file.readJSON('package.json')
 

        expand: true
        cwd: 'bootstrap/dist/css'
        src: '*.min.css'
        dest: 'themes/default/static/'
      js:
        expand: true
        cwd: 'bootstrap/dist/js'
        src: '*.min.js'
        dest: 'themes/default/static/'
      fonts:
        expand: true
        cwd: 'bootstrap/dist/fonts'
        src: '*'
        dest: 'themes/default/static/'

    coffeelint:
      options: grunt.file.readJSON('coffeelint.json')


    shell:
      spec:
        command: "#{jasmine} --captureExceptions --coffee spec/"
        options:
          stdout: true
          stderr: true
          failOnError: true

      less:
        command: "#{lessc} ./#{theme}/stylesheets/base.less > ./#{theme}/static/base.css"
        options:
          stdout: true
          stderr: true
