SvelteJestBabylon Svelte Themes

Sveltejestbabylon

Currently a zero code project with just the bare bones instructions of setting up a Svelte and Babylon project. The setup also includes the setup of the Jest testing framework.

SvelteJestBabylon

Currently a zero code project with just the bare bones instructions of setting up a Svelte and Babylon project. The setup also includes the setup of the Jest testing framework.

create a new project in the current directory

npm init svelte@next

create a new project in my-app

npm init svelte@next my-app
Note: the @next is temporary

cd sveltekit/ 
npm install 
npm run dev -- --open 
npm install --save-dev jest ts-jest  
            @testing-library/svelte @testing-library/jest-dom svelte-jester  
            @types/jest babel-jest @babel/preset-env

npm install babylonjs plus config

changes from here: https://daveceddia.com/svelte-typescript-jest/

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

or start the server and open the app in a new browser tab

npm run dev -- --open
Look here for inspiration:

https://github.com/topics/svelte-components
https://svelte.dev/
https://github.com/sveltejs/svelte/issues/2118
https://kit.svelte.dev/docs
http://using-babylonjs.com
https://doc.babylonjs.com
https://forum.babylonjs.com
https://github.com/htmlx-org/HTMLx

Building

Before creating a production version of your app, install an adapter for your target environment. Then:

npm run build

You can preview the built app with npm run preview, regardless of whether you installed an adapter. This should not be used to serve your app in production.

Top categories

Loading Svelte Themes