Spawn Filewatchers from file with path-command matrix.
Add this line to your application's Gemfile:
gem 'filewatcher-matrix'And then execute:
bundle installOr install it yourself as:
gem install filewatcher-matrix# filewatchers.yaml
- :pattern: 'Gemfile{,.lock}'
:command: bundle install && pumactl restart
- :pattern: '**/{*.{rb,ru,y{a,}ml}}'
:exclude: '**/{spec/**/*,config/**/*.example*}'
:command: pumactl restart
- :pattern:
- assets/styles/**/*
- postcss.config.js
:command: pnpm run build:styles
- :pattern:
- assets/scripts/**/*
- rollup.config.js
:command: pnpm run build:scripts
- :pattern: 'package.json'
:command: pnpm install && pnpm run buildrequire 'filewatcher/matrix'
matrix = Filewatcher::Matrix.new('filewatchers.yaml')
matrix.startAfter checking out the repo, run bundle install to install dependencies.
Then, run toys rspec to run the tests.
To install this gem onto your local machine, run toys gem install.
To release a new version, run toys gem release %version%.
See how it works here.
Bug reports and pull requests are welcome on GitHub.
The gem is available as open source under the terms of the MIT License.