Watchman? Watch Your File Change then Do Something!
[REALLY NEED SOME TOUCHING!! A LOT!!]
Here I want to share an invaluable tool for day to day programming task. It is watchman from Facebook.
I am not going to talk a lot since I should continue some of my work so I will put a reminder on this unfinished article.
I have Test.swift
file that I use it regularly to try some concept. I am not using playground since my Mac will end up hang when trying to use playground. I use Visual Studio Code and rebuild > run
every single change in the file. It, beside cumbersome, it is not effective at all. So I remember that Facebook provide watchman to watch any change and rebuild. This tool is, as far as I know, the cause of Hot Reload in React Native come to achieve. So, I use it.
watchman-make -p 'Test.swift' --run 'swift Test.swift'