Find and map the geographic center of a github repo
This plugin requires Grunt ~0.4.1
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-geo --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-geo');
In your project's Gruntfile, add a section named geo
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
geo: {
collaborators: {
options: {
// file: 'name of the file you want (defaults to collaborators.geojson)'
// repo: 'the https url to a github api of a repo, uses package.json to default to current project'
// token: 'your github api token for issuing requests beyond the anon rate limits'
},
},
},
})
Type: String
Default value: 'collaborators.geojson'
A string value that is used as the name of the file you'd like to create
Type: String
Default value: 'https://api.github.com/repos/{user}/{repo}'
A string value used to create geojson from any other github repo
Type: String
Default value: none
A string value used to make more requests than the anon github rate limits let you
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
(Nothing yet)