git-hash-package
Get git hash and set in package.json
Last updated 2 years ago by metnew .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install git-hash-package 
SYNC missed versions from official npm registry.

git-hash-package

What does it do?

This package gets info about your git repo (long hash + short hash + branch) and stores this data in your package.json.

Why?

I faced next issue:
If we can't use git log inside Docker container in git subrepo in production, we need to store info about git in local files. Storing info about the current git state in package.json was a good decision. This module solves my issue.

Install

npm i git-hash-package

Or if you want to run it globally(Thanks to @teebu and his awesome PR):

  npm i -g git-hash-package

Usage

git-hash-package # run
git-hash-package --verbose # run with verbose output about current git state (short + long hashes + branch)

Author

Vladimir Metnew vladimirmetnew@gmail.com

License

MIT

Current Tags

  • 1.0.6                                ...           latest (2 years ago)

7 Versions

  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 2
Last Month 3
Dependencies (7)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |