Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

gregoryv/react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image

Commandline tool for executing scripts on directory changes

Usage

If you have a root directory structure like this

.
subdir_A/
subdir_B/subdir_C/.onchange
subdir_B/.onchange

Then activate the react tool

cd root
react

it will monitor directories subdir_B/subdir_C and subdir_B for changes and execute the .onchange script in each directory whenever a file event eccurs.

Example .onchange


If working on a python module react could be used to execute tests whenever a .py file is modified.

#!/bin/sh

extension="${1##*.}"
case $extension in
    py)
        cd ~/myproject
        python setup.py test
        ;;
esac

About

Commandline tool for executing scripts on directory changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages