Skip to content

Instantly share code, notes, and snippets.

@TJkrusinski
Last active August 29, 2015 13:57
Show Gist options
  • Save TJkrusinski/9507961 to your computer and use it in GitHub Desktop.
Save TJkrusinski/9507961 to your computer and use it in GitHub Desktop.
// make andrew a gist of a Gruntfile with watch and express
module.exports = function(grunt){
grunt.initConfig({
concurrent: {
dev: ['watch:sass', 'watch:browserify'],
},
watch: {
browserify: {
files: ['public/js/**/*.js'],
tasks: ['browserify:dev'],
},
sass: {
files: ['public/sass/**/*.scss'],
tasks: ['sass:dev'],
},
},
sass: {
dev: {
files: {
'public/css/main.css': 'public/sass/main.scss',
},
},
prod: {
// prod jazz
},
},
browserify: {
dev: {
files: {
'public/build/app.js': 'public/js/app.js'
},
},
prod: {
// prod jazz
},
}
});
grunt.loadNpmTasks('grunt-concurrent');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-browserify');
grunt.registerTask('default', ['concurrent']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment