Skip to content

Commit

Permalink
sveltekit
Browse files Browse the repository at this point in the history
  • Loading branch information
codegod100 committed Oct 29, 2024
1 parent 6450264 commit 1ee9458
Show file tree
Hide file tree
Showing 14 changed files with 298 additions and 100 deletions.
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,26 @@ dist-ssr
*.njsproj
*.sln
*.sw?


node_modules

# Output
.output
.vercel
/.svelte-kit
/build

# OS
.DS_Store
Thumbs.db

# Env
.env
.env.*
!.env.example
!.env.test

# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json"
},
"devDependencies": {
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@tsconfig/svelte": "^5.0.4",
"svelte": "^5.0.3",
Expand All @@ -21,6 +22,7 @@
"dependencies": {
"@atcute/client": "^2.0.3",
"@atcute/whitewind": "^1.0.2",
"@sveltejs/adapter-static": "^3.0.6",
"marked": "^14.1.3",
"moment": "^2.30.1"
}
Expand Down
113 changes: 113 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 0 additions & 68 deletions src/App.svelte

This file was deleted.

13 changes: 13 additions & 0 deletions src/app.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}

export {};
4 changes: 2 additions & 2 deletions index.html → src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"
/>
<title>nandi's blog</title>
%sveltekit.head%
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<div>%sveltekit.body%</div>
</body>
</html>
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from 'svelte'
import App from './App.svelte'
import App from './routes/+page.svelte'

const app = mount(App, {
target: document.getElementById('app')!,
Expand Down
Loading

0 comments on commit 1ee9458

Please sign in to comment.