gulp-tag-version运行命令? [英] gulp-tag-version running command?
问题描述
我安装了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屋!