This project is a NX monorepo, containing multiple projects and plugins. Thus, to keep things simple and organized, there are some rules to follow:
- Every project (lib or app) is located under
packages
. - Project name = path to project directory, separated by
-
without thepackages
folder. E.g.just
forpackages/just
andjust-documentation
forpackages/just/documentation
. - Project targets are inferred via plugins if possible to avoid duplicated tasks.
- Plugins are located in the
nx-plugins
folder. - Projects which are generic and can be reused are located in the
shared
folder. - Workspace specific projects are located in the
workspace
folder.
With the nx-plugins-secrets-manager
plugin, .env
files can be generated
from Bitwarden secrets using .env.secure.yaml
config files.
Use the following command to generate them:
nx g env-file <stages> <user> <password>
- stages: Comma separated list of stages to use, e.g.
DEV,PROD
to useDEV
first andPROD
as fallback. - user: Bitwarden username
- password: Bitwarden password