Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naokikimura/gulp-unify-versions
Unify the version numbers in manifest files
https://github.com/naokikimura/gulp-unify-versions
Last synced: 23 days ago
JSON representation
Unify the version numbers in manifest files
- Host: GitHub
- URL: https://github.com/naokikimura/gulp-unify-versions
- Owner: naokikimura
- License: mit
- Created: 2020-01-28T06:35:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T09:14:54.000Z (4 months ago)
- Last Synced: 2024-11-28T15:17:07.900Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/gulp-unify-versions
- Size: 710 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-unify-versions
[![npm version](https://badge.fury.io/js/gulp-unify-versions.svg)](https://badge.fury.io/js/gulp-unify-versions) [![CircleCI](https://circleci.com/gh/naokikimura/gulp-unify-versions.svg?style=svg)](https://circleci.com/gh/naokikimura/gulp-unify-versions) [![Known Vulnerabilities](https://snyk.io/test/github/naokikimura/gulp-unify-versions/badge.svg?targetFile=package.json)](https://snyk.io/test/github/naokikimura/gulp-unify-versions?targetFile=package.json)
Unify the version numbers in manifest files
## Installation
```sh
npm i -D gulp-unify-versions
```## Usage
This is useful when you want to synchronize the version of the manifest file in conjunction with the [npm version](https://docs.npmjs.com/cli/version) command.
For example:
Add the following task to `gulpfile.js`.
```js
const gulp = require('gulp');exports['version:unify'] = async function () {
const unify = require('gulp-unify-versions');
return gulp.src('./manifest.json')
.pipe(unify('./package.json'))
.pipe(gulp.dest('./'));
}```
Add a `version` script to `package.json` as follows.
```diff
"script": {
+ "version": "gulp version:unify && git add manifest.json"
}
```When `npm version patch` is executed, the `version` of `package.json` and the `version` of `manifest.json` are the same.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/naokikimura/gulp-unify-versions## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).