create-svelte

Everything you need to build a Svelte project, powered by create-svelte.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest my-app

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

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.


create-threlte version 2.0.1

┌ Welcome to Threlte! │ ◇ Where should we create your project? │ Qjump-threlte1 │ ◇ Add type checking with TypeScript? │ Yes, using TypeScript syntax │ ◇ Select additional options (use arrow keys/space bar) │ Add ESLint for code linting, Add Prettier for code formatting, Add Playwright for browser testing, Add Vitest for unit testing │ ◇ Select Threlte packages (use arrow keys/space bar) │ @threlte/extras, @threlte/theatre, Model Pipeline │ ◇ Initialize a git repository? │ Yes │ ◇ Install dependencies using npm? │ Yes │ ◇ Resolved package versions │ ◇ Installed dependencies using npm │ └ Your project is ready!

✔ Typescript Inside Svelte components, use <script lang="ts">

✔ ESLint https://github.com/sveltejs/eslint-plugin-svelte

✔ Prettier https://prettier.io/docs/en/options.html https://github.com/sveltejs/prettier-plugin-svelte#options

✔ Playwright https://playwright.dev

✔ Vitest https://vitest.dev

✔ @threlte/extras https://threlte.xyz/docs/reference/extras/getting-started

✔ @threlte/theatre https://threlte.xyz/docs/reference/theatre/getting-started https://www.theatrejs.com/

✔ Model Pipeline npm run model-pipeline:run https://threlte.xyz/docs/reference/gltf/getting-started

✔ Git Initialized a git repository.

Next steps: 1: cd Qjump-threlte1 2: npm run dev -- --open

To close the dev server, hit Ctrl-C

Stuck? Visit us at https://chat.threlte.xyz