create-svelte
Advanced tools
Comparing version 2.0.0-alpha.17 to 2.0.0-alpha.18
# create-svelte | ||
## 2.0.0-alpha.18 | ||
### Patch Changes | ||
- rename CLI to svelte-kit | ||
- 0904e22: rename svelte CLI to svelte-kit | ||
## 2.0.0-alpha.16 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "create-svelte", | ||
"version": "2.0.0-alpha.17", | ||
"version": "2.0.0-alpha.18", | ||
"bin": "./bin", | ||
"devDependencies": { | ||
"@sveltejs/app-utils": "0.0.17", | ||
"@sveltejs/app-utils": "0.0.18", | ||
"gitignore-parser": "^0.0.2", | ||
@@ -11,3 +11,3 @@ "kleur": "^4.1.3", | ||
"rollup": "^2.32.0", | ||
"tiny-glob": "^0.2.6" | ||
"tiny-glob": "^0.2.8" | ||
}, | ||
@@ -17,4 +17,5 @@ "scripts": { | ||
"build": "node scripts/update-versions && rollup -c", | ||
"lint": "eslint --ignore-pattern node_modules/ --ignore-pattern bin/ '**/*.{ts,js,svelte}'", | ||
"prepare": "npm run build", | ||
"lint": "eslint --ignore-pattern node_modules/ --ignore-pattern bin/ \"**/*.{ts,js,svelte}\" && npm run check-format", | ||
"format": "prettier --write . --config ../../.prettierrc --ignore-path .gitignore", | ||
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore", | ||
"prepublishOnly": "npm run build" | ||
@@ -21,0 +22,0 @@ }, |
@@ -5,4 +5,4 @@ { | ||
"scripts": { | ||
"dev": "svelte dev", | ||
"build": "svelte build" | ||
"dev": "svelte-kit dev", | ||
"build": "svelte-kit build" | ||
}, | ||
@@ -9,0 +9,0 @@ "devDependencies": { |
@@ -19,3 +19,2 @@ # create-svelte | ||
## Developing | ||
@@ -32,12 +31,11 @@ | ||
## 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.) | ||
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 | ||
- [@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 |
// Consult https://www.snowpack.dev to learn about these options | ||
module.exports = { | ||
extends: '@sveltejs/snowpack-config' | ||
}; | ||
extends: '@sveltejs/snowpack-config', | ||
mount: { | ||
'src/components': '/_components' | ||
}, | ||
alias: { | ||
'$components': './src/components' | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
107604
16
0
40