1.0.0 • Published 5 years ago

grunt-staged2 v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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',
]);