srcbookdev / srcbook

TypeScript-centric app development platform
https://srcbook.com
Apache License 2.0
2.58k stars 101 forks source link

Add exporting functionality. Currently spits out a zip file #397

Closed nichochar closed 1 month ago

nichochar commented 1 month ago

See video for experience.

https://github.com/user-attachments/assets/90b11a2a-3c78-4553-a08e-f750c5a5aeb3

Some notes: I did not use the browser API to natively select a directory because:

Currently, I package up a zip and send it to the Downloads folder. This is a fine MVP pass that we can refine later.

Introduced the archiver package, which allows us to do stream zipping later (even if we don't do it now, it's a better thing to have in place and the library seems very mature).