mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-30 21:54:57 +02:00
- Updated package.json to include new dependencies and modify scripts for Vite. - Added postcss.config.js for Tailwind CSS and Autoprefixer integration. - Created app.css to define Tailwind CSS styles and custom CSS variables. - Modified +layout.svelte to import app.css and check authentication on mount. - Updated +page.svelte to redirect users based on authentication status. - Added login page with form handling for user authentication. - Changed Svelte adapter to '@sveltejs/adapter-node' and added Vite preprocess. - Created tailwind.config.js for Tailwind CSS configuration. - Updated vite.config.ts to remove Tailwind CSS plugin as it's now handled in postcss.config.js.
50 lines
1.4 KiB
JSON
50 lines
1.4 KiB
JSON
{
|
|
"name": "frontend",
|
|
"private": true,
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite dev --host",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"prepare": "svelte-kit sync || echo ''",
|
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
"lint": "prettier --check . && eslint .",
|
|
"format": "prettier --write ."
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/compat": "^1.4.0",
|
|
"@eslint/js": "^9.39.1",
|
|
"@lucide/svelte": "^0.563.1",
|
|
"@sveltejs/adapter-auto": "^7.0.0",
|
|
"@sveltejs/adapter-node": "^5.5.2",
|
|
"@sveltejs/kit": "^2.49.1",
|
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"@types/node": "^24",
|
|
"autoprefixer": "^10.4.23",
|
|
"clsx": "^2.1.1",
|
|
"eslint": "^9.39.1",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-svelte": "^3.13.1",
|
|
"globals": "^16.5.0",
|
|
"postcss": "^8.5.6",
|
|
"prettier": "^3.7.4",
|
|
"prettier-plugin-svelte": "^3.4.0",
|
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
"svelte": "^5.45.6",
|
|
"svelte-check": "^4.3.4",
|
|
"tailwind-merge": "^3.4.0",
|
|
"tailwind-variants": "^3.2.2",
|
|
"tailwindcss": "^3.4.19",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.48.1",
|
|
"vite": "^7.2.6"
|
|
},
|
|
"dependencies": {
|
|
"lucide-svelte": "^0.563.0"
|
|
}
|
|
}
|