grunt-package-github

Adds information from Github about this project to package.json

Usage no npm install needed!

<script type="module">
  import gruntPackageGithub from 'https://cdn.skypack.dev/grunt-package-github';
</script>

README

grunt-package-github

Adds information from Github about this project to package.json

Build Status

NPM

Getting Started

This plugin requires Grunt ~0.4.1

npm install grunt-package-github --save-dev

The "package-github-data" task

Overview

This plugin will add the lastCommitTimestamp and lastCommitSha to the package.json. These are both retrieved from Github using the config below.

Config

This plugin requires a config sections named package-github-data passed into grunt.initConfig().

grunt.initConfig({
  package-github-data: {
    options: {
        github: {
            user: "your_github_user",
            repo: "your_github_repo",
            o_auth_token: "your_github_o_auth_token"
        }
    }
  }
})