git-service-node

0.0.2 • Public • Published

Quick start

This project is intended to be used with the latest Active LTS release of [Node.js][nodejs]. To start, just clone the repository with following commands:

git clone https://github.com/akashshinde/git-service-lib
cd git-service-lib
npm install

How to use

Get git service from factory method

 const service = getGitService(gitsource, gitprovider);

API available

Check if Repo exist

 const resp = service.isRepoReachable();

Get list of branches

 const branchList = service.getRepoBranchList();

Detect build type

 const buildTypes = service.detectBuildType();

Get list of files exist in the repo

 const buildTypes = service.detectBuildType();

Available scripts

  • clean - remove coverage data, Jest cache and transpiled files,
  • build - transpile TypeScript to ES6,
  • build:watch - interactive watch mode to automatically transpile source files,
  • lint - lint source files and tests,
  • test - run tests,
  • test:watch - interactive watch mode to automatically re-run tests

/git-service-node/

    Package Sidebar

    Install

    npm i git-service-node

    Weekly Downloads

    1

    Version

    0.0.2

    License

    Apache-2.0

    Unpacked Size

    192 kB

    Total Files

    28

    Last publish

    Collaborators

    • akashshinde