{"_id":"grunt-regarde","_rev":"25-b6e5b3cd6f4cf7e8dbbd8ad5adff207d","name":"grunt-regarde","description":"Observe a set of files for changes","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"grunt-regarde","version":"0.1.0","description":"Observe a set of files for changes","homepage":"https://github.com/yeoman/grunt-regarde","bugs":"https://github.com/yeoman/grunt-regarde/issues","main":"Gruntfile.js","scripts":{"test":"node node_modules/mocha/bin/mocha test/test-*.js"},"repository":{"type":"git","url":"https://github.com/yeoman/grunt-regarde.git"},"keywords":["watch","files"],"author":{"name":"Frederick Ros"},"dependencies":{"gaze":"~0.3.1"},"devDependencies":{"grunt":"~0.4.0","mocha":"~1.7.4","mkdirp":"~0.3.1","rimraf":"~2.0.1","grunt-contrib-jshint":"~0.1.0","eventemitter2":"~0.4.11","minimatch":"~0.2.9"},"engines":{"node":">=0.8.0"},"license":"BSD","_id":"grunt-regarde@0.1.0","dist":{"shasum":"b33ad051d116a8150995a88ef804eabd57b11433","tarball":"https://registry.npmjs.org/grunt-regarde/-/grunt-regarde-0.1.0.tgz","integrity":"sha512-WYu1eA7KqjNHbaNKGT1cYXdkxGs7Cn3moL4nJf5q+SxLIzTm0dfi/IIX9zfHJr5ytVKjXBexecrzLe+tbiLLtg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUu0M/i19+/4V0FQ4D43wAgHg8OFz+3Xp1glStbEiZXgIhAI0NyvX8Nk+W2dahSK366Tikw2hTWbQdcWM1B21p1PaO"}]},"_npmVersion":"1.1.66","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"deprecated":"Deprecated in favor of grunt-contrib-watch which now have Livereload support built-in."},"0.1.1":{"name":"grunt-regarde","version":"0.1.1","description":"Observe a set of files for changes","homepage":"https://github.com/yeoman/grunt-regarde","bugs":"https://github.com/yeoman/grunt-regarde/issues","main":"Gruntfile.js","scripts":{"test":"node node_modules/mocha/bin/mocha test/test-*.js"},"repository":{"type":"git","url":"https://github.com/yeoman/grunt-regarde.git"},"keywords":["watch","files"],"author":{"name":"Frederick Ros"},"dependencies":{"gaze":"~0.3.1"},"devDependencies":{"grunt":"~0.4.0","mocha":"~1.7.4","mkdirp":"~0.3.1","rimraf":"~2.0.1","grunt-contrib-jshint":"~0.1.1","eventemitter2":"~0.4.11","minimatch":"~0.2.9"},"engines":{"node":">=0.8.0"},"license":"BSD","_id":"grunt-regarde@0.1.1","dist":{"shasum":"6cb9d87cc6c8af035e05c5881229a9884fbc40b8","tarball":"https://registry.npmjs.org/grunt-regarde/-/grunt-regarde-0.1.1.tgz","integrity":"sha512-GRCpCauI6DcTZL/J9EGsDP7nCdI1/S3XnNx1o9meTt8AniqqGeD5TG5PesE9v+Vg42+JjHRrxvqPLlr2AqQwvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTtcGI/IjmaaYztQ0/SiBodlhX+7zbbVM+mVJE2x7oaAIhAKfYNxTeHZn1C7Xy97bIQ1KfzK8/d0AfI6ChhLu6F90X"}]},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"paulirish","email":"paul.irish@gmail.com"},{"name":"addyosmani","email":"addyosmani@gmail.com"},{"name":"sleeper","email":"frederick.ros@gmail.com"}],"directories":{},"deprecated":"Deprecated in favor of grunt-contrib-watch which now have Livereload support built-in."}},"readme":"# grunt-regarde [![Build Status](https://secure.travis-ci.org/yeoman/grunt-regarde.png?branch=master)](http://travis-ci.org/yeoman/grunt-regarde)\n\n> Observe files for changes and run tasks\n\n*Requires grunt 0.4*\n\n\n## Getting Started\n\nIf you haven't used [grunt][] before, be sure to check out the [Getting Started][] guide, as it explains how to create a [gruntfile][Getting Started] as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:\n\n```shell\nnpm install grunt-regarde --save-dev\n```\n\n[grunt]: http://gruntjs.com\n[Getting Started]: https://github.com/gruntjs/grunt/wiki/Getting-started\n\n\n## The regarde task\n\n### Overview\n\nAdd a `regarde` section in your `Gruntfile.js` to list the files to observe as well as the task to fire when one of these files change.\n\n### Settings\n\n#### files\n\nType: `String|Array`\n\nThis lists patterns describing files to observe.\n\n#### tasks\n\nType: `String|Array`\n\nDefines the tasks to run when an observed file change. Note that this is optional (in case it is missing, an implicit `events: true` will be inserted in the configuration)\nTasks called (if they are not spawned), can access to the list of changed file through the array `grunt.regarde.changed`.\n\n#### spawn\n\nType: `boolean`\nDefault: false\n\nWhether or not the tasks will be launched in a spawned subprocess. Note that in this case, the spawned task has no information on which file changed.\n\n### Events\n\n`grunt-regarde` will emit an event each time a file is changed, added or deleted.\nThe following events will be emitted:\n\n- `regarde:file:changed`, `regarde:file:added`, `regarde:file:deleted` with name of the section config, file path, tasks and whether or not the tasks will be spawn, as parameters.\n\n- `regarde:file` with status (`changed`, `added`, `deleted`), name of the section config, file path, tasks and whether or not the tasks will be spawn, as parameters.\n\n- `regarde:<name>:file`, where `<name>` is the name of the task target (i.e. `css` or `js` in the below example), with status (`changed`, `added`, `deleted`), file path, tasks and whether or not the tasks will be spawned, as parameters.\n\n- `regarde:<name>:file:changed`, `regarde:<name>:file:added`, `regarde:<name>:file:deleted` where `<name>` is the name of the task target (i.e. `css` or `js` in the below example), with status (`changed`, `added`, `deleted`), file path, tasks and whether or not the tasks will be spawn, as parameters.\n\n\n### Examples\n\n```js\ngrunt.initConfig({\n  regarde: {\n    js: {\n      files: '**/*.js',\n      tasks: ['jshint'],\n      spawn: true\n    },\n    css: {\n      files: '**/*.scss',\n      events: true\n    }\n  }\n});\n```\n\n## License\n\n[BSD license](http://opensource.org/licenses/bsd-license.php) and copyright Google\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2023-06-16T22:40:11.467Z","created":"2013-01-28T19:17:18.930Z","0.1.0":"2013-01-28T19:17:21.003Z","0.1.1":"2013-04-06T17:40:29.812Z"},"author":{"name":"Frederick Ros"},"repository":{"type":"git","url":"https://github.com/yeoman/grunt-regarde.git"},"users":{"passy":true,"itonyyo":true,"nano":true,"flumpus-dev":true},"homepage":"https://github.com/yeoman/grunt-regarde","keywords":["watch","files"],"bugs":"https://github.com/yeoman/grunt-regarde/issues","license":"BSD","readmeFilename":"readme.md"}