https://github.com/pgilad/grunt-check-constants
Find numbers that should be extracted as a declaration statement
https://github.com/pgilad/grunt-check-constants
Last synced: 10 months ago
JSON representation
Find numbers that should be extracted as a declaration statement
- Host: GitHub
- URL: https://github.com/pgilad/grunt-check-constants
- Owner: pgilad
- License: mit
- Created: 2014-10-18T11:46:35.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-22T17:25:29.000Z (about 11 years ago)
- Last Synced: 2025-08-23T10:04:20.488Z (10 months ago)
- Language: JavaScript
- Size: 197 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [grunt](https://github.com/gruntjs/grunt)-check-constants
> Find numbers that should be extracted to a declaration statement using [check-constants](https://github.com/pgilad/check-constants)
[](https://npmjs.org/package/grunt-check-constants)
[](https://npmjs.org/package/grunt-check-constants)
*Issues with the output should be reported on the check-constants [issue tracker](https://github.com/pgilad/check-constants/issues).*
## Install
```sh
$ npm install --save-dev grunt-check-constants
```
## Usage
```js
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](https://github.com/pgilad/check-constants#api)
except for `file` which is handled for you.
## License
MIT ©[Gilad Peleg](http://giladpeleg.com)