How to use the git-describe.gitDescribe function in git-describe

To help you get started, we’ve selected a few git-describe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github HearthSim / Joust / gulpfile.js View on Github external
gulp.task("env:set-release", function(cb) {
	gitDescribe(__dirname, { match: null }).then(function(gitInfo) {
		var release = gitInfo.semverString;
		if (!release) {
			throw Error("Unable to determine release");
		}
		gutil.log("Setting JOUST_RELEASE to", gutil.colors.green(release));
		process.env.JOUST_RELEASE = release;
		cb();
	});
});

git-describe

Git describe information at runtime, with semver support

MIT
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis