UNPKG

337 BJavaScriptView Raw
1#!/usr/bin/env
2"use strict";
3
4const apeWatching = require('ape-watching');
5
6const watchers = apeWatching.watchFiles([
7 'src/javascripts/**/*.js',
8 'assets/javascripts/**/*.js'
9], (ev, filename) => {
10 /*...*/
11});
12
13
14setTimeout(() => {
15 watchers.forEach((watcher) => {
16 watcher.close(); // Stop watching
17 });
18}, 1000);
\No newline at end of file