Last active
August 29, 2015 13:57
-
-
Save TJkrusinski/9507961 to your computer and use it in GitHub Desktop.
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
// 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