Skip to content

janis-commerce/environment-builder

Repository files navigation

environment-builder

Build Status Coverage Status

Build the exclusive files of each environment in the right config folder.

Usage (command line)

In the console

npx @janiscommerce/environment-builder [ENVIRONMENT]
  • [ENVIRONMENT] name of the environment you want to build. If it's empty will be 'local'.
  • The files will be copy in /root/config/.
  • If there are files in /root/config/ will be removed, and replace with the new ones.

Configuration

The environments should be located in the folder /root/environments/[ENVIRONMENT]. It mustn't be empty.

Usage (module)

const EnvironmentBuilder = require('@janiscommerce/environment-builder');

API

new EnvironmentBuilder()

Constructs the EnvironmentBuilder instance.

async execute(environment)

Builds the environment for the specified environment [String].

Examples

const EnvironmentBuilder = require('@janiscommerce/environment-builder');

const environmentBuilder = new EnvironmentBuilder();

(async () => {

	await environmentBuilder.execute('local');

})();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published