grunt-file-compare

1.0.5 • Public • Published

grunt-file-compare

Build Info Dev Dependencies Coverage Info Npm Version Npm Downloads

Grunt task to check if a set of files are equal.

Usage

module.exports = function(grunt) {
  grunt.initConfig({
    file_compare: {
      check_suite1: ['suite1/expected/foo.js', 'suite1/actual/foo.js']  // List of files to compare
    }
  })

  grunt.loadNpmTask('grunt-file-compare')
  grunt.registerTask('default', ['file_compare'])
}

Options

diffBinary
Type: String, Default: 'diff'

The binary to execute when comparing files.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

  • v1.0.5   02.25.2015   Better error handling
  • v1.0.3   02.25.2015   Even more verbose output
  • v1.0.2   02.25.2015   Added more verbose error output
  • v1.0.0   02.24.2015   Initial release

License

Copyright (c) 2015 Risto Stevcev. Licensed under the BSD license.

Package Sidebar

Install

npm i grunt-file-compare

Weekly Downloads

12

Version

1.0.5

License

BSD

Last publish

Collaborators

  • ristostevcev