Function
buildSelector
(options: ComponentOptions, projectPrefix?: string)
Source from the content-addressed store, hash-verified
| 122 | } |
| 123 | |
| 124 | function buildSelector(options: ComponentOptions, projectPrefix?: string) { |
| 125 | let selector = strings.dasherize(options.name); |
| 126 | if (options.prefix) { |
| 127 | selector = `${options.prefix}-${selector}`; |
| 128 | } else if (options.prefix === undefined && projectPrefix) { |
| 129 | selector = `${projectPrefix}-${selector}`; |
| 130 | } |
| 131 | |
| 132 | return selector; |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * Indents the text content with the amount of specified spaces. The spaces will be added after |
Tested by
no test coverage detected