grunt-check-constants

1.3.1 • Public • Published

grunt-check-constants

Find numbers that should be extracted to a declaration statement using check-constants

NPM Version NPM Downloads

Issues with the output should be reported on the check-constants issue tracker.

Install

$ npm install --save-dev grunt-check-constants

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
 
grunt.initConfig({
    'checkConstants': {
        options: {} //add options to pass to check-constants
        validate: {
            src: ['./src/**/*.js']
        }
    }
});
 
grunt.registerTask('default', ['checkConstants']);

Options

See the check-constants Options except for file which is handled for you.

License

MIT ©Gilad Peleg

Package Sidebar

Install

npm i grunt-check-constants

Weekly Downloads

1

Version

1.3.1

License

MIT

Last publish

Collaborators

  • pgilad