Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

grunt-staged2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-staged2

Run grunt tasks with only those source files staged for code commit.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

grunt-staged2

Run grunt tasks with only those source files staged for code commit. This task is based on the original grunt-staged, but was updated to support Grunt 1.x and update dependencies.

Getting Started

Install the plugin:

npm install -D grunt-staged2

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-staged2');

The "staged" task

The staged task doesn't require any special configuration. To use it, just add staged as the first argument when running other tasks.

grunt.registerTask('lint', [
  'staged:eslint:default',
]);

Keywords

gruntplugin

FAQs

Package last updated on 19 Feb 2019

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