gulp-gitversion

0.0.8 • Public • Published

gulp-gitversion Build Status

gulp plugin for appending git-version

Usage

npm install gulp-gitversion --save-dev
var gitVersion = require('gulp-gitversion');

Append git version

auto detecting by extension name

If you don't specify the type, it will be decided it by file extension name.

Support type

  • js
  • css
  • html

.pipe(gitVersion());

js

.pipe(gitVersion({type:'js'}));

;
// git version: 5a0b54d81689bfd0afa30698a73e3fd92558feab
//created at: Thu May 29 2014 15:33:18 GMT+0800 (CST)

html

.pipe(gitVersion({type:'html'}))

<!-- git version: 5a0b54d81689bfd0afa30698a73e3fd92558feab -->
<!-- created at: Thu May 29 2014 15:33:18 GMT+0800 (CST) -->

css

.pipe(gitVersion({type:'css'}))

/* git version: 5a0b54d81689bfd0afa30698a73e3fd92558feab */
/* created at: Thu May 29 2014 15:33:18 GMT+0800 (CST)*/

Dependencies (1)

Dev Dependencies (4)

Package Sidebar

Install

npm i gulp-gitversion

Weekly Downloads

17

Version

0.0.8

License

MIT

Last publish

Collaborators

  • blackbing