UNPKG

geojson

Version:
39 lines (36 loc) 940 B
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), simplemocha: { all: { src: ['test/*.js'] } }, mocha: { all: ['test/test.html'], options: { run: true } }, jshint: { files: ['geojson.js', 'test/test.js'] }, uglify: { options: { banner: '// <%= pkg.name %>.js - v<%= pkg.version %>\n' + '// (c) 2016 Casey Thomas, MIT License \n' }, dist: { files: { 'geojson.min.js': ['<banner>', 'geojson.js'] } } } }); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-simple-mocha'); grunt.loadNpmTasks('grunt-mocha'); grunt.registerTask('all', ['simplemocha', 'mocha', 'jshint', 'uglify']); grunt.registerTask('default', ['simplemocha', 'jshint', 'uglify']); };