gradio/js/workbench
renovate[bot] c33828cfdf
chore(deps): update dependency svelte-preprocess to v5 (#4636)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-22 11:39:18 +01:00
..
src node support for js client (#3692) 2023-04-03 14:33:01 +01:00
static move files (#3605) 2023-03-27 16:12:58 -07:00
.gitignore move files (#3605) 2023-03-27 16:12:58 -07:00
.npmrc move files (#3605) 2023-03-27 16:12:58 -07:00
package.json chore(deps): update dependency svelte-preprocess to v5 (#4636) 2023-06-22 11:39:18 +01:00
postcss.config.cjs move files (#3605) 2023-03-27 16:12:58 -07:00
README.md move files (#3605) 2023-03-27 16:12:58 -07:00
svelte.config.js move files (#3605) 2023-03-27 16:12:58 -07:00
tailwind.config.cjs move files (#3605) 2023-03-27 16:12:58 -07:00
tsconfig.json move files (#3605) 2023-03-27 16:12:58 -07: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

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.