create-svelte
Create a Svelte or Sapper site in a single command.
Last updated 20 hours ago by ax333len .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install create-svelte 
SYNC missed versions from official npm registry.

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-app myapp

With yarn

  yarn create svelte-app 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.

Current Tags

  • 1.2.5                                ...           latest (20 hours ago)

8 Versions

  • 1.2.5                                ...           20 hours ago
  • 1.2.4                                ...           20 hours ago
  • 1.2.3                                ...           21 hours ago
  • 1.2.2                                ...           21 hours ago
  • 1.2.1                                ...           21 hours ago
  • 1.2.0                                ...           3 days ago
  • 1.0.1                                ...           a month ago
  • 1.0.0                                ...           a month ago
Maintainers (1)
Downloads
Today 5
This Week 5
This Month 90
Last Day 70
Last Week 85
Last Month 32
Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |