Home Reference Source Repository
import GeneratorIonic2 from 'generator-ionic-2/core/app/index.js'
public class | source

GeneratorIonic2

Extends:

yeoman-generator~Base → GeneratorIonic2

Base Generator class to create a empty project

Constructor Summary

Public Constructor
public

constructor(args: ...*)

Member Summary

Public Members
public

answers: *

public
public
public

options: *

public

pkg: *

public
public

plugins: *

Method Summary

Public Methods
public

createTemplate(file: *, options: *): *

create some templates with the params

public

install(): *

npm install after create the app

public

question prompting

public

promise the writing process

Private Methods
private

add one or many platforms to the destination

private

add one or more Plugins to the destination

private

_copy(file: *): *

copy some files from root to destination

private

copy the ionic2angular stuff starter template

private

create the basic prompts for the empty app creation

private

_init()

yeoman uses this like a constructor, but since this is getting transpiled from es6, it won't work as it should. we're calling it from constructor

private

create a cordova project into the destination folder

Public Constructors

public constructor(args: ...*) source

Params:

NameTypeAttributeDescription
args ...*

Public Members

public answers: * source

public fileCount: * source

public genPrompts: * source

public options: * source

public pkg: * source

public platforms: * source

public plugins: * source

Public Methods

public createTemplate(file: *, options: *): * source

create some templates with the params

Params:

NameTypeAttributeDescription
file *
  • optional
  • default: undefined
options *
  • optional
  • default: undefined

Return:

*

public install(): * source

npm install after create the app

Return:

*

public prompting() source

question prompting

public writing() source

promise the writing process

Private Methods

private _addPlatforms(): * source

add one or many platforms to the destination

Return:

*

private _addPlugins(): * source

add one or more Plugins to the destination

Return:

*

private _copy(file: *): * source

copy some files from root to destination

Params:

NameTypeAttributeDescription
file *
  • optional
  • default: undefined

Return:

*

private _createIonicApp() source

copy the ionic2angular stuff starter template

private _getStartPrompts(): Array source

create the basic prompts for the empty app creation

Return:

Array

[]

private _init() source

yeoman uses this like a constructor, but since this is getting transpiled from es6, it won't work as it should. we're calling it from constructor

private _initCordovaProject(): * source

create a cordova project into the destination folder

Return:

*