1.0.1 • Published 2 years ago

ellie-cli v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Open in Visual Studio Code

Contributors Forks Stargazers Issues MIT License LinkedIn

About The Project

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

Built With

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

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

Documentation

flagargumentdescriptionrequired
-V --versionNoneoutput the version numberfalse
-i --inputinput.csvpath to csv filetrue
-u --updateNoneupdate the dependencyfalse
-t --tokenghp_00000000000000001GitHub personal access tokenfalse
-h --helpNonedisplay help for commandfalse
\<version>package to be checked againsttrue

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

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

License

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

Contact

Your Name - @sanjayybaskaran - sanjaybaskaran01@gmail.com

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

Contributors