Typescript local build/deploy tool

I’ve just started messing around with the BBC micro:bit and I understand that there are 3 programming languages that can be used: python, typescript and C++ (as well as Microsoft’s block thing). I’d prefer to use typescript and I was wondering if a simple build tool exists for building and deploying typescript to the micro:bit. I’m aware of using PXT as described here: https://makecode.com/cli. But PXT is really designed for hosting an online makecode instance and is way to heavy (~20k files, ~350MB) if you just want a simple command line build tool. Does a lighter weight tool exist or do I have to use python/C++ if I want to develop locally?

Thanks for your help.

I’m not aware of anything that supports TypeScript other than pxt, but I took a look at Carlos Pereira Atencio’s Awesome microbit site, which is a curated list of a lot of micro:bit resources. It includes a section on programming that linked to Espruino JavaScript.

It looks like there’s also some support for Rust, Ada, Forth, Pascal, … and many others.

Bill

Thanks for the link, I’ll take a look.

I’ve ended up using micropython for now but it would be great to try some of the other languages mentioned on an embedded system - rust in particular could be very cool.

There must be a way to extract just the compile/deploy tool chain from pxt and as it’s all open-source, could be a good little project for someone.

The issue I’m encountering is that I’m required to download 1000s of node modules each time I want to create a project. The uflash tool for micropython is much nicer, and I think the micro:bit could certainly benefit from something like that for typescript.

@jambolina we have a new, much, much faster CLI that doesn’t require downloading node_modules. Check it out here:

1 Like

Thanks Richard,

This looks like exactly the sort of thing I’m looking for.

1 Like

I think rust could be pretty cool too…but I haven’t had the time to really dig into it. If you do, share your experience here!