spago icon indicating copy to clipboard operation
spago copied to clipboard

Add some tutorials for JS development

Open f-f opened this issue 2 years ago • 5 comments

The docs used to contain some tutorials for getting a small JavaScript project up and running with various bundlers and setups.

Over time that section grew to take a considerable chunk of the docs, and it was unwieldy to maintain, so it was dropped during the rewrite of the docs.

I am not sure at all if we should include such extensive documentation for how to bootstrap a project, as it feels like it would be more suited for inclusion in the cookbook and we could just redirect there? (cc @JordanMartinez)

f-f avatar Sep 19 '23 17:09 f-f

That might be a good idea. At the very least, the new spago is the kind of tool I wanted for the cookbook, as each recipe is technically its own package.

JordanMartinez avatar Sep 21 '23 02:09 JordanMartinez

It would also be good if it were easy to switch to a production build. Sure there is bundle but the output file still has to be wired up. Also production builds can require different backends like recommended here https://github.com/aristanetworks/purescript-backend-optimizer Not sure how this scenario can be implemented in the new spago

flip111 avatar Jan 18 '24 11:01 flip111