UNPKG

geo-distance-js

Version:

A Node.js module which takes 2 Lat+Lng (Geolocation) points and returns the distance between the two points in Meters

34 lines (30 loc) 683 B
module.exports = function (grunt) { grunt.initConfig({ 'jshint': { 'src': [ './*.js' ], 'options': { 'jshintrc': '.jshintrc' } }, 'jscs': { 'src': '<%= jshint.src %>' }, 'mochaTest': { 'test': { 'src': [ 'tests/*.spec.js' ] } } }); require('load-grunt-tasks')(grunt); // Registers a task to test the task grunt.registerTask('test', [ 'jshint', 'jscs', 'mochaTest' ]); grunt.registerTask('default', ['test']); };