0.5.10 • Published 2 years ago
ui5-version-automator v0.5.10
ui5-version-automator
An npm package that automates versioning for SAP UI5 applications, streamlining the release process and ensuring version consistency.
Installation
To install the package, run the following command:
npm install ui5-version-automatorUsage
To use the package, follow these steps:
- Import the module into your code using
const versionManager = require('ui5-version-automator')- Call the
readManifestfunction to read the manifest.json file. For example:
const manifestPath = './manifest.json';
const manifestData = versionManager.readManifest(manifestPath);- Call the readCurrentVersion function to get the current version number from the manifest data. For example:
const currentVersion = versionManager.readCurrentVersion(manifestData);- Call the incrementMajorVersion or incrementMinorVersion function to increment the version number. For example:
const newVersion = versionManager.incrementMajorVersion(currentVersion);- Call the prepareManifest function to prepare a new manifest.json file with the updated version number. For example:
const newManifest = versionManager.prepareManifest(manifestData, newVersion);- Write the new manifest.json file to disk using the writeManifest function. For example:
versionManager.writeManifest(manifestPath, newManifest);- Use any other functionalities provided by the module as needed.
#Contributing Contributions are welcome! To contribute to the project, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with a descriptive message.
- Push your changes to your fork.
- Submit a pull request to the main repository.
#License This project is licensed under the MIT License. See the LICENSE file for details.
Let me know if you have any questions or need further assistance!