gulp-tag-version running command?

主宰稳场 提交于 2019-12-13 04:58:22

问题


I installed gulp-tag-version, but when I am running the command 'gulp tag v1.1.1', it will not confirm this as a task

var gulp = require('gulp');
var tag_version = require('gulp-tag-version');  

gulp.task('tag', function() {
  return gulp.src(['./package.json']).pipe(tag_version());
});

So what am I doing wrong ?


回答1:


It looks like it has been added correct. The command however would be:

gulp tag

Which would look at the version in your package.json file and tag the last commit with it.

Refer to this example for more advanced features:

https://www.npmjs.com/package/gulp-tag-version#advanced-example-gulpfile-with-bumping-and-commiting



来源:https://stackoverflow.com/questions/32005849/gulp-tag-version-running-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!