Skip to content

Commit

Permalink
chore: fix sveltekit deployment and add instruction in application re…
Browse files Browse the repository at this point in the history
…adme (#42)

* feat: patch js

* feat: patch js

* feat: update db utils

* feat: update readme
  • Loading branch information
Alfred-Lau authored May 17, 2024
1 parent 8ebcd21 commit 64197f6
Show file tree
Hide file tree
Showing 11 changed files with 2,868 additions and 82 deletions.
13 changes: 13 additions & 0 deletions applications/js/sveltekit/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## how to dev

prerequirement

- nodejs
- oceanbase 单机版

git clone xxx
npm install
npm run dev

npm run build
node .svelte-kit/output/server/index.js
40 changes: 40 additions & 0 deletions javascript/sveltekit/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "sveltekit",
"type": "module",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
},
"dependencies": {
"dotenv": "^16.0.3",
"svelte": "^3.42.6",
"tailwindcss": "^2.2.19",
"@sveltejs/kit": "next",
"mysql2": "^3.2.0"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"autoprefixer": "^10.4.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-svelte3": "^3.2.1",
"postcss-cli": "^9.0.2",
"prettier": "^2.4.1",
"prettier-plugin-svelte": "^2.4.0",
"typescript": "^5.0.0",
"vite": "^5.0.3"
},
"keywords": [],
"author": "",
"license": "ISC"
}
Loading

0 comments on commit 64197f6

Please sign in to comment.