Last active
August 29, 2015 14:03
-
-
Save lobre/02cea383786e7a5a734f to your computer and use it in GitHub Desktop.
Gruntfile
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
module.exports = function(grunt) { | |
// load all grunt tasks matching the `grunt-*` pattern | |
require('load-grunt-tasks')(grunt); | |
// Project configuration. | |
grunt.initConfig({ | |
jshint: { | |
all: ['js/*.js'] | |
}, | |
compass: { | |
dist: { | |
options: {} | |
} | |
}, | |
watch: { | |
js: { | |
files: ['js/*.js', '!js/*min.js'], | |
tasks: ['jshint'], | |
options: { | |
livereload: true, | |
spawn: false | |
} | |
}, | |
css: { | |
files: ['css/*.css', '!css/*min.css'], | |
tasks: [], | |
options: { | |
livereload: true, | |
spawn: false | |
} | |
}, | |
sass: { | |
files: ['sass/*.scss'], | |
tasks: ['compass'], | |
options: { | |
livereload: true, | |
spawn: false | |
} | |
}, | |
html: { | |
files: ['*.html', '*/**.html'], | |
tasks: [], | |
options: { | |
livereload: true, | |
spawn: false | |
} | |
} | |
} | |
}); | |
// Default task(s). | |
grunt.registerTask('default', []); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment