- welcome(pkg)
Welcome message
- checkVersion()
Check Generator Version and notifier
- warning(message)
Warning Message - Yellow
- info(message)
Info Message - Green
- error(message)
Error Message - Red
- moveFiles(base, files)
Move files to target path
- moveTemplates(base, files)
Move files to target path
- resolveNamedTemplatePath()
Resolve template path
- moveNamedTemplate(base, template, name, target)
Move Named template
- moveNamedTemplates(base, templates, name, target)
Fill and Move named templates to target path
- addPackage(packages, file, node)
Add package to dependency manager (package.json, bower.json)
- addScriptsToPackage(scripts)
Add scripts to package.json
- addRegistryToPackage(url)
Add publish configuration to package.json publishConfig":{"registry":"http://my-internal-registry.local"}
- addScriptsToIndex(scripts)
Add Scripts tag to index.html
- addCSSToIndex(lynks)
Add lynk tags to index.html
Kind: global function
Param | Type | Description |
---|---|---|
pkg | Object |
- Package information |
Check Generator Version and notifier
Warning Message - Yellow
Kind: global function
Param | Type | Description |
---|---|---|
message | string |
Message |
Info Message - Green
Kind: global function
Param | Type | Description |
---|---|---|
message | string |
Message |
Error Message - Red
Kind: global function
Param | Type | Description |
---|---|---|
message | string |
Message |
Move files to target path
Kind: global function
Param | Type | Description |
---|---|---|
base | string |
Base path |
files | Array.<string> |
File list |
Move files to target path
Kind: global function
Param | Type | Description |
---|---|---|
base | string |
Base path |
files | Array.<string> |
File list |
Resolve template path
Move Named template
Kind: global function
Param | Type | Description |
---|---|---|
base | string |
Base path |
template | string |
Template |
name | string |
Name |
target | string |
Target |
Fill and Move named templates to target path
Kind: global function
Param | Type | Description |
---|---|---|
base | string |
Base path |
templates | Array.<string> |
Template list |
name | string |
Name |
target | string |
Target |
Add package to dependency manager (package.json, bower.json)
Kind: global function
Param | Type | Description |
---|---|---|
packages | Array.<Object> |
Package list |
file | string |
File (bower.json or package.json) |
node | string |
Node (devDependencies or dependencies) |
Add scripts to package.json
Kind: global function
Param | Type | Description |
---|---|---|
scripts | Array.<Object> |
Scripts to add |
Add publish configuration to package.json publishConfig":{"registry":"http://my-internal-registry.local"}
Kind: global function
Param | Type | Description |
---|---|---|
url | string |
Registry url |
Add Scripts tag to index.html
Kind: global function
Param | Type | Description |
---|---|---|
scripts | Array.<string> |
Scripts path array |
Add lynk tags to index.html
Kind: global function
Param | Type | Description |
---|---|---|
lynks | Array.<string> |
Scripts path array |