Socket
Socket
Sign inDemoInstall

git-revision-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-revision-webpack-plugin - npm Package Compare versions

Comparing version 0.0.2 to 1.0.0

.travis.yml

2

lib/write-commithash-file.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc