1.1.0 • Published 5 years ago
@rseyferth/parcel-plugin-git-describe v1.1.0
parcel-plugin-git-describe
A parcel plugin that adds the git description to the environment.
The output of git describe is made available in the GIT_DESCRIBE environment variable,
and the output of git rev-parse --abbrev-ref HEAD is made available as GIT_BRANCH.
Installation
using npm:
npm i parcel-plugin-git-describe -Dusing yarn:
yarn add parcel-plugin-git-describe --devUsage
const version = process.env.GIT_DESCRIBE;
const branch = process.env.GIT_BRANCH;1.1.0
5 years ago