thunder-app / thunder

Thunder - An open-source cross-platform Lemmy client for iOS and Android built with Flutter
https://thunderapp.dev
GNU Affero General Public License v3.0
732 stars 62 forks source link

Developer QOL: Integrate Run on Save. #1294

Closed micahmo closed 1 month ago

micahmo commented 1 month ago

Pull Request Description

This PR is a followup to #1264 and #1277. Using the Run on Save extension, we can essentially close the loop with regards to quickly and easily adding new translations. Run on Save allows us to execute an arbitrary script upon saving a matching set of files. I have it set up to match .arb files and perform the following steps.

If there are errors with any of these steps (like the recent issue with activating arb_utils) it should not affect the developer. If needed, the logs can be found in the Output window.

As before, these new entries in settings.json only affect developers using VS Code and only those with the Run on Save extension installed.

P.S. Can you verify that these commands run successfully on Mac as well?

Screenshots / Recordings

Here is a full demo of the end-to-end workflow. You can see how easy things are now! :blush:

https://github.com/thunder-app/thunder/assets/7417301/fe051c12-ca0a-4ef3-a175-3fcc4641a35e