Removing the need to construct an index.html file lowers the barrier to entry for p5; per @brysonian's suggestions in #1, we should permit p5 serve <some JS file> and auto-construct an HTML file with P5 pre-loaded.
Implementation concept:
Set up an express web server
Serve p5 from within the p5-cli's internal node_modules directory
Serve the specified .js file from whatever directory it is in
Construct an index.html file to load p5, then load their JS
Removing the need to construct an
index.html
file lowers the barrier to entry for p5; per @brysonian's suggestions in #1, we should permitp5 serve <some JS file>
and auto-construct an HTML file with P5 pre-loaded.Implementation concept: