Miss any of our Open RFC calls?Watch the recordings here! »

@fsglob/watchdir

0.0.2 • Public • Published

@fsglob/watchdir

Install

npm i -D @fsglob/watchdir

Running CLI

npx watchdir -d ./src \
  --when "{,**/}* ; {,**/}*.sass" "make js" \
  --when "{,**/}*.sass" "make css" \
  --run "echo 'all when detected has finished'"

JavaScript API

import WatchDir from '@fsglob/watchdir'
 
new WatchDir('./src')
  .when('{,**/}* ; !{,**/}*.sass', () => console.log('js files changed') )
  .when('{,**/}*.sass', () => console.log('sass files changed') )
  .run( () => console.log('all when detected has finished) )
 

Install

npm i @fsglob/watchdir

DownloadsWeekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

6.33 kB

Total Files

9

Last publish

Collaborators

  • avatar