Socket
Book a DemoInstallSign in
Socket

get-gulp-tasks

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-gulp-tasks

Get the gulp tasks from a gulp project

latest
Source
npmnpm
Version
5.0.0
Version published
Maintainers
1
Created
Source

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.

Keywords

gulpfriendly

FAQs

Package last updated on 14 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts