1.0.2 • Published 6 years ago
observar v1.0.2

Watch and act! - observar is a simple file watcher and command executor that helps you during development.
Install
Install observar globally using npm:
npm install observar -gUsage
Once the installation is done, you can run the command inside your project's directory and set the npm command you want to execute on file changes.
observar -s my_commandBy default observar will watch your current directory but you can also change this setting:
Single folder
observar folder_name -s my_commandMultiple folders
observar folder_name folder2_name -s my_commandGlob Pattern e.g. src/**.js
observar glob_pattern -s my_commandIf you want to ignore specific files, directories, etc. add the --ignore or -i argument.
observar folder_name -s my_command -i folder_nameFinally, run this command to see a list of all available options:
observar --helpExample Usage
$ observar src/**.js -s format-lint -i dist/