Skip to content

Commit edae1cf

Browse files
committed
feat(domain,feature): use domain name as component prefix
1 parent d184253 commit edae1cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libs/ddd/src/schematics/domain/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default function(options: DomainOptions): Rule {
2828
directory: options.name,
2929
tags: `domain:${options.name},type:domain-logic`,
3030
style: 'scss',
31+
prefix: options.name,
3132
}),
3233
updateLintingRules(options.name),
3334
mergeWith(templateSource),

libs/ddd/src/schematics/feature/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ export default function(options: FeatureOptions): Rule {
172172
name: `feature-${options.name}`,
173173
directory: options.domain,
174174
tags: `domain:${options.domain},type:feature`,
175-
style: 'scss'
175+
style: 'scss',
176+
prefix: options.domain,
176177
}),
177178
addImport(featureModulePath, domainImportPath, domainModuleClassName),
178179
(!options.lazy && host.exists(appModulePath)) ?

0 commit comments

Comments
 (0)