0.0.1 • Published 5 years ago
s2m-env-config v0.0.1
Configurations
Simple tool to store and build configs for modules
Development
Common data
All common configurations, such as AWS system access keys, are stored in the src/basic.js
file. They can be used in other custom configurations.
Custom configs
Configs for each service (module) are stored in the corresponding folder by module name (module name without spaces).
The configuration of the service (module) for each individual stand should be stored in a separate file by the name of the stand.
Configs for local development should be stored in the local.js
file.
How build configs for particular module and stand
- clone project
- open console in the project directory
- exec comman
npm i
- exec comman
npm run build -- -module {module-name} -stand {stand-name}
where -{module-name}
: name of the service (module) for which we want to build the config, without brackets -{stand-name}
: name of the stand for which we want config will be use, without brackets, or uselocal
for local development - if config for pointed stand and module not found - there are will error shown in the console
- if config was found - there are will be created file
config/default.json
- copy created folder
config
to the root of the module directory - done
0.0.1
5 years ago