Skip to content

lostcache/dev_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Dev Server

A simple, cross-platform development server script that watches for file changes and automatically re-runs commands.

Features

  • Watches a specified directory for file changes
  • Automatically re-runs your command when files change
  • Cross-platform support (macOS and Linux)

Installation

Dependencies

  • macOS: fswatch
brew install fswatch
  • Linux: inotify-tools
apt-get install inotify-tools

Usage

./dev_server.sh <directory-to-watch> <command-to-run>

Examples

# Watch the current directory and run tests when files change
./dev_server.sh . "npm test"

# Watch the src directory and rebuild your project
./dev_server.sh ./src "make build"

# Watch multiple directories using bash expansion
./dev_server.sh "{src,tests}" "cargo test"

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages