Skip to content

Will update sonar-project.properties projectName and projectVersion platform independent

License

Notifications You must be signed in to change notification settings

mricharz/sonar-project-properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sonar-project-properties


Update sonar-project.properties projectName and projectVersion platform independent.

How to use

Install

// with npm
npm i sonar-project-properties

// with yarn
yarn add sonar-project-properties

Setup

Add a script to your package.json which will then update the properties. As example you can run the script before test-coverage like so:

"scripts": {
  ...
  "pretest-coverage": "update-sonar-properties"
  ...
}

CLI Arguments

Options:
  --help                      Show help                                [boolean]
  --version                   Show version number                      [boolean]
  --sp, --skipProjectName     Skip updating projectName                [boolean]
  --sk, --skipProjectKey      Skip updating projectKey                 [boolean]
  --sv, --skipProjectVersion  Skip updating projectVersion             [boolean]
  --file                      Path to your sonar-project.properties
                                           [default: "sonar-project.properties"]
  -v, --verbose               Verbose output                           [boolean]

About

Will update sonar-project.properties projectName and projectVersion platform independent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published