grunt-audit-fs

Verify build file/directory properties and content with audit-fs

npm install grunt-audit-fs
1 downloads in the last week
4 downloads in the last month

grunt-audit-fs

Verify build file/directory properties and content with audit-fs

Build Status

Example

Intent: enforce a maximum file size of 100k for build/js/all.min.js.

Single-task

Format: <audit-fs method name>:<arg0>:<arg1>:<etc>

grunt.registerTask('audit-min-js', ['audit-fs:maxSize:build/js/all.min.js:102400']);

Multi-task

grunt.initConfig({
  'audit-fs-multi': {
    'audit-min-js': {
      rule: 'maxSize',
      args: ['build/js/all.min.js', 102400]
  }
});

Output

On failure:

Warning: [audit-fs] FAILED: maxSize(build/js/all.min.js.js, 102400) Use --force to continue.

On pass (with --verbose):

[audit-fs] PASSED: maxSize(build/js/all.min.js, 102400)

Installation

NPM

npm install grunt-audit-fs
    grunt.loadNpmTasks('grunt-audit-fs');

API

Documentation

License

MIT

Tests

npm test
npm loves you