Socket
Socket
Sign inDemoInstall

load-grunt-tasks

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load-grunt-tasks

Load multiple grunt tasks using globbing patterns


Version published
Weekly downloads
162K
increased by0.26%
Maintainers
1
Weekly downloads
 
Created

What is load-grunt-tasks?

The load-grunt-tasks npm package is designed to simplify the process of loading multiple grunt tasks into a Gruntfile. It automatically loads all grunt tasks specified in the package.json file, reducing the need for repetitive code and making the Gruntfile cleaner and easier to maintain.

What are load-grunt-tasks's main functionalities?

Automatic Task Loading

This feature allows you to automatically load all grunt tasks specified in your package.json file. By requiring 'load-grunt-tasks' and passing the grunt instance to it, you eliminate the need to manually load each task.

module.exports = function(grunt) {
  require('load-grunt-tasks')(grunt);
  grunt.initConfig({
    // Your configuration here
  });
};

Custom Task Pattern

This feature allows you to specify custom patterns for loading tasks. By providing a pattern array, you can control which tasks are loaded, including scoped packages.

module.exports = function(grunt) {
  require('load-grunt-tasks')(grunt, { pattern: ['grunt-*', '@*/grunt-*'] });
  grunt.initConfig({
    // Your configuration here
  });
};

Custom Configurations

This feature allows you to customize the configuration file and scope from which tasks are loaded. You can specify a different configuration file and limit the scope to dependencies, devDependencies, or peerDependencies.

module.exports = function(grunt) {
  require('load-grunt-ttasks')(grunt, { config: 'package.json', scope: 'devDependencies' });
  grunt.initConfig({
    // Your configuration here
  });
};

Other packages similar to load-grunt-tasks

Keywords

FAQs

Package last updated on 21 Jun 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc