Everything you need to build a Svelte project, powered by create-svelte
.
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
See package.json for all scripts.
This project uses *p*npm
# install all pkgs to node_modules
pnpm install
# Run in dev server
pnpm start
# add a developer package
pnpm add -D [package name]
# More info here https://pnpm.io/cli/add
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.
https://playwright.dev/docs/intro
pnpm create playwright
npx playwright test
npX