gulp-gitversion
v0.0.8
Published
gulp plugin for appending git-version
Downloads
34
Maintainers
Readme
gulp-gitversion
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)*/