{"id":21691335,"url":"https://github.com/just214/create-svelte-site","last_synced_at":"2025-07-05T06:07:04.648Z","repository":{"id":98919454,"uuid":"185430818","full_name":"just214/create-svelte-site","owner":"just214","description":"Create a Svelte or Sapper site in a single command.","archived":false,"fork":false,"pushed_at":"2019-08-01T16:46:43.000Z","size":102,"stargazers_count":16,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-05T19:06:00.983Z","etag":null,"topics":["cli","create-app","svelte"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/just214.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-07T15:33:39.000Z","updated_at":"2021-03-12T22:47:25.000Z","dependencies_parsed_at":"2023-04-10T09:01:25.926Z","dependency_job_id":null,"html_url":"https://github.com/just214/create-svelte-site","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/just214/create-svelte-site","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just214%2Fcreate-svelte-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just214%2Fcreate-svelte-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just214%2Fcreate-svelte-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just214%2Fcreate-svelte-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/just214","download_url":"https://codeload.github.com/just214/create-svelte-site/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just214%2Fcreate-svelte-site/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260212903,"owners_count":22975495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","create-app","svelte"],"created_at":"2024-11-25T17:37:32.728Z","updated_at":"2025-07-05T06:07:04.609Z","avatar_url":"https://github.com/just214.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create Svelte Site [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io) [![Version](https://img.shields.io/npm/v/create-svelte-site.svg)](https://npmjs.org/package/create-svelte-site) [![Downloads/week](https://img.shields.io/npm/dw/create-svelte-site.svg)](https://npmjs.org/package/create-svelte-site) [![License](https://img.shields.io/npm/l/create-svelte-site.svg)](https://github.com/gojutin/create-svelte-site/blob/master/package.json)\n\n### Create a [Svelte](https://svelte.dev/) or [Sapper](https://sapper.svelte.dev/) site in a single command.\n\n\n\n![create-svelte-site gif](https://res.cloudinary.com/gojutin/image/upload/v1557246205/create-svelte-site/create-svelte-site.gif \"create-svelte-site gif\")\n\n## Usage\n\n## Creating a Site\n**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](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to easily switch Node versions between different projects.\n\n### With npx\n\n```sh\n  npx create-svelte-site my-site\n```\n\n### With npm\n\n```sh\n  npm init svelte-site my-site\n```\n\n### With yarn\n\n```sh\n  yarn create svelte-site my-site\n```\n\n_Note: We are using `my-site` as an example. This can be any project name you choose._\n\nYou will be prompted to select a template from the official Svelte template library.\n\n![create-svelte-site prompt](https://res.cloudinary.com/gojutin/image/upload/w_320/v1557245550/create-svelte-site/create-svelte-site-prompt.png \"create-svelte-site prompt\")\n\nAfter you make your selection, your new site will be created in a directory named `my-site` inside the current folder.\n\n### Next steps:\n\nNavigate to the newly created directory.\n\n```sh\ncd my-site\n```\n\nInstall the dependencies\n\n```sh\nnpm install\n```\n\nor \n\n```sh\nyarn\n```\n\nThen, start up the development server.\n\n```sh\nnpm run dev\n```\n\nYour site will be available at [http://localhost:5000](http://localhost:5000).\n\n_Note: `npm run dev` does not apply to the `Svelte (component)` project type._\n\n## Commands\n\nHere is a full list of the options and the corresponding templates that are executed. \n\nUnder the hood, this library is using [nodegit](https://github.com/nodegit/nodegit/) to generate your new project using official Svelte and community templates.\n\n| Command            | Template                           |\n| ------------------ | -----------------------------------|\n| Svelte (rollup)    | `svelte/template`                  |\n| Svelte (webpack)   | `svelte/template-webpack`          |\n| Svelte (component) | `svelte/component-template`        |\n| Svelte (custom element) | `gojutin/svelte-custom-element` |\n| Sapper (rollup)    | `sveltejs/sapper-template#rollup`  |\n| Sapper (webpack)   | `sveltejs/sapper-template#webpack` |\n\n## Useful Resources\n\n- [Official Svelte website](https://svelte.dev/)\n- [Official Sapper website](https://sapper.svelte.dev/)\n- [Svelte repo](https://github.com/sveltejs/svelte)\n- [Sapper repo](https://github.com/sveltejs/sapper)\n- [Svelte (rollup) template repo](https://github.com/sveltejs/template)\n- [Svelte (webpack) template repo](https://github.com/sveltejs/template-webpack)\n- [Svelte (component) template repo](https://github.com/sveltejs/component-template)\n- [Svelte (custom element) template repo](https://github.com/gojutin/svelte-custom-element)\n- [Sapper template repo](https://github.com/sveltejs/sapper-template)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust214%2Fcreate-svelte-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjust214%2Fcreate-svelte-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust214%2Fcreate-svelte-site/lists"}