0.0.2 • Published 5 years ago
git-service-node v0.0.2
Quick start
This project is intended to be used with the latest Active LTS release of Node.js. 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