@artur93gev/app-loader

1.0.3 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @artur93gev/app-loader

    Weekly Downloads

    2

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    2.81 kB

    Total Files

    3

    Last publish

    Collaborators

    • artur93gev