Run any command without having to create a script for it
See original GitHub issueI use npm-run-all
to run multiple commands in parallel, but currently the commands can only be npm scripts. This is usually fine if you need these commands directly accessible (e.g. npm run test:style
) but sometimes I just wish I could run simple commands directly:
run-p "test:*" "&tsc"
# where &tsc just runs the `tsc` command
Issue Analytics
- State:
- Created 4 years ago
- Reactions:15
- Comments:5
Top Results From Across the Web
Run a Shell Script Without Using “sh” or “bash” Commands
In this tutorial, we'll see what to do with scripts so that we can run them like any other programs, without using the...
Read more >How do I run a shell script without using "sh" or "bash ...
Use chmod u+x scriptname to make the script executable (where scriptname is the name of your script). Place the script under /usr/local/bin ...
Read more >Create screen and run command without attaching - Server Fault
As I am trying to automate the process of creating the screen and running the commands within it I would like to avoid...
Read more >Execute a specific command in a given directory without cd'ing ...
It's rather trivial to make a script that does this: echo "#!/bin/bash; cd $1; exec $2" > /usr/local/bin/execindirectory; chmod +x /usr/local/bin/ ...
Read more >Ask Question
Do not forget to relogin after creating the bin directory! ... You need to add the ./ to run commands from scripts in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Would be nice to support this:
Concurrently supports it:
What if
npm-run-all
simply had a default$
script? I think that would be easy to implement and explain.The point here would be to avoid adding further scripts to your own package-json