-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
103 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
export interface GeneratorSchema { | ||
name: string; | ||
tags?: string; | ||
directory?: string; | ||
} | ||
|
||
export interface DomainGeneratorSchema extends GeneratorSchema { | ||
entity?: string; | ||
domain?: string; | ||
repository?: boolean; | ||
usecases?: boolean; | ||
} | ||
|
||
export interface DataGeneratorSchema extends DomainGeneratorSchema { | ||
inmemory?: boolean; | ||
} | ||
|
||
export interface PresentationGeneratorSchema extends DataGeneratorSchema { | ||
data?: string; | ||
tags?: string; | ||
directory?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,31 @@ | ||
import { GeneratorSchema } from './generator-schema'; | ||
import { | ||
GeneratorSchema, | ||
DataGeneratorSchema, | ||
DomainGeneratorSchema, | ||
PresentationGeneratorSchema, | ||
} from './generator-schema'; | ||
|
||
export interface PluginCoreNormalizedSchema extends GeneratorSchema { | ||
projectName: string; | ||
projectRoot: string; | ||
projectDirectory: string; | ||
projectDomain?: string; | ||
projectData?: string; | ||
parsedTags: string[]; | ||
npmScope?: string; | ||
} | ||
|
||
export interface DomainPluginCoreNormalizedSchema | ||
extends PluginCoreNormalizedSchema, | ||
DomainGeneratorSchema { | ||
npmScope: string; | ||
} | ||
|
||
export interface DataPluginCoreNormalizedSchema | ||
extends DomainPluginCoreNormalizedSchema, | ||
DataGeneratorSchema { | ||
projectDomain: string; | ||
} | ||
|
||
export interface PresentationPluginCoreNormalizedSchema | ||
extends DataPluginCoreNormalizedSchema, | ||
PresentationGeneratorSchema { | ||
projectData: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters