gulp-runtime

A gulp runtime interface

gulp-runtime

use gulp whilst is running

documentation

For a REPL just require the module

 var runtime = require('gulp-runtime');

press enter to see the prompt

[13:07:50] Starting 'default'...
[13:07:50] Finished 'default' after 800 μs
 >

run tasks

> (press tab)
--silent        --tasks         -T              --tasks-simple  -v              --version       --require
--gulpfile      lint            jade            stylus          js
jsx             browserify      default
 > browserify
[14:28:53] Starting 'js''jsx''browserify' ...
[14:28:53] Finished 'js' after 17 μs, 'jsx' after 21 μs, 'browserify' after 27 μs

use the gulp cli without exiting the process

 > --tasks
[14:25:14] Tasks for ~/code/project/gulpfile.js
[14:25:14] ├── lint
[14:25:14] ├── jade
[14:25:14] ├── stylus
[14:25:14] ├── js
[14:25:14] ├── jsx
[14:25:14] ├─┬ browserify
[14:25:14] │ ├── js
[14:25:14] │ └── jsx
[14:25:14] └─┬ default
[14:25:14]   ├── lint
[14:25:14]   ├── jade
[14:25:14]   ├── stylus
[14:25:14]   └── browserify

or run gulpfiles directly

$ node project/gulpfile.js browserify
[13:35:56] From plugin `gulp-runtime`
[13:35:56] Working directory changed to ~/code/project
[13:35:56] Using gulpfile ~/code/project/gulpfile.js
[14:28:53] Starting 'js''jsx''browserify' ...
[14:28:53] Finished 'js' after 17 μs, 'jsx' after 21 μs, 'browserify' after 27 μs  
 >
  • A hackable CLI/REPL with standard shell behavior.
  • A runtime interface: communicate with the REPL using code.
  • Extras:
    • Run gulp directly from a gulpfile.
    • Log task code to the terminal using --log-task (yep, I am that lazy).

Read the documentation for more information about all the above.

With npm

npm install --save-dev gulp-runtime
  • [ ] review the documentation
  • [ ] review the CLI (--cwd is missing at the moment)