Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Verify build file/directory properties and content with audit-fs
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config/grunt
dist
lib
tasks
test/lib/grunt-audit-fs
.gitignore
.travis.yml
CHANGELOG.md
Gruntfile.js
LICENSE
README.md
component.json
index.js
package.json

README.md

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

License

MIT

Tests

npm test
Something went wrong with that request. Please try again.