Created
October 31, 2015 12:50
-
-
Save andrewconnell/b3d177fb6653bbd85bd3 to your computer and use it in GitHub Desktop.
Abstract base class for a gulp task with defaults set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /** @class */ | |
| export class BaseGulpTask { | |
| /** | |
| * @property {string} description - Help description for the task. | |
| */ | |
| public static description: string = ''; | |
| /** | |
| * @property {string[]} dependencies - Array of all tasks that should be run before this one. | |
| */ | |
| public static dependencies: string[] = []; | |
| /** | |
| * @property {string[]} aliases - Different options to run the task. | |
| */ | |
| public static aliases: string[] = []; | |
| /** | |
| * @property {Object} options - Any command line flags that can be passed to the task. | |
| */ | |
| public static options: any = {}; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment