GeneratorIonic2
Extends:
Base Generator class to create a empty project
Constructor Summary
Public Constructor | ||
public |
constructor(args: ...*) |
Member Summary
Public Members | ||
public |
answers: * |
|
public |
fileCount: * |
|
public |
genPrompts: * |
|
public |
options: * |
|
public |
pkg: * |
|
public |
platforms: * |
|
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 |
writing() promise the writing process |
Private Methods | ||
private |
_addPlatforms(): * add one or many platforms to the destination |
|
private |
_addPlugins(): * 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 |
_initCordovaProject(): * create a cordova project into the destination folder |
Public Constructors
public constructor(args: ...*) source
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
file | * |
|
|
options | * |
|
Return:
* |
Private Methods
private _copy(file: *): * source
copy some files from root to destination
Params:
Name | Type | Attribute | Description |
file | * |
|
Return:
* |
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:
* |