A lot of our microservices are written in Node.js and making sure that the dependencies for these services are up to date can be a bit of a hassle. This CLI solves this Problem.
Given a list of Github repositories, assuming all of them are node js projects with a package.json
and package-lock.json
in the root, and the name and version of a dependency, we want to give the current version of that dependency and tell if the version is greater than or equal to the version specified or not.
For Example, considering we feed them a list of repositories in a CSV like this:
name | repo |
---|---|
dyte-react-sample-app | https://github.com/dyte-in/react-sample-app/ |
dyte-js-sample-app | https://github.com/dyte-in/javascript-sample-app |
dyte-sample-app-backend | https://github.com/dyte-in/backend-sample-app |
Explore the docs »
View Demo · Report Bug · Request Feature
Table of Contents
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/dyte-submissions/dyte-vit-2022-kanitmann.git
- Install NPM packages
npm install
- Globally install the to use CLI tool
npm install -g .
- Run the Destro tool
destro --help
- Implement CLI commands
- Read CSV file
- Compare Versions
- Read Version from CLI
- Fetch Versions from URL
- Compare and Write results in CSV
- Raise Pull Request
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GNU GPL-3.0 License. See LICENSE.txt
for more information.
Kanit Mann -- mannkanit@gmail.com
Project Link: https://github.com/dyte-submissions/dyte-vit-2022-kanitmann/