This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
atsebay.t/ui
Renovate Bot a5d2bf359a
Some checks failed
renovate/artifacts Artifact file update failure
continuous-integration/drone/push Build is failing
chore(deps): update dependency @sveltejs/adapter-static to v3
2024-01-09 09:04:09 +00:00
..
src Colorize results 2023-08-26 23:53:50 +02:00
static
.eslintrc.cjs
.gitignore
.prettierrc
package-lock.json chore(deps): update typescript-eslint monorepo to v6.18.1 2024-01-08 23:04:51 +00:00
package.json chore(deps): update dependency @sveltejs/adapter-static to v3 2024-01-09 09:04:09 +00:00
README.md
svelte.config.js Prepare for deployment 2022-07-08 10:25:23 +02:00
tsconfig.json Fix compilation issue with svelte 2022-09-09 18:15:36 +02:00
vite.config.js Update node modules 2022-08-02 12:42:07 +02:00

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 init svelte@next

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

Note: the @next is temporary

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

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.