4.0.1 • Published 3 years ago

get-grunt-tasks v4.0.1

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

get-grunt-tasks

Get the Grunt tasks from a Grunt project

Install

npm install get-grunt-tasks

Usage

Imagine a gruntfile.js in ./grunt-project:

module.exports = grunt => {
	grunt.registerTask('default');
	grunt.registerTask('test');
};

You can get its tasks with:

import getGruntTasks from 'get-grunt-tasks';

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

API

getGruntTasks(cwd?)

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

cwd

Type: string\ Default: process.cwd()

The path to the directory of your Grunt project.

4.0.1

3 years ago

4.0.0

3 years ago

3.1.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.0

9 years ago