Skip to content

Saediek/Sindel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Sindel


Sindel is a bash script that watches your project's source for changes and runs any command on file changes.

It's more generic than cargo-watch or nodemon in that it isn't language specific.

Installation

@note the script depends on the fd Its preferred over the gnu find due to parallelism support


url="https://raw.githubusercontent.com/Saediek/Sindel/refs/heads/main/sindel"

[[ -d "${HOME}/.local/bin/" ]] && curl --create-dirs --output "${HOME}/.local/bin/sindel" "$url"

chmod u+x ~/.local/bin/sindel
## Add path to shell config file
## i.e
## echo "export PATH="${PATH}:/${HOME}/.local/bin/" >> config_file

Usage


nodemon start

## Replaced with
sindel -l js \
  -c "nodemon" \
  -s "start"

cargo-watch -x "clippy" \
  -x "build" \
  -x "test" \
  -x "fmt"

  ## with
sindel -l rs \
     -c "cargo" \
     -s "build" \
     -s "test" \
     -s "run"

## Multi-lingual project
sindel -l rs \
  -l hs \
  -l make \
  -l js \
  -c "cargo check "\
  -c "make build" \
  -c "cabal build" \
  -c "npm start"

  ## Could also customize the search interval if its too fast
  # Changed watch interval from the default=7 -> 20seconds
   sindel -l make \
   -i 20

About

Watches your project source code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages