Created
October 30, 2013 23:04
-
-
Save andrewmartin/7241834 to your computer and use it in GitHub Desktop.
sample gruntfile for coffee only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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