New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-svelte

Package Overview
Dependencies
Maintainers
1
Versions
279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-svelte

Create a Svelte or Sapper site in a single command.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.8K
decreased by-45.26%
Maintainers
1
Weekly downloads
 
Created
Source

Create Svelte

Create a Svelte or Sapper site in a single command.

This is a fork of https://github.com/gojutin/create-svelte-site but with more templates and features.

Installation

This is a command line utility, install it globally:

With npm

npm i create-svelte -g

With yarn

yarn global add create-svelte

Usage

Creating a Site

You’ll need to have Node 8.10.0 or later on your local development machine (but it’s not required on the server). You can use nvm (macOS/Linux) or nvm-windows to easily switch Node versions between different projects.

With npx

  npx create-svelte myapp

With npm

  npm init svelte myapp

With yarn

  yarn create svelte myapp

Note: We are using myapp as an example. This can be any project name you choose.

You will be prompted to select a template from the official Svelte template library.

After you make your selection, your new site will be created in a directory named myapp inside the current folder.

Next steps:

Navigate to the newly created directory.

cd myapp

Then, start up the development server.

npm run dev

Your site will be available at http://localhost:5000.

Note: The port may be different depending on the template you chose.

Note: npm run dev does not apply to the Svelte Native project type.

Keywords

FAQs

Package last updated on 20 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc