Skip to content

Instantly share code, notes, and snippets.

@andrewmartin
Created October 30, 2013 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewmartin/7241834 to your computer and use it in GitHub Desktop.
Save andrewmartin/7241834 to your computer and use it in GitHub Desktop.
sample gruntfile for coffee only
"use strict"
module.exports = (grunt) ->
# load all grunt tasks
require("matchdep").filterDev("grunt-*").forEach grunt.loadNpmTasks
# config
grunt.initConfig
watch:
options:
spawn: false
coffee:
files: ["public/javascripts/**/*.coffee"]
tasks: ["coffee"]
# compiles all coffeescript 1 to 1
coffee:
dev:
options:
sourceMap: true
expand: true
cwd: "public/javascripts"
src: "**/*.coffee"
dest: "public/javascripts"
ext: ".js"
# Tasks
grunt.registerTask('default', ['watch'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment