
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
grunt-project-version-updater
Advanced tools
Update you project version
from one place using grunt, frameworks supported
grunt cli
$ sudo npm install -g grunt-cli
from terminal
grunt update --mg-v 0.0.1
from Gruntfile
projectVersionUpdater: {
default: {
options:{
version: '1.0', // or --mg-v from commandline. The version of the project
commitVersion: true, // commit on git after update project version, to work git option file have to be on last item of list
overrideTag: false, // delete git tag if it exists, then create it again for the last commit
commitMessage: 'setting version' // or --mg-m from commandline. Message to commit if commitVersion is able
},
files: {
sonar: ['sonar-project.properties'], // you need to pass array
npm: ['.'],
git: ['.'] // if the property is not passed the framework will no be updated
}
}
}
....
On this project you can test it running
$ npm install
$ grunt update --mg-v 5.0.0
Running "projectVersionUpdater:default" (projectVersionUpdater) task
5.0.0
>> updating: sonar ...
sonar-project.properties
>> sonar updated!
>> updating: git ...
.
>> git updated!
>> updating: npm ...
package.json
>> npm updated!
>> ... all done!
or
grunt update # to update from Gruntfile.js fixed version
$ npm install grunt-project-version-updater --save-dev
setting on Gruntfile.js
projectVersionUpdater: {
default: {
options:{
},
files: {
sonar: ['sonar-project.properties'],
npm: ['.'],
git: ['.']
}
}
}
...
grunt.registerTask('update', ['projectVersionUpdater']);
Terminal have preference
--mg-v
The version of the project
--mg-m
Message to commit if commitVersion is able
options: {
version: null,
commitVersion: true,
overrideTag: false,
commitMessage: 'setting version'
}
FAQs
Set git, sonar, npm version from only one place
The npm package grunt-project-version-updater receives a total of 0 weekly downloads. As such, grunt-project-version-updater popularity was classified as not popular.
We found that grunt-project-version-updater demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.