Skip to main content
Version: 2.0.x

AppCollectionFactory

@agros/create-app / AppCollectionFactory

Class: AppCollectionFactory

Hierarchy​

  • AbstractGeneratorFactory

    ↳ AppCollectionFactory

Implements​

  • AbstractGeneratorFactory

Table of contents​

Constructors​

Properties​

Methods​

Constructors​

constructor​

• new AppCollectionFactory()

Inherited from​

AbstractGeneratorFactory.constructor

Defined in​

agros-tools/lib/collection.d.ts:20

Properties​

entities​

• Protected entities: EntityDescriptor[]

Implementation of​

AbstractGeneratorFactory.entities

Inherited from​

AbstractGeneratorFactory.entities

Defined in​

agros-tools/lib/collection.d.ts:19


licenseList​

• Private licenseList: { name: string ; value: string = key }[]

Defined in​

create-agros-app/src/app.factory.ts:27


licenseUtils​

• Private licenseUtils: LicenseUtils

Defined in​

create-agros-app/src/app.factory.ts:26


npmClient​

• Private npmClient: string

Defined in​

create-agros-app/src/app.factory.ts:28


projectConfig​

• Protected Readonly projectConfig: ProjectConfigParser

Implementation of​

AbstractGeneratorFactory.projectConfig

Inherited from​

AbstractGeneratorFactory.projectConfig

Defined in​

agros-tools/lib/collection.d.ts:18

Methods​

generate​

▸ generate(__namedParameters): Promise<CollectionFactoryResult>

Parameters​

NameType
__namedParametersAppCollectionOptions

Returns​

Promise<CollectionFactoryResult>

Implementation of​

AbstractGeneratorFactory.generate

Overrides​

AbstractGeneratorFactory.generate

Defined in​

create-agros-app/src/app.factory.ts:32


getEntityDescriptor​

▸ Protected getEntityDescriptor(pathname): EntityDescriptor

Parameters​

NameType
pathnamestring

Returns​

EntityDescriptor

Implementation of​

AbstractGeneratorFactory.getEntityDescriptor

Inherited from​

AbstractGeneratorFactory.getEntityDescriptor

Defined in​

agros-tools/lib/collection.d.ts:27


modulesPath​

▸ Protected modulesPath(pathname?): string

Parameters​

NameType
pathname?string

Returns​

string

Implementation of​

AbstractGeneratorFactory.modulesPath

Inherited from​

AbstractGeneratorFactory.modulesPath

Defined in​

agros-tools/lib/collection.d.ts:24


projectPath​

▸ Protected projectPath(pathname?): string

Parameters​

NameType
pathname?string

Returns​

string

Implementation of​

AbstractGeneratorFactory.projectPath

Inherited from​

AbstractGeneratorFactory.projectPath

Defined in​

agros-tools/lib/collection.d.ts:22


srcPath​

▸ Protected srcPath(pathname?): string

Parameters​

NameType
pathname?string

Returns​

string

Implementation of​

AbstractGeneratorFactory.srcPath

Inherited from​

AbstractGeneratorFactory.srcPath

Defined in​

agros-tools/lib/collection.d.ts:23


updateEntities​

▸ Protected updateEntities(): void

Returns​

void

Implementation of​

AbstractGeneratorFactory.updateEntities

Inherited from​

AbstractGeneratorFactory.updateEntities

Defined in​

agros-tools/lib/collection.d.ts:21


writeFile​

▸ Protected writeFile(pathname, content, options?): Promise<void>

Parameters​

NameType
pathnamestring
contentstring
options?CollectionWriteFileOptions

Returns​

Promise<void>

Implementation of​

AbstractGeneratorFactory.writeFile

Inherited from​

AbstractGeneratorFactory.writeFile

Defined in​

agros-tools/lib/collection.d.ts:25


writeTemplateFile​

▸ Protected writeTemplateFile(source, target, props?, options?): Promise<void>

Parameters​

NameType
sourcestring
targetstring
props?Record<string, any>
options?CollectionWriteFileOptions

Returns​

Promise<void>

Implementation of​

AbstractGeneratorFactory.writeTemplateFile

Inherited from​

AbstractGeneratorFactory.writeTemplateFile

Defined in​

agros-tools/lib/collection.d.ts:26