File tree 23 files changed +41
-39
lines changed
documentation/docs/20-commands 23 files changed +41
-39
lines changed Original file line number Diff line number Diff line change 1
1
[ ![ Chat] ( https://img.shields.io/discord/457912077277855764?label=chat&logo=discord )] ( https://svelte.dev/chat )
2
2
3
- # sv - the Svelte scaffolding CLI
3
+ # sv - the Svelte CLI
4
4
5
- Read the [ SvelteKit documentation] ( https://kit. svelte.dev/docs ) for more details about getting started with a newly created app.
5
+ Read the [ SvelteKit documentation] ( https://svelte.dev/docs/kit ) for more details about getting started with a newly created app.
6
6
7
7
### Packages
8
8
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ npx sv migrate [migration]
14
14
15
15
| Migration | From | To | Guide |
16
16
| ------------- | --------------------- | --------------------- | --------------------------------------------------------------- |
17
- | ` svelte-5 ` | Svelte 4 | Svelte 5 | [ Website] ( https://svelte.dev/docs/v5-migration-guide ) |
18
- | ` sveltekit-2 ` | SvelteKit 1.0 | SvelteKit 2.0 | [ Website] ( https://kit. svelte.dev/docs/migrating-to-sveltekit-2 ) |
19
- | ` svelte-4 ` | Svelte 3 | Svelte 4 | [ Website] ( https://svelte.dev/docs/v4-migration-guide ) |
17
+ | ` svelte-5 ` | Svelte 4 | Svelte 5 | [ Website] ( https://svelte.dev/docs/svelte/ v5-migration-guide ) |
18
+ | ` sveltekit-2 ` | SvelteKit 1.0 | SvelteKit 2.0 | [ Website] ( https://svelte.dev/docs/kit /migrating-to-sveltekit-2 ) |
19
+ | ` svelte-4 ` | Svelte 3 | Svelte 4 | [ Website] ( https://svelte.dev/docs/svelte/ v4-migration-guide ) |
20
20
| ` package ` | ` @sveltejs/package@1 ` | ` @sveltejs/package@2 ` | [ #8922 ] ( https://github.com/sveltejs/kit/pull/8922 ) |
21
21
| ` routes ` | SvelteKit pre-1.0 | SvelteKit 1.0 | [ #5774 ] ( https://github.com/sveltejs/kit/discussions/5774 ) |
22
22
Original file line number Diff line number Diff line change 1
1
# sv - the Svelte CLI
2
2
3
- A CLI for creating new [ SvelteKit ] ( https://kit. svelte.dev ) projects and adding functionality to existing ones . Just run...
3
+ A command line interface ( CLI) for creating and maintaining [ Svelte ] ( https://svelte.dev ) applications . Just run...
4
4
5
5
``` bash
6
6
npx sv
@@ -31,4 +31,4 @@ This project was formed by merging the `create-svelte` and `svelte-add` CLIs. Th
31
31
32
32
## License
33
33
34
- [ MIT] ( ../../LICENSE ) .
34
+ [ MIT] ( ../../LICENSE )
Original file line number Diff line number Diff line change 18
18
"directory" : " packages/cli"
19
19
},
20
20
"license" : " MIT" ,
21
- "homepage" : " https://kit. svelte.dev" ,
21
+ "homepage" : " https://svelte.dev" ,
22
22
"bin" : " ./dist/bin.js" ,
23
23
"exports" : {
24
24
"." : {
Original file line number Diff line number Diff line change 19
19
"directory" : " packages/create"
20
20
},
21
21
"license" : " MIT" ,
22
- "homepage" : " https://kit. svelte.dev" ,
22
+ "homepage" : " https://svelte.dev" ,
23
23
"exports" : {
24
24
"." : {
25
25
"types" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change 11
11
"strict" : true ,
12
12
"moduleResolution" : " bundler"
13
13
}
14
- // Path aliases are handled by https://kit. svelte.dev/docs/configuration#alias
15
- // except $lib which is handled by https://kit. svelte.dev/docs/configuration#files
14
+ // Path aliases are handled by https://svelte.dev/docs/kit /configuration#alias
15
+ // except $lib which is handled by https://svelte.dev/docs/kit /configuration#files
16
16
//
17
17
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
18
18
// from the referenced tsconfig.json - TypeScript does not merge them in
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
3
3
4
4
/** @type {import('@sveltejs/kit').Config } */
5
5
const config = {
6
- // Consult https://kit. svelte.dev/docs/integrations#preprocessors
6
+ // Consult https://svelte.dev/docs/kit /integrations#preprocessors
7
7
// for more information about preprocessors
8
8
preprocess : vitePreprocess ( ) ,
9
9
10
10
kit : {
11
- // adapter-auto only supports some environments, see https://kit. svelte.dev/docs/adapter-auto for a list.
11
+ // adapter-auto only supports some environments, see https://svelte.dev/docs/kit /adapter-auto for a list.
12
12
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
13
- // See https://kit. svelte.dev/docs/adapters for more information about adapters.
13
+ // See https://svelte.dev/docs/kit /adapters for more information about adapters.
14
14
adapter : adapter ( )
15
15
}
16
16
} ;
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
3
3
4
4
/** @type {import('@sveltejs/kit').Config } */
5
5
const config = {
6
- // Consult https://kit. svelte.dev/docs/integrations#preprocessors
6
+ // Consult https://svelte.dev/docs/kit /integrations#preprocessors
7
7
// for more information about preprocessors
8
8
preprocess : vitePreprocess ( ) ,
9
9
10
10
kit : {
11
- // adapter-auto only supports some environments, see https://kit. svelte.dev/docs/adapter-auto for a list.
11
+ // adapter-auto only supports some environments, see https://svelte.dev/docs/kit /adapter-auto for a list.
12
12
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
13
- // See https://kit. svelte.dev/docs/adapters for more information about adapters.
13
+ // See https://svelte.dev/docs/kit /adapters for more information about adapters.
14
14
adapter : adapter ( )
15
15
}
16
16
} ;
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import adapter from '@sveltejs/adapter-auto';
3
3
/** @type {import('@sveltejs/kit').Config } */
4
4
const config = {
5
5
kit : {
6
- // adapter-auto only supports some environments, see https://kit. svelte.dev/docs/adapter-auto for a list.
6
+ // adapter-auto only supports some environments, see https://svelte.dev/docs/kit /adapter-auto for a list.
7
7
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
8
- // See https://kit. svelte.dev/docs/adapters for more information about adapters.
8
+ // See https://svelte.dev/docs/kit /adapters for more information about adapters.
9
9
adapter : adapter ( )
10
10
}
11
11
} ;
Original file line number Diff line number Diff line change 2
2
3
3
Everything you need to build a Svelte library, powered by [ ` create-svelte ` ] ( https://github.com/sveltejs/kit/tree/main/packages/create-svelte ) .
4
4
5
- Read more about creating a library [ in the docs] ( https://kit. svelte.dev/docs/packaging ) .
5
+ Read more about creating a library [ in the docs] ( https://svelte.dev/docs/kit /packaging ) .
6
6
7
7
## Creating a project
8
8
@@ -45,7 +45,7 @@ npm run build
45
45
46
46
You can preview the production build with ` npm run preview ` .
47
47
48
- > To deploy your app, you may need to install an [ adapter] ( https://kit. svelte.dev/docs/adapters ) for your target environment.
48
+ > To deploy your app, you may need to install an [ adapter] ( https://svelte.dev/docs/kit /adapters ) for your target environment.
49
49
50
50
## Publishing
51
51
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
3
3
4
4
/** @type {import('@sveltejs/kit').Config } */
5
5
const config = {
6
- // Consult https://kit. svelte.dev/docs/integrations#preprocessors
6
+ // Consult https://svelte.dev/docs/kit /integrations#preprocessors
7
7
// for more information about preprocessors
8
8
preprocess : vitePreprocess ( ) ,
9
9
10
10
kit : {
11
- // adapter-auto only supports some environments, see https://kit. svelte.dev/docs/adapter-auto for a list.
11
+ // adapter-auto only supports some environments, see https://svelte.dev/docs/kit /adapter-auto for a list.
12
12
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
13
- // See https://kit. svelte.dev/docs/adapters for more information about adapters.
13
+ // See https://svelte.dev/docs/kit /adapters for more information about adapters.
14
14
adapter : adapter ( )
15
15
}
16
16
} ;
Original file line number Diff line number Diff line change 11
11
"strict" : true ,
12
12
"moduleResolution" : " bundler"
13
13
}
14
- // Path aliases are handled by https://kit. svelte.dev/docs/configuration#alias
15
- // except $lib which is handled by https://kit. svelte.dev/docs/configuration#files
14
+ // Path aliases are handled by https://svelte.dev/docs/kit /configuration#alias
15
+ // except $lib which is handled by https://svelte.dev/docs/kit /configuration#files
16
16
//
17
17
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
18
18
// from the referenced tsconfig.json - TypeScript does not merge them in
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import adapter from '@sveltejs/adapter-auto';
3
3
/** @type {import('@sveltejs/kit').Config } */
4
4
const config = {
5
5
kit : {
6
- // adapter-auto only supports some environments, see https://kit. svelte.dev/docs/adapter-auto for a list.
6
+ // adapter-auto only supports some environments, see https://svelte.dev/docs/kit /adapter-auto for a list.
7
7
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
8
- // See https://kit. svelte.dev/docs/adapters for more information about adapters.
8
+ // See https://svelte.dev/docs/kit /adapters for more information about adapters.
9
9
adapter : adapter ( )
10
10
}
11
11
} ;
Original file line number Diff line number Diff line change @@ -35,4 +35,4 @@ npm run build
35
35
36
36
You can preview the production build with ` npm run preview ` .
37
37
38
- > To deploy your app, you may need to install an [ adapter] ( https://kit. svelte.dev/docs/adapters ) for your target environment.
38
+ > To deploy your app, you may need to install an [ adapter] ( https://svelte.dev/docs/kit /adapters ) for your target environment.
Original file line number Diff line number Diff line change 1
- // See https://kit. svelte.dev/docs/types#app
1
+ // See https://svelte.dev/docs/kit /types#app
2
2
// for information about these interfaces
3
3
declare global {
4
4
namespace App {
Original file line number Diff line number Diff line change 14
14
</main >
15
15
16
16
<footer >
17
- <p >visit <a href =" https://kit.svelte.dev" >kit.svelte.dev</a > to learn SvelteKit</p >
17
+ <p >
18
+ visit <a href =" https://svelte.dev/docs/kit" >svelte.dev/docs/kit</a > to learn about SvelteKit
19
+ </p >
18
20
</footer >
19
21
</div >
20
22
Original file line number Diff line number Diff line change 6
6
7
7
<header >
8
8
<div class =" corner" >
9
- <a href =" https://kit. svelte.dev" >
9
+ <a href =" https://svelte.dev/docs/kit " >
10
10
<img src ={logo } alt =" SvelteKit" />
11
11
</a >
12
12
</div >
Original file line number Diff line number Diff line change 7
7
<h1 >About this app</h1 >
8
8
9
9
<p >
10
- This is a <a href =" https://kit. svelte.dev" >SvelteKit</a > app. You can make your own by typing the
11
- following into your command line and following the prompts:
10
+ This is a <a href =" https://svelte.dev/docs/kit " >SvelteKit</a > app. You can make your own by typing
11
+ the following into your command line and following the prompts:
12
12
</p >
13
13
14
14
<pre >npx sv create</pre >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
5
5
6
6
/** @type {import('@sveltejs/kit').Config } */
7
7
const config = {
8
- // Consult https://kit. svelte.dev/docs/integrations#preprocessors
8
+ // Consult https://svelte.dev/docs/kit /integrations#preprocessors
9
9
// for more information about preprocessors
10
10
preprocess : vitePreprocess ( ) ,
11
11
Original file line number Diff line number Diff line change 1
- // See https://kit. svelte.dev/docs/types#app
1
+ // See https://svelte.dev/docs/kit /types#app
2
2
// for information about these interfaces
3
3
declare global {
4
4
namespace App {
Original file line number Diff line number Diff line change 1
1
<h1 >Welcome to SvelteKit</h1 >
2
- <p >Visit <a href =" https://kit. svelte.dev" >kit. svelte.dev</a > to read the documentation</p >
2
+ <p >Visit <a href =" https://svelte.dev/docs/kit " > svelte.dev/docs/kit </a > to read the documentation</p >
Original file line number Diff line number Diff line change 1
- // See https://kit. svelte.dev/docs/types#app
1
+ // See https://svelte.dev/docs/kit /types#app
2
2
// for information about these interfaces
3
3
declare global {
4
4
namespace App {
Original file line number Diff line number Diff line change 1
1
<h1 >Welcome to your library project</h1 >
2
2
<p >Create your package using @sveltejs/package and preview/showcase your work with SvelteKit</p >
3
- <p >Visit <a href =" https://kit. svelte.dev" >kit. svelte.dev</a > to read the documentation</p >
3
+ <p >Visit <a href =" https://svelte.dev/docs/kit " > svelte.dev/docs/kit </a > to read the documentation</p >
You can’t perform that action at this time.
0 commit comments