Skip to content

πŸ”§ TS script that allow you to generate a configuration with credentials from a template and environment with Bun

Notifications You must be signed in to change notification settings

TekMath/Config-Builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”§ Config Builder

Typescript Bun Docker

TS script that allow you to generate a configuration with credentials from a template and environment with Bun

πŸ“¦ Installation

You can use the script very easily with Docker or locally with bun directly.

Docker

  • Use docker command
docker build -t configbuilder .

or

  • Use package manager (npm / yarn / bun) work
npm run docker-build

Local

Install bun with the command:

curl -fsSL https://bun.sh/install | bash # for macOS, Linux, and WSL

If you are on windows, use npm:

npm install -g bun

πŸ‘¨β€πŸ’» Usage

First, create a folder ./config where you will past all your configs.
Note that you are able to edit path & env name in index.ts.
The configuration file should look like this:

./config
β”œβ”€β”€ template
β”‚   β”œβ”€β”€ test1.template.json
β”‚   β”œβ”€β”€ subfolder
β”‚   β”‚   └── test2.template.json
β”‚   └── test3.template.json
└── production

With docker you can execute:

docker run --rm -v `pwd`/config:/usr/src/app/config --env-file .env configbuilder

or

npm run start

With bun:

bun local

Made with ❀️ by TekMath

About

πŸ”§ TS script that allow you to generate a configuration with credentials from a template and environment with Bun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages