Gathering detailed insights and metrics for grunt-autoversion
Gathering detailed insights and metrics for grunt-autoversion
Gathering detailed insights and metrics for grunt-autoversion
Gathering detailed insights and metrics for grunt-autoversion
ger version fields by git status, write to package.json
npm install grunt-autoversion
Typescript
Module System
Min. Node Version
NPM Version
55.5
Supply Chain
83.5
Quality
72.4
Maintenance
25
Vulnerability
98.2
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
BSD-2-Clause License
3 Commits
1 Watchers
4 Branches
1 Contributors
Updated on Jul 26, 2014
Latest Version
0.0.3
Package Id
grunt-autoversion@0.0.3
Size
3.78 kB
NPM Version
1.4.21
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
4
get version by git status, wirte to package.json
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
1npm install grunt-autoversion --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
1grunt.loadNpmTasks('grunt-autoversion');
In your project's Gruntfile, add a section named autoversion
to the data object passed into grunt.initConfig()
.
1grunt.initConfig({
2 autoversion: {
3 options: {
4 // Task-specific options go here.
5 },
6 your_target: {
7 // Target-specific file lists and/or options go here.
8 },
9 },
10});
Type: String
Default value: 'git status'
version number of 'git status' stdout text.
Type: Regex
Default value: /^On branch (?:.+\/)?(.+?)$/m
A regex object, match version number of command stdout.
Type: Array
Default value: [{file: 'package.json', field: 'version'}]
In this example, the default options are used to do something with whatever. So if the testing
file has the content Testing
and the 123
file had the content 1 2 3
, the generated result would be Testing, 1 2 3.
1grunt.initConfig({ 2 autoversion: { 3 options: {}, 4 files: { 5 'dest/default_options': ['src/testing', 'src/123'], 6 }, 7 }, 8});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
(Nothing yet)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More