🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

get-grunt-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-grunt-tasks

Get the Grunt tasks from a grunt project

latest
Source
npmnpm
Version
4.0.1
Version published
Maintainers
1
Created
Source

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.

Keywords

grunt

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