davidedc / livecodelab

a web based livecoding environment
http://livecodelab.net/
MIT License
327 stars 63 forks source link

Changes to allow the site to live in the same repository #317

Open rumblesan opened 4 years ago

rumblesan commented 4 years ago

This uses eleventy, a simple static site generator to build the LiveCodeLab site and output it to the dist folder.

The development process for the project is exactly the same. Running npm run start will still bring up live code lab on port 8080 with hot reloading.

The main differences are that npm run build will build the site into the dist folder and then build LCL into the dist/play folder, which is where it needs to be to be linked from on the site. There are now npm run build:site and npm run start:site commands as well that allow building and development of the site separate from lcl.

There are a few benefits with this approach.

have a look and let me know what you think.