configurator sources
12 files changed
tree: c4c0f3db3fa0792947a978a6348ec2a8d080055f
  1. configurator/
  2. README.md
README.md

Openserverless Configurator task

Development:

The configurator is inside the configurator folder. The entrypoint is the configurator/index.ts file. It simply calls the configurator main function.

All the logic is inside the configurator/configurator.ts file. Of course, you can add more files and change the structure as you see fit.

Inside the configurator folder, first install dependencies:

bun install

In the package.json file there are a couple of scripts. The start script will run the configurator:

bun run start

Tests:

There are unit tests inside the configurator/test folder. You can run them with the following command:

bun run test

Building:

To build the configurator and generate the configurator.js file, run the following command:

bun run build

It will generate the configurator.js file and move it in the parent, where it can be used by the opsfile task.