Narcissistic Passion Minified
    Wondering what’s next for npm?Check out our public roadmap! »

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

    Keywords

    none

    Install

    npm i @artur93gev/app-loader

    DownloadsWeekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    2.81 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar