gulp-package-version-format
v1.6.1
Published
A gulp plugin to unify the package.json version notation.
Downloads
5
Maintainers
Readme
gulp-package-version-format
Description
A gulp plugin to unify the package.json version notation.
package.jsonのバージョン表記を統一化するgulpのプラグインです。
sample
^1.2.3 → 1.x.x
^0.1.2 → 0.1.x
^0.0.1 → 0.0.1
Badge
Install
npm i gulp-package-version-format
yarn add gulp-package-version-format
API
gulpfile.js
const versionFormat = require('gulp-package-version-format');
gulp.task('versionFormat', () => {
return gulp.src('./package.json')
.pipe(versionFormat())
.pipe(gulp.dest('./'));
});
Options
versionFormat({
'wildcard': '*'
})
|option|default|description| |:----:|:----:|:----:| |wildcard|x| Specifies the wildcard to use. x or X or * |
Run
gulp versionFormat