mirror of
https://github.com/tiennm99/thptqg.git
synced 2026-08-14 07:20:59 +00:00
Every .ts becomes .js, every lang="ts" becomes lang-less, and the type declarations go with them: types.ts held nothing but types, so it is deleted outright. Tooling follows. typescript, svelte-check, typescript-eslint and @types/sql.js are uninstalled; tsconfig.json becomes jsconfig.json, which still extends the generated SvelteKit config so $lib and $app resolve in an editor; `npm run lint` is now ESLint alone, and CI's comment about it covering the type check goes too. What this gives up, stated plainly: a mistyped column name like row.nguvan used to fail the build and now renders blank, and the datasets.json-to-CONTENT cross-check is back to throwing at module load rather than at compile time. The runtime guard for the latter is still there and still throws loudly. Two mechanical notes. The svelte/no-navigation-without-resolve rule started flagging the footer's source link, which points at an off-site article — without type information the rule can no longer tell an external URL from a route, so that one line carries a disable comment. And Vitest's include pattern had to follow the tests to .js. Lint, 25 tests and the build all pass.
32 lines
784 B
JSON
32 lines
784 B
JSON
{
|
|
"name": "thptqg-web",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"description": "Frontend — one SvelteKit app serving every dataset and the hub",
|
|
"scripts": {
|
|
"dev": "vite dev",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"lint": "eslint ."
|
|
},
|
|
"dependencies": {
|
|
"sql.js-httpvfs": "^0.8.12"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.4",
|
|
"@sveltejs/adapter-static": "^3.0.10",
|
|
"@sveltejs/kit": "^2.70.2",
|
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
"@tailwindcss/vite": "^4.3.3",
|
|
"eslint": "^9.39.4",
|
|
"eslint-plugin-svelte": "^3.14.0",
|
|
"globals": "^17.4.0",
|
|
"svelte": "^5.56.9",
|
|
"tailwindcss": "^4.3.3",
|
|
"vite": "^7.1.14",
|
|
"vitest": "^4.1.10"
|
|
}
|
|
}
|