Options
All
  • Public
  • Public/Protected
  • All
Menu

Generator for pages

Hierarchy

Index

Constructors

constructor

Properties

Static Protected ERROR_COURSE_DOESNT_EXISTS

ERROR_COURSE_DOESNT_EXISTS: "Before creating a page is necessary create a course and sco. Please use 'yo haztivity'" = "Before creating a page is necessary create a course and sco. Please use 'yo haztivity'"

Error for non existing course

type

{string}

Static Protected ERROR_PAGE_EXISTS

ERROR_PAGE_EXISTS: "The page indicated already exists. Please, choose another name" = "The page indicated already exists. Please, choose another name"

Error for existing page

type

{string}

Static Protected ERROR_REQUIRED

ERROR_REQUIRED: "This field is required" = "This field is required"

Common message for required files

type

{string}

Static Protected ERROR_SCO_DOESNT_EXISTS

ERROR_SCO_DOESNT_EXISTS: "Before creating a page is necessary create a sco. Please use 'yo haztivity:sco'" = "Before creating a page is necessary create a sco. Please use 'yo haztivity:sco'"

Error for non existing sco

type

{string}

Static Protected ERROR_SPECIAL_CHARACTER

ERROR_SPECIAL_CHARACTER: "This field only could contains [a-zA-Z0-9_] characters, without spaces or special characters" = "This field only could contains [a-zA-Z0-9_] characters, without spaces or special characters"

Common message for special characters

type

{string}

Static Protected options

options: object

Shared options for all the generators

type

{{}}

Type declaration

Methods

Protected _addPageToSco

  • _addPageToSco(): void

Private _addToConfig

  • _addToConfig(config: any): void

Private _getAllOptions

  • _getAllOptions(): object

Private _getDirectories

  • _getDirectories(srcpath: any): string[]

Private _getOption

  • _getOption(key: any): any

Private _setOption

  • _setOption(key: any, value: any): void

Private _validateNonEmpty

  • _validateNonEmpty(toValidate: any): boolean

Private _validatePageExists

  • _validatePageExists(page: any): boolean

Private _validateSpecial

  • _validateSpecial(toValidate: any): boolean

initializing

  • initializing(): void

install

  • install(): void

prompting

  • prompting(): void

writing

  • writing(): void

Generated using TypeDoc