Skip to content

Latest commit

 

History

History
275 lines (191 loc) · 8.68 KB

README.md

File metadata and controls

275 lines (191 loc) · 8.68 KB

Open in Visual Studio Code

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Ellie-CLI

CLI tool to update dependencies hassle-free
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Documentation
  5. Drawbacks
  6. License
  7. Contact
  8. Contributors

About The Project

                  _____   _   _   _                   ____   _       ___ 
                 | ____| | | | | (_)   ___           / ___| | |     |_ _|
                 |  _|   | | | | | |  / _ \  _____  | |     | |      | | 
                 | |___  | | | | | | |  __/ |_____| | |___  | |___   | | 
                 |_____| |_| |_| |_|  \___|          \____| |_____| |___|
                                                                         

(back to top)

Built With

(back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

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
  • yarn

    npm install -g yarn

Installation

  1. Clone the repo
    git clone https://github.com/dyte-submissions/dyte-vit-2022-sanjaybaskaran01.git
  2. Install NPM packages
    yarn install
  3. Build the app
    yarn build
  4. Run the CLI
    ellie-cli --help

(back to top)

Usage

ellie-cli -i input.csv packageName@version


ellie-cli -i input.csv packageName@version -t <token> -u

For more examples, please refer to the Documentation

(back to top)

Documentation

flag argument description required
-V --version None output the version number false
-i --input input.csv path to csv file true
-u --update None update the dependency false
-t --token ghp_00000000000000001 GitHub personal access token false
-h --help None display help for command false
<version> package to be checked against true

(back to top)

Sample Input

  • Now supports package manager option pass in 'npm' or 'yarn' as an additional data for the repo , default: npm

input.csv

dyte-react-sample-app,https://github.com/dyte-in/react-sample-app,npm
dyte-js-sample-app,https://github.com/dyte-in/javascript-sample-app
dyte-sample-app-backend,https://github.com/dyte-in/backend-sample-app

(back to top)

Drawbacks

  1. Creating a PR also temporarily creates a folder ( gets deleted after job ) which generates only package-lock ( Takes time but better than completing cloning or installing all the node_modules) PS: Look at src/lib/lockFileGenerator.ts // FIXED

    BEFORE

    AFTER

  2. The changes are committed to a static branch name where error might arise if branch already exists PS: Look at src/lib/generatePR.ts // FIXED

    BEFORE

    AFTER

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Your Name - @sanjayybaskaran - sanjaybaskaran01@gmail.com

Project Link: https://github.com/dyte-submissions/dyte-vit-2022-sanjaybaskaran01

(back to top)

Contributors


Sanjay Baskaran

💥

(back to top)