vite-babylonjs
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

This project was initialized with vue-ts template:

$ npm init vite@latest vite-babylonjs --template vue-ts

Then I just shamelessly copied parts of troij.js

Running the project

The result to me was that it looks like getting the basics was fairly easy (if you can overlook some hacks in place to get a scene rendering :) ). If I went further with this project then I would look at generating the types like I do in react-babylonjs, but strongly typed using generics defineComponent<T>(...) instead of defineComponent({props: ...}). I like how the plugins mechanism works, but would want to look for a way that would take advantage of tree-shaking.

Vue 3 + Typescript + Vite

This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Recommended IDE Setup

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's .vue type support plugin by running Volar: Switch TS Plugin on/off from VSCode command palette.

Readme

Keywords

none

Package Sidebar

Install

npm i vite-babylonjs

Weekly Downloads

0

Version

0.0.1

License

none

Unpacked Size

256 kB

Total Files

39

Last publish

Collaborators

  • brianzinn