pokemap
Version:
PokemonGo-Map APIs for node.js
47 lines (41 loc) • 992 B
JavaScript
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'js/*.js', '!js/vendor/**/*.js'],
options: {
reporter: require('jshint-stylish'),
globals: {
jQuery: true,
console: true,
module: true,
document: true
}
}
},
watch: {
options: {
interval: 1000,
spawn: true
},
src: {
files: ['**/*.html'],
options: { livereload: true }
},
js: {
files: ['**/*.js', '!node_modules/**/*.js', '!static/dist/**/*.js'],
options: { livereload: true },
tasks: ['uglify']
},
css: {
files: '**/*.css',
options: { livereload: true },
tasks: []
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-html-validation');
grunt.registerTask('default', ['jshint', 'watch']);
};