stupid-dependency-tracker
v0.0.1
Published
[![Open in Visual Studio Code](https://classroom.github.com/assets/open-in-vscode-c66648af7eb3fe8bc4f294546bfd86ef473780cde1dea487d3c4ff354943c9ae.svg)](https://classroom.github.com/online_ide?assignment_repo_id=7944612&assignment_repo_type=AssignmentRepo
Downloads
2
Readme
About The Project
A command line tool for checking dependency versions across npm packages.
So you might have a question
What's about this name stupid-dependency-tracker
? Why is it called that?
Yeah, you guessed right it's a stupid tool that updates dependencies of open source projects built with npm, it does not care about your personal projects.
However it's a great tool for checking out the versions of your dependencies against a set version.
Getting Started
Two ways to use this tool:
- Build Locally
- Install and Run Globally
Prerequisites
Please install and configure the following before building or running this tool:
- Node.js
- NPM
- Git (Getting Started)
- Github Personal Access Token (required for creating pull requests)
Installation
Build Locally
Clone the repository
git clone https://github.com/dyte-submissions/dyte-vit-2022-nexus-hash
Navigate to the project root directory and install dependencies
npm install
Export the tool to global node_modules
sudo npm link
You are ready to use the tool!
stdt --help
Example
Execute the following command while in the project root directory to compare versions
stdt -i index.csv [email protected]
Execute the following command to make a pull request
stdt -u -i index.csv [email protected]
Install and Run Globally
Install the tool globally
npm install -g stupid-dependency-tracker
Now update the packages and create pull requests !!!
stdt --help
Example
Get the path to csv file and then run the command to check dependency
stdt -i <pathToCSVFile> <packagename>@<version>
Run the following command to update the package and create a pull request
stdt -u -i <pathToCSVFile> <packagename>@<version>
or
stdt --update -i <pathToCSVFile> <packagename>@<version>
Format of CSV File
```
repo,name
<repo_url>, <project_name>
```
Outputs
- Output for only dependency check
2. Output for update and create pull request
Usage
- Use this tool to check the versions of dependencies across any project or multiple projects.
- This tool now supports pull requests for opensource projects with package.json.
- This tool creates pull request on behalf of the user.
- It is not designed to make pull requests for your own repositories as of now.
Roadmap
- [ ] Add support to check private repositories
- [ ] Add support to update dependencies for user on their own repositories
See the open issues for a full list of proposed features (and known issues).
Running Tests
- Tests are in the
test
directory. - Run the tests with
npm test
before submitting a pull request.
npm test
Contributing
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
License
Distributed under the MIT License. See LICENSE.txt
for more information.