Skip to content

Instantly share code, notes, and snippets.

@s9tpepper
Forked from GarthDB/grunt.js
Created November 14, 2012 00:57
Show Gist options
  • Save s9tpepper/4069500 to your computer and use it in GitHub Desktop.
Save s9tpepper/4069500 to your computer and use it in GitHub Desktop.
Fixme Grunt!
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
coffeeFiles: ['js/*.coffee', '!node_modules/**'],
cssFiles: ['css/*.styl', '!node_modules/**'],
watch: {
scripts: {
files: '<config:coffeeFiles>',
tasks: 'coffee'
},
styles: {
files: '<config:cssFiles>',
tasks: 'stylus'
}
},
coffee: {
compile: {
files: {
'js/*.js': '<config:coffeeFiles>'
}
},
},
jade: {
options: {
pretty: true
},
compile: {
files: {
'index.html': ['index.jade', '!node_modules/**']
}
}
},
stylus: {
compile: {
files: {
'css/*.css': '<config:cssFiles>'
}
},
}
});
grunt.loadNpmTasks('grunt-contrib');
// Default task.
grunt.registerTask('default', ['coffee', 'jade', 'stylus']);
};
@s9tpepper
Copy link
Author

I haven't done this before cause I don't use CS, but I'd try this next, using an arbitrary property in the config object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment