Skip to content

env-setup

The env-setup Nx plugin provides three executors to manage your local environment configuration, including creating a bucket, inserting configurations, and inserting schemas. This README will guide you through the usage of each executor and provide essential information about the plugin.

Table of Contents

Create Bucket Executor

The Create Bucket Executor allows you to create a bucket using the Minio client. To use this executor, follow these steps:

Executor Configuration

Add a target in targets of the project project.json:

...
"create-bucket": {
      "executor": "@nx-plugins/env-setup:create-bucket"
    }
...

Executor Usage

Run the Create Bucket Executor using the following command:

npx nx create-bucket your-project-name --name=your-bucket-name

Insert Configurations Executor

The Insert Configurations Executor allows you to insert configuration files into a specified endpoint. To use this executor, follow these steps:

Executor Configuration

Add a target in targets of the project project.json:

...
"insert-configs": {
      "executor": "@nx-plugins/env-setup:insert-configs"
    }
...

Executor Usage

Run the Insert Configurations Executor using the following command:

npx nx insert-configs your-project-name --source=your-source-name

Insert Schemas Executor

The Insert Schemas Executor allows you to insert schema files into a specified endpoint. To use this executor, follow these steps:

Executor Configuration

Add a target in targets of the project project.json:

...
"insert-schemas": {
      "executor": "@nx-plugins/env-setup:insert-schemas"
    }
...

Executor Usage

Run the Insert Schemas Executor using the following command:

npx nx insert-schemas your-project-name --source=your-source-name

Insert File Catalogs Executor

The Insert File Catalogs Executor allows you to insert file catalog files into a specified endpoint. To use this executor, follow these steps:

Executor Configuration

Add a target in targets of the project project.json:

...
"insert-file-catalogs": {
      "executor": "@nx-plugins/env-setup:insert-file-catalogs"
    }
...

Executor Usage

Run the Insert Schemas Executor using the following command:

npx nx insert-file-catalogs your-project-name --source=your-source-name

Feel free to customize the provided executor configurations and adapt them to your project's needs. For more information on Nx and the available options, please refer to the Nx documentation.