Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Apr 8, 2024
1 parent e1f258f commit 79fe9e8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 47 deletions.
51 changes: 25 additions & 26 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,34 @@
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@iconify/json": "^2.2.141",
"@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/adapter-vercel": "^3.0.3",
"@sveltejs/adapter-netlify": "^2.0.8",
"@sveltejs/kit": "^1.27.5",
"@iconify/json": "^2.2.198",
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@sveltejs/kit": "^2.5.5",
"@tailwindcss/forms": "^0.5.7",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"autoprefixer": "^10.4.16",
"@types/node": "^20.12.5",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"autoprefixer": "^10.4.19",
"dayjs": "^1.11.10",
"dotenv": "^16.3.1",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte": "^2.35.0",
"postcss": "^8.4.31",
"postcss-load-config": "^4.0.1",
"prettier": "^3.0.3",
"dotenv": "^16.4.5",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.36.0",
"postcss": "^8.4.38",
"postcss-load-config": "^5.0.3",
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-svelte": "^3.1.0",
"prettier-plugin-tailwindcss": "^0.5.7",
"svelte": "^4.2.3",
"svelte-check": "^3.6.0",
"tailwindcss": "^3.3.5",
"prettier-plugin-svelte": "^3.2.2",
"prettier-plugin-tailwindcss": "^0.5.13",
"svelte": "^4.2.12",
"svelte-check": "^3.6.9",
"tailwindcss": "^3.4.3",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"undici": "^5.27.2",
"unocss": "^0.57.3",
"vite": "^4.5.0",
"typescript": "^5.4.4",
"undici": "^6.12.0",
"unocss": "^0.59.0",
"vite": "^5.2.8",
"zod": "^3.22.4"
}
}
}
23 changes: 5 additions & 18 deletions web/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
import apaterNetlify from '@sveltejs/adapter-netlify';
import adapaterNode from '@sveltejs/adapter-node';
import adapterVercel from '@sveltejs/adapter-vercel';
import { vitePreprocess } from '@sveltejs/kit/vite';
import { readFileSync } from 'fs';
import { fileURLToPath } from 'url';

const file = fileURLToPath(new URL('package.json', import.meta.url));
const json = readFileSync(file, 'utf8');
const pkg = JSON.parse(json);
import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [vitePreprocess({})],
preprocess: vitePreprocess(),

kit: {
version: {
name: pkg.version
},
adapter: process.env.VERCEL_ENV ? adapterVercel() : process.env.NETLIFY ? apaterNetlify() : adapaterNode(),
csrf: {
checkOrigin: false
}
adapter: adapter()
}
};

Expand Down
11 changes: 10 additions & 1 deletion web/uno.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
import { defineConfig } from 'unocss';
import presetIcons from 'unocss/preset-icons';
import presetUno from 'unocss/preset-uno';
import presetWebFonts from 'unocss/preset-web-fonts';

export default defineConfig({
content: {
pipeline: {
exclude: ['node_modules', '.git', '.vscode', 'build']
include: [/\.svelte|js|ts|html|css/]
}
},
presets: [
presetUno(),
presetIcons({
prefix: 'i-',
extraProperties: {
display: 'inline-block',
'vertical-align': 'middle'
}
}),
presetWebFonts({
provider: 'bunny',
fonts: {
roboto: 'Roboto'
}
})
]
});
4 changes: 2 additions & 2 deletions web/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import UnoCSS from 'unocss/vite';
import { defineConfig } from 'vite';

export default defineConfig({
plugins: [UnoCSS(), sveltekit()]
plugins: [sveltekit(), UnoCSS()]
});

0 comments on commit 79fe9e8

Please sign in to comment.