Class: Template
Defined in: ../../skaff-lib/src/core/templates/Template.ts:50
Constructors
Constructor
new Template(
init):Template
Defined in: ../../skaff-lib/src/core/templates/Template.ts:77
Parameters
init
TemplateInit
Returns
Template
Properties
absoluteBaseDir
absoluteBaseDir:
string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:57
absoluteDir
absoluteDir:
string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:58
absoluteFilesDir
absoluteFilesDir:
string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:61
absolutePartialsDir?
optionalabsolutePartialsDir:string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:64
branch?
optionalbranch:string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:71
commitHash?
optionalcommitHash:string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:69
config
config:
GenericTemplateConfigModule
Defined in: ../../skaff-lib/src/core/templates/Template.ts:51
foundPartials?
optionalfoundPartials:Record<string,string>
Defined in: ../../skaff-lib/src/core/templates/Template.ts:55
isDetachedSubtreeRoot
isDetachedSubtreeRoot:
boolean=false
Defined in: ../../skaff-lib/src/core/templates/Template.ts:75
isLocal
isLocal:
boolean=false
Defined in: ../../skaff-lib/src/core/templates/Template.ts:70
parentTemplate?
optionalparentTemplate:Template
Defined in: ../../skaff-lib/src/core/templates/Template.ts:53
possibleParentTemplates
possibleParentTemplates:
TemplateParentReference[] =[]
Defined in: ../../skaff-lib/src/core/templates/Template.ts:74
relativeDir
relativeDir:
string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:59
relativeFilesDir
relativeFilesDir:
string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:62
relativePartialsDir?
optionalrelativePartialsDir:string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:65
relativeRefDir?
optionalrelativeRefDir:string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:67
repoUrl?
optionalrepoUrl:string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:72
subTemplates
subTemplates:
Record<string,Template[]> ={}
Defined in: ../../skaff-lib/src/core/templates/Template.ts:52
trackedRevision?
optionaltrackedRevision:string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:73
Methods
findAllPartials()
findAllPartials():
Promise<Result<Record<string,string>>>
Defined in: ../../skaff-lib/src/core/templates/Template.ts:258
Returns
Promise<Result<Record<string, string>>>
findCommitHash()
findCommitHash():
string
Defined in: ../../skaff-lib/src/core/templates/Template.ts:248
Returns
string
findRootTemplate()
findRootTemplate():
Template
Defined in: ../../skaff-lib/src/core/templates/Template.ts:241
Returns
Template
findSubTemplate()
findSubTemplate(
templateName):Template|null
Defined in: ../../skaff-lib/src/core/templates/Template.ts:223
Parameters
templateName
string
Returns
Template | null
instantiateNewProject()
instantiateNewProject(
rootTemplateSettings,destinationDir,projectRepositoryName,projectCreationOptions?,templateGeneratorService?):Promise<Result<ProjectCreationResult>>
Defined in: ../../skaff-lib/src/core/templates/Template.ts:147
Parameters
rootTemplateSettings
UserTemplateSettings
destinationDir
string
projectRepositoryName
string
projectCreationOptions?
templateGeneratorService?
TemplateGeneratorService
Returns
Promise<Result<ProjectCreationResult>>
isValid()
isValid():
Promise<boolean>
Defined in: ../../skaff-lib/src/core/templates/Template.ts:301
Returns
Promise<boolean>
mapToDTO()
mapToDTO():
TemplateDTO
Defined in: ../../skaff-lib/src/core/templates/Template.ts:190
Returns
templateInExistingProject()
templateInExistingProject(
userSettings,destinationProject,parentInstanceId):Promise<Result<string>>
Defined in: ../../skaff-lib/src/core/templates/Template.ts:110
Parameters
userSettings
UserTemplateSettings
destinationProject
parentInstanceId
string
Returns
Promise<Result<string>>