Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
amorey committed Apr 14, 2024
1 parent ace331b commit fcff740
Show file tree
Hide file tree
Showing 35 changed files with 3,966 additions and 91 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,29 @@
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
.DS_Store
*~
\#*
node_modules
.next
.env
.env*.local
.env.*
!.env.example
dist
build
.vscode

# vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

# sveltkit
.svelte-kit

# vercel
.vercel

# wrangler files
.wrangler
.dev.vars
14 changes: 14 additions & 0 deletions examples/sveltekit-cloudflare/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

# wrangler files
.wrangler
.dev.vars
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions examples/sveltekit-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "sveltekit-cloudflare",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "pnpm run build && wrangler pages dev .svelte-kit/cloudflare",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"deploy": "pnpm run build && wrangler pages deploy .svelte-kit/cloudflare",
"build-cf-types": "wrangler types && mv worker-configuration.d.ts src/"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240405.0",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-cloudflare": "^4.3.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^5.0.3",
"wrangler": "^3.50.0"
},
"type": "module",
"dependencies": {
"edge-csrf": "1.0.12-sveltekit-1"
}
}
Loading

0 comments on commit fcff740

Please sign in to comment.