public class NpmProjectType extends Object
| Constructor and Description |
|---|
NpmProjectType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(File directory)
Check if the project is a NPM project (i.e a package.json is found).
|
com.github.zafarkhaja.semver.Version |
getCurrentVersion(File directory,
ProcessHelper processHelper)
Return the next version of the version attribute.
|
public boolean check(File directory)
directory - The directory of the project.public com.github.zafarkhaja.semver.Version getCurrentVersion(File directory, ProcessHelper processHelper) throws IOException
directory - The project's directory.processHelper - Not used.IOException - If an error occur reading files.Copyright © 2016–2021. All rights reserved.