Plato on Github
Report Home
release/tag.js
Maintainability
80.32
Lines of code
25
Difficulty
7.45
Estimated Errors
0.18
Function weight
By Complexity
By SLOC
'use strict'; var packagePath = __dirname + '/../../package.json'; var gulp = require('gulp'); var path = require('path'); var argv = require('yargs').argv; var $ = require('gulp-load-plugins')({config: path.normalize(packagePath)}); var config = { name: 'release:tag', callback: callback }; module.exports = config; ///////////////////////////// /*jshint unused:false*/ function callback(settings, done) { return gulp.src('./') .pipe($.shell('git tag v' + argv.v)) .pipe($.shell('git push origin --tags')) .pipe($.size({title: 'release:tag'})); }