mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-16 11:16:20 +00:00
698 B
698 B
@openstapps/backend
| @openstapps/backend |
|---|
| major |
Migrate config system to cosmiconfig
Configs are now written using type-checked JavaScript
// @ts-check
// This file is now type-safe just like TypeScript, but
// without the compilation step
/** @type {import('@openstapps/package').Type} */
const foo = {};
You can write config files in JavaScript, JSON, or other cosmiconfig-supported formats.
The config files now are
backendrc.{js,json,...}elasticsearchrc.{js,json,...}prometheusrc.{js,json,...}
You can also split them into multiple files,
as well as using the markdown.js helper in
config/default/tools to include markdown files
as text (see config/f-u/about-pages)