1.1.0 • Published 3 years ago

@rseyferth/parcel-plugin-git-describe v1.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

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 -D

using yarn:

yarn add parcel-plugin-git-describe --dev

Usage

const version = process.env.GIT_DESCRIBE;
const branch = process.env.GIT_BRANCH;