本页还没有译文
本页 6 段还没译成日本語,下面显示的是英文原文。Command Line Interface
还没翻译译自英文(svelte.dev)本页 6 段都还没译
SvelteKit projects use Vite, meaning you'll mostly use its CLI (albeit via npm run dev/build/preview scripts):
vite dev— start a development servervite build— build a production version of your appvite preview— run the production version locally
However SvelteKit includes its own CLI for initialising your project:
svelte-kit sync
svelte-kit sync creates the tsconfig.json and all generated types (which you can import as ./$types inside routing files) for your project. When you create a new project, it is listed as the prepare script and will be run automatically as part of the npm lifecycle, so you should not ordinarily have to run this command.
AI 翻译查看英文原文