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 - npm Package Compare versions

Comparing version 2.0.0-alpha.7 to 2.0.0-alpha.8

template/CHANGELOG.md

4

package.json
{
"name": "create-svelte",
"version": "2.0.0-alpha.7",
"version": "2.0.0-alpha.8",
"bin": "./bin",

@@ -9,2 +9,3 @@ "devDependencies": {

"prompts": "^2.3.2",
"rollup": "^2.32.0",
"tiny-glob": "^0.2.6"

@@ -15,2 +16,3 @@ },

"build": "rollup -c",
"prepare": "npm run build",
"prepublishOnly": "npm run build"

@@ -17,0 +19,0 @@ },

{
"name": "~TODO~",
"version": "0.0.1",
"scripts": {

@@ -7,9 +9,10 @@ "dev": "svelte dev",

"dependencies": {
"@sveltejs/adapter-node": "workspace:^0.0.4",
"svelte": "^3.29.0"
},
"devDependencies": {
"@sveltejs/adapter-node": "workspace:0.0.3",
"@sveltejs/kit": "workspace:0.0.11",
"@sveltejs/snowpack-config": "workspace:^0.0.2"
"@sveltejs/adapter-node": "workspace:0.0.4",
"@sveltejs/kit": "workspace:0.0.14",
"@sveltejs/snowpack-config": "workspace:^0.0.3"
}
}

@@ -1,19 +0,41 @@

# sveltejs/app-template
# create-svelte
Clone this repo to start building an app with Svelte:
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte);
## Creating a project
If you're seeing this, you've probably already done this step. Congrats!
```bash
# create a new project in the current directory
npm init svelte@next
# create a new project in my-app
npm init svelte@next my-app
```
npx degit @sveltejs/app-template my-app
cd my-app
npm install
```
Start the development server:
> Note: the `@next` is temporary
```
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
```bash
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
```
## Note
This currently requires a pre-release version of `@snowpack/plugin-svelte` — [clone the repo](https://github.com/pikapkg/snowpack), `cd` into `packages/plugin-svelte`, build, and link.
## Building
Svelte apps are built with *adapters*, which optimise your project for deployment to different environments, like [Begin](https://begin.com), [Netlify](https://www.netlify.com), [Vercel](https://vercel.com) and so on. (You can also create your own adapter — instructions TODO.)
By default, `npm run build` will generate a Node app that you can run with `node build`. To use a different adapter, install it and update your `svelte.config.js` accordingly. The following official adapters are available:
* [@sveltejs/adapter-node](https://github.com/sveltejs/kit/tree/master/packages/adapter-node)
* [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/master/packages/adapter-static)
* [@sveltejs/adapter-netlify](https://github.com/sveltejs/kit/tree/master/packages/adapter-netlify)
* ...more soon
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