1.3.0 • Published 5 years ago

@janiscommerce/environment-builder v1.3.0

Weekly downloads
43
License
ISC
Repository
github
Last release
5 years ago

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');

})();
1.3.0

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago