Table of contents
Overview
Configuration file utilities. Uses the glob package to locate story files from the configuration
Installation
This package is usually installed as part of the @component-controls package, but you can also install it standalone:
$ npm install @component-controls/config --save-dev
API
loadConfigurations
function
loads bot the build time and run time configurations
defined in @component-controls/config/core/config/src/index.ts
parameters
| Name | Type | Description |
|---|---|---|
rootPath* |
string |
the roo path of the project |
returns |
RunConfiguration | merged configuration |
extractDocuments
react component
Find the story files out of a configuration file using glob for the regex file search
defined in @component-controls/config/core/config/src/index.ts
properties
| Name | Type | Parent |
|---|---|---|
config* |
|
ConfigurationResult |
configPath* |
string |
ConfigurationResult |
optionsFilePath |
string |
ConfigurationResult |
ConfigurationResult
interface
defined in @component-controls/config/core/config/src/index.ts
properties
| Name | Type |
|---|---|
config* |
|
configPath* |
string |
optionsFilePath |
string |