Add vite lucide preprocessor

This commit is contained in:
2025-08-30 13:10:22 +02:00
parent 036a61aac8
commit b5804bc9e0
3 changed files with 10 additions and 4 deletions

View File

@ -30,6 +30,7 @@
"tauri-plugin-duck-api": "^0.1.1", "tauri-plugin-duck-api": "^0.1.1",
"tauri-plugin-keep-screen-on-api": "^0.1.4", "tauri-plugin-keep-screen-on-api": "^0.1.4",
"typescript-eslint": "^8.34.1", "typescript-eslint": "^8.34.1",
"vite-plugin-lucide-preprocess": "^1.4.3",
}, },
"devDependencies": { "devDependencies": {
"@inlang/cli": "^3.0.0", "@inlang/cli": "^3.0.0",
@ -1048,6 +1049,8 @@
"vite": ["vite@6.3.5", "", { "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", "picomatch": "^4.0.2", "postcss": "^8.5.3", "rollup": "^4.34.9", "tinyglobby": "^0.2.13" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ=="], "vite": ["vite@6.3.5", "", { "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", "picomatch": "^4.0.2", "postcss": "^8.5.3", "rollup": "^4.34.9", "tinyglobby": "^0.2.13" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ=="],
"vite-plugin-lucide-preprocess": ["vite-plugin-lucide-preprocess@1.4.3", "", { "peerDependencies": { "vite": ">=5" } }, "sha512-4GnQbiN4Jj5a8zlyGAxWxdditAO5QGAmap0BRlzNPu0sky4nR/LCRpYRWwalBVWq8VF1a0GhbTuxtO86+ypYQg=="],
"vitefu": ["vitefu@1.0.6", "", { "peerDependencies": { "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" }, "optionalPeers": ["vite"] }, "sha512-+Rex1GlappUyNN6UfwbVZne/9cYC4+R2XDk9xkNXBKMw6HQagdX9PgZ8V2v1WUSK1wfBLp7qbI1+XSNIlB1xmA=="], "vitefu": ["vitefu@1.0.6", "", { "peerDependencies": { "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" }, "optionalPeers": ["vite"] }, "sha512-+Rex1GlappUyNN6UfwbVZne/9cYC4+R2XDk9xkNXBKMw6HQagdX9PgZ8V2v1WUSK1wfBLp7qbI1+XSNIlB1xmA=="],
"vt-pbf": ["vt-pbf@3.1.3", "", { "dependencies": { "@mapbox/point-geometry": "0.1.0", "@mapbox/vector-tile": "^1.3.1", "pbf": "^3.2.1" } }, "sha512-2LzDFzt0mZKZ9IpVF2r69G9bXaP2Q2sArJCmcCgvfTdCCZzSyz4aCLoQyUilu37Ll56tCblIZrXFIjNUpGIlmA=="], "vt-pbf": ["vt-pbf@3.1.3", "", { "dependencies": { "@mapbox/point-geometry": "0.1.0", "@mapbox/vector-tile": "^1.3.1", "pbf": "^3.2.1" } }, "sha512-2LzDFzt0mZKZ9IpVF2r69G9bXaP2Q2sArJCmcCgvfTdCCZzSyz4aCLoQyUilu37Ll56tCblIZrXFIjNUpGIlmA=="],

View File

@ -2,6 +2,8 @@
"name": "librenav", "name": "librenav",
"version": "0.0.0", "version": "0.0.0",
"devDependencies": { "devDependencies": {
"@inlang/cli": "^3.0.0",
"@inlang/paraglide-js": "2.2.0",
"@internationalized/date": "^3.8.1", "@internationalized/date": "^3.8.1",
"@lucide/svelte": "^0.515.0", "@lucide/svelte": "^0.515.0",
"@sveltejs/vite-plugin-svelte": "^5.0.3", "@sveltejs/vite-plugin-svelte": "^5.0.3",
@ -25,9 +27,7 @@
"tw-animate-css": "^1.3.2", "tw-animate-css": "^1.3.2",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vaul-svelte": "^1.0.0-next.7", "vaul-svelte": "^1.0.0-next.7",
"vite": "^6.3.5", "vite": "^6.3.5"
"@inlang/paraglide-js": "2.2.0",
"@inlang/cli": "^3.0.0"
}, },
"private": true, "private": true,
"scripts": { "scripts": {
@ -65,6 +65,7 @@
"svelte-maplibre-gl": "^0.1.8", "svelte-maplibre-gl": "^0.1.8",
"tauri-plugin-duck-api": "^0.1.1", "tauri-plugin-duck-api": "^0.1.1",
"tauri-plugin-keep-screen-on-api": "^0.1.4", "tauri-plugin-keep-screen-on-api": "^0.1.4",
"typescript-eslint": "^8.34.1" "typescript-eslint": "^8.34.1",
"vite-plugin-lucide-preprocess": "^1.4.3"
} }
} }

View File

@ -3,11 +3,13 @@ import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte"; import { svelte } from "@sveltejs/vite-plugin-svelte";
import path from "path"; import path from "path";
import lucidePreprocess from "vite-plugin-lucide-preprocess";
const host = process.env.TAURI_DEV_HOST; const host = process.env.TAURI_DEV_HOST;
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
lucidePreprocess(),
paraglideVitePlugin({ paraglideVitePlugin({
project: "./project.inlang", project: "./project.inlang",
outdir: "./src/paraglide", outdir: "./src/paraglide",