git-revision-webpack-plugin
Advanced tools
Comparing version 0.0.2 to 1.0.0
@@ -7,3 +7,3 @@ var exec = require('child_process').exec | ||
exec('git rev-parse HEAD', function (err, stdout) { | ||
if (err) { callback(err) } | ||
if (err) { return callback(err) } | ||
const version = removeEmptyLines(stdout) | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ var exec = require('child_process').exec | ||
exec('git describe', function (err, stdout) { | ||
if (err) { callback(err) } | ||
if (err) { return callback(err) } | ||
const version = removeEmptyLines(stdout) | ||
@@ -10,0 +10,0 @@ |
{ | ||
"name": "git-revision-webpack-plugin", | ||
"version": "0.0.2", | ||
"version": "1.0.0", | ||
"description": "Simple webpack plugin that generates VERSION and COMMITHASH files during build", | ||
@@ -22,3 +22,6 @@ "main": "lib/index.js", | ||
}, | ||
"homepage": "https://github.com/pirelenito/git-revision-webpack-plugin" | ||
"homepage": "https://github.com/pirelenito/git-revision-webpack-plugin", | ||
"devDependencies": { | ||
"standard": "^6.0.5" | ||
} | ||
} |
# Git Revision Webpack Plugin | ||
[![Build Status](https://travis-ci.org/pirelenito/git-revision-webpack-plugin.svg)](https://travis-ci.org/pirelenito/git-revision-webpack-plugin) | ||
[![npm version](https://badge.fury.io/js/git-revision-webpack-plugin.svg)](https://badge.fury.io/js/git-revision-webpack-plugin) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) | ||
[![Code Climate](https://codeclimate.com/github/pirelenito/git-revision-webpack-plugin/badges/gpa.svg)](https://codeclimate.com/github/pirelenito/git-revision-webpack-plugin) | ||
Simple [webpack](http://webpack.github.io/) plugin that generates `VERSION` and `COMMITHASH` files during build based on a local [git](http://www.git-scm.com/) repository. | ||
@@ -4,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3723
8
0
41
1