Skip to content

Latest commit

 

History

History
88 lines (59 loc) · 1.86 KB

readme.md

File metadata and controls

88 lines (59 loc) · 1.86 KB

Swift Watch (swift-watch) ⏰✨

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!

Installation 🛡️🎓

You can easily install swift-watch via Homebrew. Just follow these simple steps:

Step 1: Tap the Repository 🧐

First, you need to tap the repository to let Homebrew know where to find swift-watch:

brew tap Maartz/swift-watch

Step 2: Install Swift Watch 🍿

Now you can install the tool:

brew install swift-watch

Usage ⚡️✅

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

Examples 📘

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

License 📜

This project is licensed under the MIT License. See the LICENSE file for details.

Stay in Touch 💑

If you like swift-watch, don't forget to star the repo on GitHub and share it with your friends! 🌟

Happy coding! 🚀