@cjser/get-gulp-tasks
v5.0.0-cjser.2
Published
Get the gulp tasks from a gulp project
Maintainers
Readme
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-tasksUsage
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.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/get-gulp-tasks
