5.0.0 • Published 3 years ago

get-gulp-tasks v5.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

get-gulp-tasks

Get the Gulp tasks from a Gulp project

It spawns the local gulp binary in the specified directory and fetches the Gulp tasks.

Install

npm install get-gulp-tasks

Usage

Imagine a gulpfile.js in ./gulp-project:

export const foo = () => {};
export const bar = () => {};

You can get its tasks with:

import getGulpTasks from 'get-gulp-tasks';

console.log(await getGulpTasks('gulp-project'));
//=> ['default', 'test']

API

getGulpTasks(cwd?)

Returns a Promise<string[]> with the tasks.

cwd

Type: string\ Default: process.cwd()

The path to the directory of your Gulp project.

5.0.0

3 years ago

4.0.0

8 years ago

3.0.0

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago