Skip to content

Instantly share code, notes, and snippets.

@matthamil
Created August 18, 2016 15:13
Show Gist options
  • Save matthamil/90c1c940753ad6b76f0bc3f771743953 to your computer and use it in GitHub Desktop.
Save matthamil/90c1c940753ad6b76f0bc3f771743953 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
browserify: {
'../dist/app.js': ['../js/quiz.js']
},
jshint: {
options: {
predef: [ "document", "console" ],
esnext: true,
globalstrict: true,
browserify: true
},
files: ['../js/**/*.js']
},
watch: {
javascripts: {
files: ['../js/**/*.js'],
tasks: ['jshint', 'browserify']
}
},
jshintrc: './.jshintrc'
 });
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.registerTask('default', ['browserify', 'jshint', 'watch']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment