components.json
Manage the spartan configuration through components.json.
Your custom configuration for the spartan CLI is stored in a file called components.json
and is located in the root of your workspace.
Note : this file is only required by the spartan CLI. If you're manually copy & pasting components, you can ignore this file.
File Generation
The components.json
file is generated the first time you use the ui
command.
Configuration
{
"componentsPath": "libs/ui",
"buildable": true,
"generateAs": "library" | "entrypoint",
"importAlias": "@spartan-ng/helm"
}
componentsPath
The base path where your components will be generated.
buildable
Determines whether the generated library is buildable or not.
generateAs
Generate the components as a library or entrypoint.
importAlias
Specify the import path of the component e.g. @spartan-ng/helm.