Swift Watch is a utility that automatically builds, tests, runs, or analyzes Swift projects whenever changes are detected in your Swift files. 🛠️🚀 It's like having a trusty sidekick always keeping an eye on your code!
You can easily install swift-watch
via Homebrew. Just follow these simple steps:
First, you need to tap the repository to let Homebrew know where to find swift-watch
:
brew tap Maartz/swift-watch
Now you can install the tool:
brew install swift-watch
Swift Watch (sw
) makes it easy to automatically run commands on your Swift project whenever you make changes. Here are the available options:
-
Build 🌄:
sw --build
Watches for changes and rebuilds your project.
-
Test ✅:
sw --test
Watches for changes and runs your test suite.
-
Run 🌟:
sw --run
Watches for changes and runs your Swift project.
-
Analyze 🕵️♂️:
sw --analyze
Watches for changes and performs static analysis on your project.
For help, just use:
sw --help
Here's how to use swift-watch
to make your development life easier:
-
Want to keep your project running automatically? Just do:
sw --run
-
Need to make sure your tests pass every time you save? No problem:
sw --test
-
Writing high-quality code? 🎉 Use static analysis to catch issues:
sw --analyze
This project is licensed under the MIT License. See the LICENSE file for details.
If you like swift-watch
, don't forget to star the repo on GitHub and share it with your friends! 🌟
Happy coding! 🚀