https://github.com/aleclarson/watch-app
Restart .app when it changes
https://github.com/aleclarson/watch-app
react-native react-native-macos
Last synced: 26 days ago
JSON representation
Restart .app when it changes
- Host: GitHub
- URL: https://github.com/aleclarson/watch-app
- Owner: aleclarson
- Created: 2019-07-05T13:59:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-14T02:03:40.000Z (over 6 years ago)
- Last Synced: 2025-09-09T23:38:35.597Z (10 months ago)
- Topics: react-native, react-native-macos
- Language: JavaScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# watch-app
Restart `.app` when it changes
```sh
npx watch-app ./path/to/foo.app
```
## How it works
The following paths are watched for changes:
- `/Contents/MacOS/*`
- `/Contents/Resources/**`
When a change is detected, the process of your `.app` is restarted with `kill -9` and `open`.
The process ID is tracked for future changes.
Simple!