Skip to content

Artur93gev/repo-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App-loader

Script can be usefull if you want to manipulate with repositories.

Usage example

// config.js
const load = require('@artur93gev/app-loader');

const configs = {
  app: {
    path: 'some_local_path',
    repositoryUrl: 'some_git_repository_url',
    branch: 'prod_branch_name',
    devBranch: 'dev_branch_name',
  },
  app1: {
    path: 'some_local_path1',
    repositoryUrl: 'some_git_repository_url',
    branch: 'prod_branch_name',
    devBranch: 'dev_branch_name',
  },
};

load(configs);

Than in you can call it from command line executing node config.js. The script will clone the repository either from devBranch or from branch depending on process.env.NODE_ENV(default master).

About

A tiny node script, that will allow to clone a repository into given location.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published