Skip to content

Instantly share code, notes, and snippets.

@andrewconnell
Created October 31, 2015 12:50
Show Gist options
  • Select an option

  • Save andrewconnell/b3d177fb6653bbd85bd3 to your computer and use it in GitHub Desktop.

Select an option

Save andrewconnell/b3d177fb6653bbd85bd3 to your computer and use it in GitHub Desktop.
Abstract base class for a gulp task with defaults set
'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