Hi, I have been using snowpack for the last few months and thought it would be cool to kickstart community templates for javascript and typescript.
What is Snowpack?
Snowpack is a lightning-fast frontend build tool, designed for the modern web.
It is an alternative to heavier, more complex bundlers like webpack or Parcel in your development workflow… (read more on Snowpack - The faster frontend build tool)
A snowpack template gets a babylonjs site up and running on your computer with 4 easy commands. You don’t need to use git or download any code yourself. You just need node and a package manager like npm, yarn or pnpm (I recommend pnpm).
npx create-snowpack-app new-dir --template snowpack-babylon
Then in that directory new-dir
(or choose your own directory name) you have a full babylon project setup Here is how to start with yarn, which is probably most common these days).
cd new-dir
yarn install
yarn start
Your blazing fast babylon site is up and running with 50ms or less startup time, hot reloading, etc.! Large ecosystem of plugins and bundlers for easy customization.
I have a typescript template started, will try to make some time later this week. Hoping for some feedback from the forum - should it include inspector or GUI or anything extra like loading assets/models/textures. I don’t want it to be too opinionated, so would prefer to leave out physics and maybe can add some recipes for those common projects. Looking forward to some feedback. Cheers.
edit: template source is here brianzinn/snowpack-babylon: snowpack babylon.js template (github.com)