Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-loadnpmtasks

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-loadnpmtasks

A Node module (not a Grunt task itself) to help in loading NPM-based tasks without requiring a "package.json" file next to every Gruntfile. To be used as an alternative to `grunt.loadNpmTasks`/`grunt.task.loadNpmTasks` within large, hierarchical codebases

  • 0.3.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

grunt-loadNpmTasks Build Status

A Node module (not a Grunt task itself) to help in loading NPM-based tasks without requiring a "package.json" file next to every Gruntfile. To be used as an alternative to grunt.loadNpmTasks/grunt.task.loadNpmTasks within large, hierarchical codebases.

WARNING: YOU SHOULD NOT NEED TO USE THIS MODULE WHEN WORKING IN A MODULAR CODEBASE!!!

Getting Started

Install the module with: npm install grunt-loadnpmtasks

Within your Gruntfile (or Node.js code, if you are using Grunt programmatically), you can then do:

var loader = require('grunt-loadnpmtasks')(grunt);  // Where `grunt` is an instance of Grunt
loader.loadNpmTasks('grunt-contrib-jshint');

Alternatively, you can have grunt-loadNpmTasks actually override Grunt's loadNpmTasks method:

require('grunt-loadnpmtasks').extend(grunt);  // Where `grunt` is an instance of Grunt
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.task.loadNpmTasks('grunt-contrib-uglify');

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

License

Copyright (c) 2013 James M. Greene
Licensed under the MIT license.

Keywords

FAQs

Package last updated on 20 Jun 2016

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