setup commit

This commit is contained in:
Elgius 2023-04-05 11:17:43 +05:00
parent d5a430a522
commit ecfe4ae4ab
8 changed files with 1292 additions and 96 deletions

1341
myapp/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -15,14 +15,20 @@
"@playwright/test": "^1.28.1",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.5.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte3": "^4.0.0",
"postcss": "^8.4.21",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.8.1",
"svelte": "^3.54.0",
"tailwindcss": "^3.3.1",
"vite": "^4.2.0",
"vitest": "^0.25.3"
},
"type": "module"
"type": "module",
"dependencies": {
"daisyui": "^2.51.5"
}
}

6
myapp/postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

3
myapp/src/app.css Normal file
View File

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@ -0,0 +1,5 @@
<script>
import "../app.css";
</script>
<slot />

View File

@ -1,2 +1,10 @@
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
<h1 class= 'text-3xl font-bold underline text-center'>
hello world
</h1>
<style lang='postcss'>
:global(html){
background-color: theme('colors.gray.100');
}
</style>

View File

@ -1,4 +1,5 @@
import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
@ -7,7 +8,8 @@ const config = {
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
}
},
preprocess: vitePreprocess()
};
export default config;

9
myapp/tailwind.config.js Normal file
View File

@ -0,0 +1,9 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {},
},
plugins: [require('daisyui')],
}