{"_id":"grunt-execute","_rev":"34-512292c60ba0b532768ec046c3fdd13a","name":"grunt-execute","description":"Execute code in node","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.1":{"name":"grunt-execute","description":"execute code in node","version":"0.1.1","homepage":"https://github.com/Bartvds/grunt-execute","author":{"name":"Bart van der Schoor","email":"bartvanderschoor@gmail.com"},"repository":{"type":"git","url":"grit://github.com/Bartvds/grunt-execute.git"},"keywords":["gruntplugin"],"bugs":{"url":"https://github.com/Bartvds/grunt-execute/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Bartvds/grunt-execute/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"_id":"grunt-execute@0.1.1","dist":{"shasum":"a304c05a15b14a002c01a2bd817e2c82d7ce318e","tarball":"https://registry.npmjs.org/grunt-execute/-/grunt-execute-0.1.1.tgz","integrity":"sha512-FhQn08Tywlfxw9qu2A0boXbR1daDtLyEvHuuPidB8B9wyixxMlqMuaXhDhYHl56U1iz5KEmHgheC6tiD7KaMmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCV3OXoDhvoLTI7vVijijm7OxAIPLPD/a6eua/QXEPXgIgbJuo3ni6UYQRlKy9H2ITjlLKLCXQJvbjie1iyoDFlH4="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"bartvds","email":"bartvanderschoor@gmail.com"},"maintainers":[{"name":"bartvds","email":"bartvanderschoor@gmail.com"}],"directories":{}},"0.1.2":{"name":"grunt-execute","description":"execute code in node","version":"0.1.2","homepage":"https://github.com/Bartvds/grunt-execute","author":{"name":"Bart van der Schoor","email":"bartvanderschoor@gmail.com"},"repository":{"type":"git","url":"grit://github.com/Bartvds/grunt-execute.git"},"keywords":["gruntplugin","execute","code","node","scripts","spawn","exec"],"bugs":{"url":"https://github.com/Bartvds/grunt-execute/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Bartvds/grunt-execute/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"_id":"grunt-execute@0.1.2","dist":{"shasum":"2fda1e838d2fc6c5906eeaa3f2a85e6c48307d0c","tarball":"https://registry.npmjs.org/grunt-execute/-/grunt-execute-0.1.2.tgz","integrity":"sha512-qXWOoX5wnWJI4tSgCm4j9hnqmi8O/anVCE9k8QxPZOWJtDNQmafg9UCVV9v7e3RtL462IiRFju53TpPHZRqQBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICTydODR9tFczyohzEupBhljzqeGzfdOUH7bCPaVoBRqAiEA8rgoxp4dtFah94UIHZS/fwpUitsirt////y45crJPXQ="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"bartvds","email":"bartvanderschoor@gmail.com"},"maintainers":[{"name":"bartvds","email":"bartvanderschoor@gmail.com"}],"directories":{}},"0.1.3":{"name":"grunt-execute","description":"execute code in node","version":"0.1.3","homepage":"https://github.com/Bartvds/grunt-execute","author":{"name":"Bart van der Schoor","email":"bartvanderschoor@gmail.com"},"repository":{"type":"git","url":"grit://github.com/Bartvds/grunt-execute.git"},"keywords":["gruntplugin","execute","code","node","scripts","spawn","exec"],"bugs":{"url":"https://github.com/Bartvds/grunt-execute/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Bartvds/grunt-execute/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"_id":"grunt-execute@0.1.3","dist":{"shasum":"925718b1256e361fa11a6447c6dd7d8ed47aa5c3","tarball":"https://registry.npmjs.org/grunt-execute/-/grunt-execute-0.1.3.tgz","integrity":"sha512-263XegMi+zwHTx46kUP6EJIMg9MM1U3tQcVZo69xaFB7rgQhnpLdGzonckM2JgrrCihT0YFq93N9bVbVElqxDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBV75afBkpsK5X/47MR3aBOHvh0q+8Of4t5MypG+X/LsAiArhaYH06OvjVesd7HT3qQXFTV2ULaZ/98BkKeeN+1OhA=="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"bartvds","email":"bartvanderschoor@gmail.com"},"maintainers":[{"name":"bartvds","email":"bartvanderschoor@gmail.com"}],"directories":{}},"0.1.4":{"name":"grunt-execute","description":"execute code in node","version":"0.1.4","homepage":"https://github.com/Bartvds/grunt-execute","author":{"name":"Bart van der Schoor","email":"bartvanderschoor@gmail.com"},"repository":{"type":"git","url":"grit://github.com/Bartvds/grunt-execute.git"},"keywords":["gruntplugin","execute","code","node","scripts","spawn","exec"],"bugs":{"url":"https://github.com/Bartvds/grunt-execute/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Bartvds/grunt-execute/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"_id":"grunt-execute@0.1.4","dist":{"shasum":"303dddc9c5ec1fc3f58abdb3505cbab5be4af702","tarball":"https://registry.npmjs.org/grunt-execute/-/grunt-execute-0.1.4.tgz","integrity":"sha512-HSUxz3pTA/QK7oR9uY5CmOK1Jlhqqf1EshE1jBywaSBbysgDvhmxXLY+yphAeIVWCjh+252oO9JMnzi1UgEAfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZOwCBiwLCJDgsXBq0UCPBWh1LhS/DhR2PILVck5P8zAiEA0MgiWf0isGdHhlh8G1KiZ7OfdRW1jIETIsZYpI3Gfc4="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"bartvds","email":"bartvanderschoor@gmail.com"},"maintainers":[{"name":"bartvds","email":"bartvanderschoor@gmail.com"}],"directories":{}},"0.1.5":{"name":"grunt-execute","description":"Execute code in node","version":"0.1.5","homepage":"https://github.com/Bartvds/grunt-execute","author":{"name":"Bart van der Schoor","email":"bartvanderschoor@gmail.com"},"repository":{"type":"git","url":"git://github.com/Bartvds/grunt-execute.git"},"keywords":["gruntplugin","execute","code","node","scripts","spawn","exec"],"bugs":{"url":"https://github.com/Bartvds/grunt-execute/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Bartvds/grunt-execute/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1","grunt-cli":"~0.1","grunt-contrib-jshint":"~0.6.2"},"peerDependencies":{"grunt":"~0.4.1"},"_id":"grunt-execute@0.1.5","dist":{"shasum":"c97eb8943612fefbb72fbe3d32ef95233c5fa2e9","tarball":"https://registry.npmjs.org/grunt-execute/-/grunt-execute-0.1.5.tgz","integrity":"sha512-TIJv+Hh2h0MZtioj9msskJLuRmpA7c7VMoRxs4H8vXlPc+xFQ2c+vbkjDQPBVUVyq9ZkRtkAzuwxFVcby/jwTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPNOHhhR+O/cLRK33Bs+gaeOp3ZNyrnDBplxowbgGydgIhANUrWil7xqMf0PQwHlX7o8G0aTbrEMU4XYRgxZFIMOA5"}]},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"bartvds","email":"bartvanderschoor@gmail.com"},"maintainers":[{"name":"bartvds","email":"bartvanderschoor@gmail.com"}]},"0.2.1":{"name":"grunt-execute","description":"Execute code in node","version":"0.2.1","homepage":"https://github.com/Bartvds/grunt-execute","author":{"name":"Bart van der Schoor","email":"bartvanderschoor@gmail.com"},"repository":{"type":"git","url":"git://github.com/Bartvds/grunt-execute.git"},"keywords":["gruntplugin","execute","code","node","scripts","spawn","exec"],"bugs":{"url":"https://github.com/Bartvds/grunt-execute/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Bartvds/grunt-execute/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.1","grunt-cli":"~0.1","grunt-contrib-clean":"~0.5.0","grunt-contrib-nodeunit":"~0.3.0","grunt-contrib-jshint":"~0.10.0","grunt-shell":"~0.7.0"},"peerDependencies":{"grunt":"~0.4.1"},"_id":"grunt-execute@0.2.1","dist":{"shasum":"0f2753d81bf3aa5333d53463290f7c0bc093ce47","tarball":"https://registry.npmjs.org/grunt-execute/-/grunt-execute-0.2.1.tgz","integrity":"sha512-mxxOR1mhxGxVRncIQOl67HbuXUESnsG1xC4fC4lotmfGihBTg0ybPGda81r93iYBgWRaz2Lx8UZpWwe5Ww7yAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIDh08UIsNOoNOlz3AHvIKUkt0r7WnsUzSOa5O2jNjwQIgeH9icI3vCM8uTdxHzIDnwY7XBR94OJbD1Uq8UlOv0xM="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"bartvds","email":"bartvanderschoor@gmail.com"},"maintainers":[{"name":"bartvds","email":"bartvanderschoor@gmail.com"}]},"0.2.2":{"name":"grunt-execute","description":"Execute code in node","version":"0.2.2","homepage":"https://github.com/Bartvds/grunt-execute","author":{"name":"Bart van der Schoor","email":"bartvanderschoor@gmail.com"},"repository":{"type":"git","url":"git://github.com/Bartvds/grunt-execute.git"},"keywords":["gruntplugin","execute","code","node","scripts","spawn","exec"],"bugs":{"url":"https://github.com/Bartvds/grunt-execute/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Bartvds/grunt-execute/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.1","grunt-cli":"~0.1","grunt-contrib-clean":"~0.5.0","grunt-contrib-nodeunit":"~0.3.0","grunt-contrib-jshint":"~0.10.0","grunt-shell":"~0.7.0"},"peerDependencies":{"grunt":"~0.4.1"},"_id":"grunt-execute@0.2.2","_shasum":"4e945fe57959cc0de7799083b6b42aed9616350a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"bartvds","email":"bartvanderschoor@gmail.com"},"maintainers":[{"name":"bartvds","email":"bartvanderschoor@gmail.com"}],"dist":{"shasum":"4e945fe57959cc0de7799083b6b42aed9616350a","tarball":"https://registry.npmjs.org/grunt-execute/-/grunt-execute-0.2.2.tgz","integrity":"sha512-ItW3m0goiHtUoOVl5Q1+WPMPhdLT94m5UwZ+HNGZvI4Oo5axNu5CTMcq2LSfCzdfDVmSDmPh1bJsMl5NKAm4NA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBfrAhMhPAtq7fqc5Os5EteanJB8f63kUbzNxIMAB8f4AiEA7TG4W6S6Nn6jWpgG9UR9s73fjKO5e6IJwipw9Cmpv6s="}]}}},"readme":"# grunt-execute \n\n[![Build Status](https://secure.travis-ci.org/Bartvds/grunt-execute.png?branch=master)](http://travis-ci.org/Bartvds/grunt-execute) [![Dependency Status](https://gemnasium.com/Bartvds/grunt-execute.png)](https://gemnasium.com/Bartvds/grunt-execute) [![NPM version](https://badge.fury.io/js/grunt-execute.png)](http://badge.fury.io/js/grunt-execute)\n\n> Grunt plugin to execute code in node\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-execute --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-execute');\n```\n\n## The \"execute\" task\n\nExecute javascript files and snippets to test application files, run loose bits development javascript or use basic files as a poor-mans grunt-tasks.\n\n* Run selected files in a node.js child process.\n* Run inline functions with grunt/options helpers and async support.\n* Run functions before/after looping the selected files.\n* Require() selected files as custom callback module.\n\nThe callback module file and inline functions all share the same signature with access to grunt, options and optional async callback.\n\n### Overview\n\nIn your project's Gruntfile, add a section named `execute` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n\texecute: {\n\t\ttarget: {\n\t\t\tsrc: ['script.js']\n\t\t}\n\t}\n})\n```\n\n### Options\n\nAlso see the Gruntfile.js for real usage examples.\n\n```js\ngrunt.initConfig({\n\texecute: {\n\t\tsimple_target: {\n\t\t\t// execute javascript files in a node child_process\n\t\t\tsrc: ['script.js']\n\t\t},\n\t\tsimple_target_with_args: {\n\t\t\toptions: {\n\t\t\t\t// execute node with additional arguments\n\t\t\t\targs: ['arg1', 'arg2']\n\t\t\t},\n\t\t\tsrc: ['script.js']\n\t\t},\n\t\tsimple_target_with_harmony: {\n\t\t\toptions: {\n\t\t\t\t// pass arguments to node itself (eg: before script parameter)\n\t\t\t\tnodeargs: ['--harmony']\n\t\t\t},\n\t\t\tsrc: ['script.js']\n\t\t},\n\t\tcwd_target: {\n\t\t\toptions: {\n\t\t\t\t// overide code cwd (defaults to '.' for project main)\n\t\t\t\tcwd: '.'\n\t\t\t},\n\t\t\tsrc: ['script.js']\n\t\t},\n\t\tglob_target: {\n\t\t\t// supports grunt glob and filter features\n\t\t\tsrc: ['apps/**/*.js', 'lib/**/index.js']\n\t\t},\n\t\tmodule_target: {\n\t\t\toptions: {\n\t\t\t\t// use require() instead of a child_process\n\t\t\t\t// the scripts must be a module exporting a function\n\t\t\t\t// use a signature like the inline call-option (see below)\n\n\t\t\t\tmodule: true\n\t\t\t},\n\t\t\tsrc: ['script.js']\n\t\t},\n\t\tcallback_sync: {\n\t\t\t// simple inline function call\n\t\t\tcall: function(grunt, options){\n\t\t\t\tgrunt.log.writeln('Hello!');\n\t\t\t}\n\t\t},\n\t\tcallback_async: {\n\t\t\t// function call also supports async callback\n\t\t\tcall: function(grunt, options, async){\n\t\t\t\t// get the callback\n\t\t\t\tvar done = async();\n\t\t\t\t\n\t\t\t\tsetTimeout(function(){\n\t\t\t\t\tgrunt.log.writeln('Done!')\n\t\t\t\t\tdone(err);\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t}\n\t\tbefore_after: {\n\t\t\toptions: {\n\t\t\t\t// like call but executed before/after looping the files\n\t\t\t\tbefore: function(grunt, options){\n\t\t\t\t\tconsole.log('Hello!');\n\t\t\t\t},\n\t\t\t\tafter: function(grunt, options){\n\t\t\t\t\tconsole.log('Bye!');\n\t\t\t\t}\n\t\t\t},\n\t\t\t// can also be used outside the options\n\t\t\tbefore: function(grunt, options){\n\t\t\t\tconsole.log('Hello!');\n\t\t\t},\n\t\t\tafter: function(grunt, options){\n\t\t\t\tconsole.log('Bye!');\n\t\t\t}\n\t\t\tsrc: ['script.js'],\n\t\t},\n\t}\n});\n```\n\n\n## Versions\n\n* 0.2.2 - Add support for node arguments, via `nodeargs` (like `--harmony`)\n* 0.2.1 - Non-zero exit code will fail grunt, add support for commandline arguments\n* 0.1.5 - Added callback module & inline function support\n* 0.1.4 - Ditched stdio option, show errors inline (even in webstorm)\n* 0.1.3 - Basic version, colors disabled\n\n## Contributing\nIn 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](http://gruntjs.com/).\n\n## Release History\n_(Nothing yet)_\n","maintainers":[{"name":"bartvds","email":"bartvanderschoor@gmail.com"}],"time":{"modified":"2022-06-18T14:57:29.582Z","created":"2013-05-16T11:43:22.768Z","0.1.1":"2013-05-16T11:43:26.899Z","0.1.2":"2013-05-16T11:48:52.025Z","0.1.3":"2013-05-19T19:33:08.475Z","0.1.4":"2013-05-20T14:08:47.903Z","0.1.5":"2013-08-10T02:53:00.836Z","0.2.0":"2014-04-25T20:05:33.892Z","0.2.1":"2014-04-25T20:21:17.769Z","0.2.2":"2014-07-01T14:17:23.978Z"},"author":{"name":"Bart van der Schoor","email":"bartvanderschoor@gmail.com"},"repository":{"type":"git","url":"git://github.com/Bartvds/grunt-execute.git"},"homepage":"https://github.com/Bartvds/grunt-execute","keywords":["gruntplugin","execute","code","node","scripts","spawn","exec"],"bugs":{"url":"https://github.com/Bartvds/grunt-execute/issues"},"readmeFilename":"README.md","users":{"pfremm":true}}