ColdBox Elixir
v2.x
v2.x
  • Introduction
  • Overview
  • Changelog
  • Installation
  • Running Elixir
  • Configuration Options
  • Working With Stylesheets
  • Working With Scripts
  • Versioning Cache Busting
    • ColdBox Helper Methods
  • Mixing in tasks from ColdBox Modules
  • Copying Files & Directories
  • Deleting Files & Directories
  • Executing Command Line Binaries
  • Calling Gulp Tasks
  • Custom Watchers
  • BrowserSync
  • Vue.js Integration
  • Writing Elixir Extensions
Powered by GitBook
On this page
Edit on Git

Custom Watchers

If you would like your custom task to be re-triggered while running gulp watch, you may register a watcher:

new Task( 'speak', function(){
    return gulp.src( '' ).pipe( shell( 'say ' + message ) );
})
.watch( './app/**' );
PreviousCalling Gulp TasksNextBrowserSync

Last updated 6 years ago