A CLI for scaffolding Babylon.js Web App 🛠
create-babylon-app provides some Vite based Node.js project.
For example, template of simple-ts
has file structure like below.
/
├─ dist/
├─ src/
│ ├─ main.ts
│ └─ style.css
├─ index.html
├─ package.json
└─ tsconfig.json
- Node.js 18/20
- npm 10.x
- pnpm 9.x
- Babylon.js 7
npm and pnpm are recommended!
You can use create-babylon-app by typing following command in the terminal.
npm create babylon-app
Some command line args are supported.
args | alias | description | type |
---|---|---|---|
--name |
-n |
project name you want to create | string |
--template |
-t |
template name (see template section) | string |
--install |
-i |
install dependencies after copying template | boolean |
You can use them like below.
npm create babylon-app --name babylon-app --template simple-ts -i
This app provides following templates.
template name(for -t option) | language | description |
---|---|---|
simple-js |
JavaScript | Most simple JavaScript template |
simple-ts |
TypeScript | Most simple TypeScript template |
playground-js |
JavaScript | Playground based project |
playground-ts |
TypeScript | Playground based project |
library |
TypeScript | Template for developing Babylon.js library |
pnpm i
# run command without build
pnpm dev
# build
pnpm build
# run built app
pnpm start
- (in local) create
release/vx.x.x
branch and push - (in local)
pnpm version:set
- (Pull Req) Create PR and merge it
- then, automatically published to npm