Created
April 22, 2014 19:36
-
-
Save mattboldt/11191623 to your computer and use it in GitHub Desktop.
Gruntfile
This file contains 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
module.exports = (grunt) -> | |
grunt.loadNpmTasks('grunt-contrib-watch') | |
grunt.loadNpmTasks('grunt-contrib-concat') | |
grunt.loadNpmTasks('grunt-contrib-coffee') | |
grunt.loadNpmTasks('grunt-sass') | |
grunt.initConfig | |
pkg: grunt.file.readJSON('package.json') | |
coffee: | |
compile: | |
expand: true, | |
flatten: true, | |
src: ['assets/javascripts/*.coffee'], | |
dest: 'assets/javascripts/', | |
ext: '.js' | |
sass: | |
compile: | |
expand: true, | |
flatten: true, | |
src: ['assets/stylesheets/main.scss'], | |
dest: 'assets/stylesheets/', | |
ext: '.css' | |
# concat: | |
# options: | |
# # define a string to put between each file in the concatenated output | |
# separator: ';' | |
# dist: | |
# src: ['assets/javascripts/**/*.js'] | |
# dest: 'assets/javascripts/main.js' | |
watch: | |
coffee: | |
files: 'assets/javascripts/**/*.coffee' | |
tasks: ['coffee:compile'] | |
sass: | |
files: 'assets/stylesheets/**/*.scss' | |
tasks: ['sass:compile'] | |
options: | |
livereload: true | |
grunt.registerTask('default', ['watch']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment