vsts-task-starter
Version:
Creates a starting project structure for building a Node.js based Visual Studio Team Services task.
37 lines (32 loc) • 1.24 kB
Markdown
# vsts-task-starter
Creates a starting project structure for building a Node.js based Visual Studio Team Services task.
|-- taskName
| |-- icon.png
| |-- package.json
| |-- task.json
| |-- src
| | |-- app.js
| | |-- task.js
| |--test
| | |-- taskUnitTest.js
The command also installs [Mocha](https://www.npmjs.com/package/mocha) and [Istanbul](https://www.npmjs.com/package/istanbul) globally for testing and code coverage. Once the task is created you can test the task by running test from the task folder.
```bash
npm test
```
## Installation
```bash
npm install -g vsts-task-starter
```
## Usage
```bash
createtask
```
## Command Line Interface (cli)
Any values not passed in as cli arguments will be prompted for when the command runs.
* n - name of the task
* f - friendly name of the task
* d - description
* a - author
```bash
createtask -n TaskName -f "Task Name" -a "Donovan Brown" -d "My cool task"
```