@artur93gev/app-loader
v1.0.3
Published
The script will allow to load any repository into needed location by a single config file
Downloads
6
Readme
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).