Hello, Babylonians .
I published a Node.js CLI named ‘create-babylon-app’.
This provides some templates (currently two) of Babylon.js development environments, and install them in a command.
You can run the following commands to launch dev server that hosting Babylon.js web application!
(also pnpm and yarn is supported)
# create a project from template
npm create babylon-app
# install dependencies
npm i
# launch dev server
npm run dev
I’ve added Vite-ts and Vite-js templates.
I assume that the webpack and some JS framework integration templates are in demand.
9 Likes
This is amazing! Thanks for sharing with the community!
2 Likes
This is great, thanks!
I first came across the tutorial here Babylon.js docs
but got confused by the unusual folder structure - a parent folder then project subfolders.
So, they should replace that with this!
1 Like
roland
April 7, 2024, 10:38pm
5
Welcome @bburnskm !
Honestly, thanks to @drumath2237 for the initiative but the scaffolded project is far from perfect.
@bburnskm you can find several boilerplate projects for babylon.js on GitHub:
https://github.com/search?q=babylonjs%20boilerplate&type=repositories
Choose the most recent and/or the one with the most stars.
Yes exactly, this is still a experimental and hobby project…(not 1.0)
I want to keep improving this!
1 Like
roland
April 8, 2024, 3:22am
7
You should definitelly improve it to a full-blown stackfolding tool!
1 Like
Thank you so much. It is very helpful.
Could you tell me how to run with pnpm? It is new for me and I do not know how to do.
1 Like
You can use this for the command like below!
pnpm create babylon-app
cd <proj name>
pnpm install
pnpm dev
drumath2237:
pnpm create babylon-app
Thank you.
I tried and I got error message during pnpm install.
It was EE_PNPM_EBUSY, after rename …\core_tmp_8764 to …\core it worked.
Oh really, I couldn’t reproduce this on my environment.
My development environment is below.
Windows 10,11
pnpm v9.1.1 (I usually use pnpm)
Node.js 20.9.0
Does your pnpm works correctly for other projects?
1 Like
Windows 11
pnpm v9.1.0
Node.js v18.16.0
It works correctly for other projects. It might be due to that my Node.js version is older than yours.
umm… I tried again with Node.js v18.17.1, but it worked correctly.
I’m sorry I have no idea how to fix it…