runfile
🚧 A minimal alternative for GNU Makefile. You can use Shell commands, External tools in your OS directly and synchronously with Runfile.
Additionally it's brought with built-in ES2015 support through Babel.
Install
npm install -g runfile --production
Example
An example Runfile
// or run external tools // alia `run path` to external command `echo $PATH`// to print your $PATH info in console// a short-hand for one-line task// or a sequence of commands
then in your favorite terminal:
run cleanrun deploy
Run tasks synchronously
// then `run`
Run non-block synchronous task
Besides exec()
and built-in shell commands, async/await
also allows you to write async code in sync way (looks like).
{ return { fs }}
Trigger a task by hand
Running Node executable inside ./node_modules/.bin
// just a short-hand for `./node_modules/.bin/webpack`
Run task from global Runfile
Sometimes you repeat some common operations so you will always need a Runfile
stored globally to access from anywhere.
// find task `git` in `~\.runfile\Runfile`run git -g// aliasrun :git
License
MIT.