You've already forked Atomcms-edit
Migrate JavaScript to TypeScript with full type safety
- Rename all .js/.jsx files to .ts/.tsx across resources/js and theme dirs - Add TypeScript 6.0 with strict mode, tsconfig.json - Add type definitions for Inertia page props, Alpine.js, Turbolinks - Update vite.config.js entries to .ts/.tsx extensions - Update all Blade @vite() calls to match new .ts/.tsx entry points - Add TypeScript ESLint config (replacing unused Vue plugin) - Add @types/react, @types/react-dom, @types/lodash - Add typecheck script and integrate into check pipeline - Full tsc --noEmit, ESLint, and production build pass cleanly
This commit is contained in:
@@ -12,10 +12,10 @@ export default defineConfig({
|
||||
laravel({
|
||||
input: [
|
||||
path.resolve(__dirname, "css/app.css"),
|
||||
path.resolve(__dirname, "js/app.js"),
|
||||
"resources/js/global.js",
|
||||
path.resolve(__dirname, "js/app.ts"),
|
||||
"resources/js/global.ts",
|
||||
"resources/css/global.css",
|
||||
"resources/js/ssr.jsx",
|
||||
"resources/js/ssr.tsx",
|
||||
],
|
||||
}),
|
||||
|
||||
@@ -33,7 +33,7 @@ export default defineConfig({
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "js/app.js"),
|
||||
"@": path.resolve(__dirname, "js/app.ts"),
|
||||
},
|
||||
},
|
||||
css: {
|
||||
|
||||
Reference in New Issue
Block a user