-
you just fork the GitHub repo, enable GitHub actions, make the change to boards/PUCKJS_MINIMAL.py which you can do with the online editor, and magically you'll have the file available to download after a few minutes a bit like: https://github.com/espruino/Espruino/actions/runs/4408348448#artifacts
Oh, this is actually pretty cool and very useful for cases like this one. It would be nice to actually allow it to run on demand (instead of every commit) with board file as parameter. According to github docs it should be possible https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow . I'll try to add this to the https://github.com/espruino/Espruino/blob/master/.github/workflows/build.yml template and maybe make a PR with this if I succeed.
Just to add that
Object.keys(E)
returning nothing is expected - it's becauseE
is defined as if it's an object that extends an object that has all the functions (egObject.keys([])
wouldn't includepush/pop/etc
) - although in this case it's a bit confusing.As @fanoush says tab complete should work, or
Object.getOwnPropertyNames(E)
will work too.But yes, it seems
connectSDcard
isn't built into the Puck firmware. If you ever do want to go that route let us know though - you don't actually need to set up a compiler - you just fork the GitHub repo, enable GitHub actions, make the change toboards/PUCKJS_MINIMAL.py
which you can do with the online editor, and magically you'll have the file available to download after a few minutes a bit like: https://github.com/espruino/Espruino/actions/runs/4408348448#artifacts