Methods
checkInstall(packageToCheck, isGlobal) → {boolean}
Check whether or not the given package is installed
Parameters:
Name | Type | Description |
---|---|---|
packageToCheck |
String | Name of the package to check |
isGlobal |
boolean | Is the package supposed to be installed globally? |
Returns:
Whether or not the package is installed
- Type
- boolean
configureDocumentation(answers)
Configure the documentation packages and gh-pages
Parameters:
Name | Type | Description |
---|---|---|
answers |
Object | Answer values from the setup questions |
configureGitAlias(runner, docs, ghpages) → {Promise}
Configure the custom git script
Parameters:
Name | Type | Description |
---|---|---|
runner |
String | Selected task-runner |
docs |
String | Selected documentation generator |
ghpages |
String | Selected gh-pages script |
Returns:
Promise object that is resolved after Inquirer and custom script creation completes
- Type
- Promise
configureGrunt(runner, docs, ghpages)
Configure grunt templates
Parameters:
Name | Type | Description |
---|---|---|
runner |
String | Selected task-runner |
docs |
String | Selected documentation generator |
ghpages |
String | Selected gh-pages script |
configureGulp(runner, docs, ghpages)
Configure gulp templates
Parameters:
Name | Type | Description |
---|---|---|
runner |
String | Selected task-runner |
docs |
String | Selected documentation generator |
ghpages |
String | Selected gh-pages script |
init(answers)
Start setup after questions have been answered
Parameters:
Name | Type | Description |
---|---|---|
answers |
Object | Answer values from the setup questions |
installGrunt(answers)
Install grunt as the task-runner
Parameters:
Name | Type | Description |
---|---|---|
answers |
Object | Answer values from the setup questions |
installGulp(answers)
Install gulp as the task-runner
Parameters:
Name | Type | Description |
---|---|---|
answers |
Object | Answer values from the setup questions |
installPackage(packageToInstall, isGlobal, isSudo, doSave)
Install the given package
Parameters:
Name | Type | Description |
---|---|---|
packageToInstall |
String | Name of the package to install |
isGlobal |
boolean | Should the package be installed globally? |
isSudo |
boolean | Should the package be installed using |
doSave |
String | Should the package be saved in |