{"id":19258905,"url":"https://github.com/lassehaslev/executor","last_synced_at":"2025-07-17T18:11:09.068Z","repository":{"id":57126308,"uuid":"91230575","full_name":"LasseHaslev/executor","owner":"LasseHaslev","description":"Watch for file changes and then execute command. Very nice for test driven development.","archived":false,"fork":false,"pushed_at":"2017-09-23T16:13:04.000Z","size":11,"stargazers_count":17,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T21:48:37.064Z","etag":null,"topics":["cli","command","command-line","effect","execute","executor","file-changes","files","hacktoberfest","live-reload","tdd","test-driven-development","utility","watch"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LasseHaslev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-14T08:39:59.000Z","updated_at":"2023-03-05T01:46:03.000Z","dependencies_parsed_at":"2022-08-31T08:20:22.260Z","dependency_job_id":null,"html_url":"https://github.com/LasseHaslev/executor","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fexecutor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fexecutor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fexecutor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fexecutor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LasseHaslev","download_url":"https://codeload.github.com/LasseHaslev/executor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250090611,"owners_count":21373216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command","command-line","effect","execute","executor","file-changes","files","hacktoberfest","live-reload","tdd","test-driven-development","utility","watch"],"created_at":"2024-11-09T19:14:42.383Z","updated_at":"2025-04-21T16:30:32.895Z","avatar_url":"https://github.com/LasseHaslev.png","language":"JavaScript","readme":"# @lassehaslev/executor\n\u003e Run a command every time a file change. Its that simple.\n\n## Install\n```bash\n# Install project globaly\nnpm install -g @lassehaslev/executor\n\n# Install executor per project\nnpm install @lassehaslev/executor --save-dev\n```\n\n## Usage\n### Command line\n```bash\n# Doc\nexecutor \"\u003ccommand\u003e\"\n    [--run-on-first=true]\n    [--watch=\"**/*\"]\n    [--ignore=\"\"]\n\n    -- [{Custom arguments added to the \u003ccommand\u003e}]\n\n# Example\nexecutor './vendor/bin/phpunit --color=always' --watch='**/*.php' --ignore='/node_modules|\\.git|vendor/'\n\n# Custom arguments\nexecutor './vendor/bin/phpunit --color=always' --watch='**/*.php' -- --filter=\"CustomTest\"\n```\n\n### Npm\npackage.json\n```json\n{\n    \"scripts\": {\n        \"my-script\": \"executor '\u003ccommand\u003e' [options]\",\n    }\n}\n```\nNow you can run the command ```npm run my-script``` from command line.\n\n*If you run per project and not in a npm script the command is ```./node_modules/.bin/executor```.*\n\n\u003e Pro tip: use `npm run my-script -- --your --command-option=\"yey\"` to add options to your command.\n\n### Laravel TDD\nI use this project to run Test Driven Development for my Laravel applications.\n\nCheck out [this Laracasts thread](https://laracasts.com/discuss/channels/testing/laravel-mix-and-phpunit?page=1#reply-341786) for more information.\n\nAdd `tdd` script to projects package.json\n```json\n{\n  \"scripts\": {\n    \"tdd\": \"executor './vendor/bin/phpunit --color=always' --watch='**/*.php' --ignore='node_modules/' --ignore='vendor/'\"\n  }\n}\n```\n\nThen run `npm run tdd` from your projects folder.\n\n\u003e Pro tip: use `npm run tdd -- --filter=\"awesome_test\"` to filter your phpunit tests.\n\n## Contributing\nFollow these steps to contribute to project.\n\n 1. **Fork** the repo on GitHub\n 2. **Clone** the project to your own machine\n 3. **Commit** changes to your own branch\n 4. **Push** your work back up to your fork\n 5. Submit a **Pull request** so that we can review your changes\n\n\n## Development\n```bash\n# link to local command line\nnpm link\n\n# compile to es6\nnpm run dev\n\n# When you are finished unlink local command\nnpm unlink\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flassehaslev%2Fexecutor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flassehaslev%2Fexecutor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flassehaslev%2Fexecutor/lists"}