LasseHaslev / Executor
Watch for file changes and then execute command. Very nice for test driven development.
Stars: ✭ 14
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Executor
Aruba
Test command-line applications with Cucumber-Ruby, RSpec or Minitest. The most up to date documentation can be found on Cucumber.Pro (https://app.cucumber.pro/projects/aruba)
Stars: ✭ 900 (+6328.57%)
Mutual labels: cli, command-line, command, tdd, test-driven-development
Fselect
Find files with SQL-like queries
Stars: ✭ 3,103 (+22064.29%)
Mutual labels: utility, cli, hacktoberfest, files
Starcli
✨ Browse GitHub trending projects from your command line
Stars: ✭ 269 (+1821.43%)
Mutual labels: cli, command-line, hacktoberfest
Tsukae
🧑💻📊 Show off your most used shell commands
Stars: ✭ 345 (+2364.29%)
Mutual labels: cli, command-line, command
Clifx
Declarative framework for building command line interfaces
Stars: ✭ 900 (+6328.57%)
Mutual labels: cli, command-line, hacktoberfest
Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+20050%)
Mutual labels: utility, cli, command-line
Doitlive
Because sometimes you need to do it live
Stars: ✭ 3,073 (+21850%)
Mutual labels: cli, command-line, hacktoberfest
Cobra
A Commander for modern Go CLI interactions
Stars: ✭ 24,437 (+174450%)
Mutual labels: cli, command-line, command
Xonsh
🐚 Python-powered, cross-platform, Unix-gazing shell
Stars: ✭ 5,327 (+37950%)
Mutual labels: cli, command-line, hacktoberfest
Backslide
💦 CLI tool for making HTML presentations with Remark.js using Markdown
Stars: ✭ 679 (+4750%)
Mutual labels: utility, cli, hacktoberfest
Gitlab Cli
Create a merge request from command line in gitlab
Stars: ✭ 224 (+1500%)
Mutual labels: utility, cli, command-line
Terjira
Terjira is a very interactive and easy to use CLI tool for Jira.
Stars: ✭ 713 (+4992.86%)
Mutual labels: cli, command-line, hacktoberfest
Cliffy
NodeJS Framework for Interactive CLIs
Stars: ✭ 263 (+1778.57%)
Mutual labels: cli, command-line, command
Httpcat
httpcat is a simple utility for constructing raw HTTP requests on the command line.
Stars: ✭ 109 (+678.57%)
Mutual labels: utility, cli, command-line
Jquery.terminal
jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
Stars: ✭ 2,623 (+18635.71%)
Mutual labels: cli, command-line, command
You Dont Need Gui
Stop relying on GUI; CLI **ROCKS**
Stars: ✭ 4,766 (+33942.86%)
Mutual labels: cli, command-line, command
Webpack Command
[DEPRECATED] Lightweight, modular, and opinionated webpack CLI that provides a superior experience
Stars: ✭ 218 (+1457.14%)
Mutual labels: cli, command-line, command
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+138885.71%)
Mutual labels: cli, hacktoberfest, tdd
Bat
A cat(1) clone with wings.
Stars: ✭ 30,833 (+220135.71%)
Mutual labels: cli, command-line, hacktoberfest
@lassehaslev/executor
Run a command every time a file change. Its that simple.
Install
# Install project globaly
npm install -g @lassehaslev/executor
# Install executor per project
npm install @lassehaslev/executor --save-dev
Usage
Command line
# Doc
executor "<command>"
[--run-on-first=true]
[--watch="**/*"]
[--ignore=""]
-- [{Custom arguments added to the <command>}]
# Example
executor './vendor/bin/phpunit --color=always' --watch='**/*.php' --ignore='/node_modules|\.git|vendor/'
# Custom arguments
executor './vendor/bin/phpunit --color=always' --watch='**/*.php' -- --filter="CustomTest"
Npm
package.json
{
"scripts": {
"my-script": "executor '<command>' [options]",
}
}
Now you can run the command npm run my-script
from command line.
If you run per project and not in a npm script the command is ./node_modules/.bin/executor
.
Pro tip: use
npm run my-script -- --your --command-option="yey"
to add options to your command.
Laravel TDD
I use this project to run Test Driven Development for my Laravel applications.
Check out this Laracasts thread for more information.
Add tdd
script to projects package.json
{
"scripts": {
"tdd": "executor './vendor/bin/phpunit --color=always' --watch='**/*.php' --ignore='node_modules/' --ignore='vendor/'"
}
}
Then run npm run tdd
from your projects folder.
Pro tip: use
npm run tdd -- --filter="awesome_test"
to filter your phpunit tests.
Contributing
Follow these steps to contribute to project.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
Development
# link to local command line
npm link
# compile to es6
npm run dev
# When you are finished unlink local command
npm unlink
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].