Just so we're on the same page, do you know of the pretokenisation and minification options on the App Loader "More..." tab? (note especially the wording regarding minification on upload, under "Advanced Options")
Also anyone who wants to check that the minified code hasn't been modified would have to use a similar minifier, and it could seem a bit dodgy / frustrating.
If you're not already, maybe you could choose to use the same minifier that the App Loader uses, making reproducibility easy for a user who wants to verify the code.
If I include the original source alongside the compressed version, is that still OK, or is it not worth the hassle for the sake of 5kb?
There are examples of apps keeping both the minified and the non-minified code in the repo, choosing to upload just the minified to the watch. But more often only the non-minified code is stored on the repo.
Historically, it's happened that minified code wasn't updated when the non-minified code was changed. So it looked like the app was updated, but functionally on the watch it wasn't. Presumably we'll be more observant of this going forward though.
Looking forward to seeing the app! When you're ready to submit the PR specifics can be worked out there :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi!
Just so we're on the same page, do you know of the pretokenisation and minification options on the App Loader "More..." tab? (note especially the wording regarding minification on upload, under "Advanced Options")
If you're not already, maybe you could choose to use the same minifier that the App Loader uses, making reproducibility easy for a user who wants to verify the code.
There are examples of apps keeping both the minified and the non-minified code in the repo, choosing to upload just the minified to the watch. But more often only the non-minified code is stored on the repo.
Historically, it's happened that minified code wasn't updated when the non-minified code was changed. So it looked like the app was updated, but functionally on the watch it wasn't. Presumably we'll be more observant of this going forward though.
Looking forward to seeing the app! When you're ready to submit the PR specifics can be worked out there :)