mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
* feat(node): add support for SvelteKit with adapter-auto - Configure SvelteKit builds to force adapter-node output via GCP_BUILDPACKS variable - Set appropriate start command for SvelteKit projects using adapter-auto - Add test coverage for SvelteKit detection and configuration Generated-by: aiautocommit * test(examples): replace justBuild flags with specific test assertions Generated-by: aiautocommit * docs(guides): remove obsolete justBuild reference from developing-locally guide Generated-by: aiautocommit * refactor(tests): remove JustBuild test option and logic Generated-by: aiautocommit * refactor(node): update SvelteKit adapter-auto comment reasoning Generated-by: aiautocommit * feat(core): add start command and build variables to sveltekit build plan Generated-by: aiautocommit * chore: exclude tmp directory when staging updated snapshots Generated-by: aiautocommit
sv
Everything you need to build a Svelte project, powered by sv.
Creating a project
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
npx sv create
# create a new project in my-app
npx sv create 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.