PullJosh / leopard-website

This repo contains the source code for the Leopard website
https://leopardjs.com
14 stars 3 forks source link

Implement a "download as zip" button/mode #33

Closed towerofnix closed 4 months ago

towerofnix commented 1 year ago

It would be nice to have a way to generate a standalone zip of a project converted to Leopard. Preferably, this package would work without internet access; I've already implemented an option to include reference Leopard library files packaged locally rather than online.

We might want to show a brief modal describing how to work on the project locally (like opening source files in a text editor and using the terminal to cd to the project directory and run a simple HTTP server), especially if we implement TypeScript integration (basic familiarization with npm install and npm start commands, maybe an npm build command for standalone all-in-one "My Project.html" type export).

PullJosh commented 4 months ago

We could add some additional niceties around this (like the instructions modal or making it run in-browser), but the basic functionality is now there.

towerofnix commented 4 months ago

This refers to the dropdown menu before you convert, right?

Edit as JavaScript button on homepage, with the bottom option in a dropdown, Download .zip, highlighted

No "File" menu in the editor, so no way to save a backup of your ongoing work... but that's a separate issue really. Nice, nice.

PullJosh commented 4 months ago

True. I suppose uploading a ZIP would also be a useful feature.