Cordell Walker - CI Ranger
One bad mother...
A walker, watcher, and CI utility that delivers a smooth roundhouse kick to your current development environment.
What is this?
- An event based file / directory walker utility
- An event based file / directory watcher utility
- A CI environment utility linter / tester / watcher
What about chokidar?
I like chokidar and it was inspiration for this project. However, I wanted a clean way to get a snapshot of the files that already existed and those files that were added later. I wanted a utility that was a bit more verbose when describing what it was doing when it was doing it. I wanted a utility that separated the recursive directory walking chocolate from the file watching peanut butter, but still come together in perfect harmony.
Finally, I wanted a utility that watched my files as I coded and immediately linted and tested them when there are changes... over and over again... while flushing the require cache and dynamically reloading modules in a single process.
I feel Cordell does all that and more.
What does Cordell do different?
- walking and watching functionality cleanly separated
- more events that you can shake a stick at
- more configurable ignore and match options
- crisp / clean coffeescript source
- a built-in CI environment that makes use of the watcher / walker combo
How does it work?
Install Cordell
Cordell can be installed via the node.js package manager
npm install cordell
Then just require the package like normal
Walking files & directories
var cordell = ; var walker = cordell
Watching files & directories
var watcher = cordell
Ranger CI functionality
options = ignorePath: /fixtures/ persistent: true linter: enabled: on coffeelint: pattern: /.*\.coffee$/ options: indentation: value: 4 level: "error" tester: enabled: on mocha: pattern: /^.*_test\.coffee$/ options: reporter:'spec' ranger = cordell;
See the test.coffee script, we eat our own dog food here...
API
coming soon... (read the test files for now)