gulp-tag-version运行命令? [英] gulp-tag-version running command?

查看:163
本文介绍了gulp-tag-version运行命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了gulp-tag-version,但是当我运行命令'gulp tag v1.1.1'时,它不会将其确认为任务

  var gulp = require('gulp'); 
var tag_version = require('gulp-tag-version');
$ b gulp.task('tag',function(){
return gulp.src(['./ package.json'])。pipe(tag_version());
});

那么我做错了什么?

解决方案

它看起来像添加了正确的。然而,该命令是:

  gulp tag 

这将查看package.json文件中的版本并标记最后一次提交。



请参阅此示例更高级的功能:

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


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 ?

解决方案

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

这篇关于gulp-tag-version运行命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆