Skip to content

Commit

Permalink
feat: upgrade sveltekit
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed Mar 30, 2024
1 parent 29dee2d commit 2888715
Show file tree
Hide file tree
Showing 539 changed files with 3,635 additions and 3,169 deletions.
39 changes: 1 addition & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1 @@
# create-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
```

> 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
```

## Building

Before creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then:

```bash
npm run build
```

> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.
# lihautan.com
32 changes: 17 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "svelte-kit dev",
"build": "LIHAUTAN_BUILD=true svelte-kit build",
"package": "svelte-kit package",
"preview": "svelte-kit preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"dev": "vite dev",
"build": "LIHAUTAN_BUILD=true vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. .",
"postinstall": "patch-package"
},
"devDependencies": {
"@sveltejs/adapter-auto": "next",
"@sveltejs/adapter-static": "next",
"@sveltejs/kit": "next",
"@sveltejs/adapter-auto": "3.1.1",
"@sveltejs/adapter-static": "3.0.1",
"@sveltejs/kit": "2.4.3",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.21",
"@types/react": "^17.0.42",
Expand All @@ -29,7 +29,8 @@
"fenceparser": "^2.0.0",
"fs-extra": "^10.0.1",
"image-size": "^1.0.1",
"mdsvex": "^0.9.8",
"imagetools-core": "^3.2.3",
"mdsvex": "^0.11.0",
"memoizee": "^0.4.15",
"patch-package": "^6.4.7",
"prettier": "^2.4.1",
Expand All @@ -38,15 +39,16 @@
"prismjs": "^1.27.0",
"shiki": "0.10.1",
"shiki-twoslash": "^3.0.2",
"svelte": "^3.46.4",
"svelte": "^4.2.9",
"svelte-check": "^2.2.6",
"svelte-preprocess": "^4.9.4",
"svelte-preprocess": "^5.1.3",
"tslib": "^2.3.1",
"typescript": "^4.4.3",
"typescript": "^5.0.0",
"unist-util-visit": "^4.1.0",
"vite-imagetools": "^4.0.3"
"vite": "^5.0.12",
"vite-imagetools": "^4.0.12"
},
"dependencies": {
"@sveltejs/svelte-repl": "^0.4.1"
"@sveltejs/svelte-repl": "^0.6.0"
}
}
39 changes: 0 additions & 39 deletions patches/@sveltejs+vite-plugin-svelte+1.0.0-next.39.patch

This file was deleted.

0 comments on commit 2888715

Please sign in to comment.