0
0
Svelteframework~5 mins

Project setup with create-svelte - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is create-svelte used for?

create-svelte is a tool that helps you quickly start a new Svelte project with a ready setup. It saves time by creating all the basic files and configurations you need.

Click to reveal answer
beginner
Which command do you run to start a new Svelte project using create-svelte?

You run npm create svelte@latest in your terminal. This command starts the setup wizard for your new Svelte project.

Click to reveal answer
intermediate
What choices does the create-svelte setup wizard ask you during project creation?

The wizard asks about:

  • Project name
  • Type of project (e.g., skeleton, demo app)
  • Language preference (JavaScript or TypeScript)
  • Additional features like ESLint, Prettier, or Playwright for testing
Click to reveal answer
beginner
After creating a Svelte project with create-svelte, what is the next step to run your app locally?

Navigate into your project folder with cd your-project-name, then install dependencies using npm install. Finally, start the development server with npm run dev.

Click to reveal answer
beginner
Why is it helpful to use create-svelte instead of setting up a Svelte project manually?

It saves time and avoids mistakes by automatically creating the right files and configurations. It also helps beginners by guiding them through choices step-by-step.

Click to reveal answer
What command starts the Svelte project setup with create-svelte?
Anpm create svelte@latest
Bnpm install svelte
Cnpx svelte init
Dsvelte new project
Which of these is NOT a choice during the create-svelte setup wizard?
APicking a CSS framework like Bootstrap
BSelecting JavaScript or TypeScript
CChoosing project name
DAdding ESLint or Prettier
After creating a project, which command installs the needed packages?
Anpm run dev
Bnpm build
Cnpm start
Dnpm install
What does npm run dev do in a Svelte project?
ABuilds the project for production
BInstalls dependencies
CStarts the development server
DRuns tests
Why is using create-svelte recommended for beginners?
AIt requires manual configuration
BIt automatically sets up a ready-to-use project
CIt only works with TypeScript
DIt installs extra unrelated tools
Explain the steps to create and run a new Svelte project using create-svelte.
Think about commands and choices from start to running the app.
You got /5 concepts.
    Describe why create-svelte is helpful for setting up a Svelte project.
    Focus on benefits and ease of use.
    You got /5 concepts.