@artur93gev/app-loader

The script will allow to load any repository into needed location by a single config file

Usage no npm install needed!

<script type="module">
  import artur93gevAppLoader from 'https://cdn.skypack.dev/@artur93gev/app-loader';
</script>

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).