
- Added index.html as the main entry point for the application. - Created package.json with dependencies for Preact, Halfmoon, and TypeScript. - Included favicon.svg for the application icon. - Added robots.txt for search engine directives. - Created app.css for styling the application. - Implemented app.tsx as the main application component with Navbar and Container. - Developed container component to display a greeting and search form. - Added weather description JSON data for dynamic weather updates. - Built navbar component to fetch and display current weather information. - Set up index.css for global styles. - Configured main.tsx to render the application. - Added TypeScript environment definitions. - Established TypeScript configuration files for app and node. - Configured Vite with Preact preset and PostCSS for production optimizations.
31 lines
823 B
JSON
31 lines
823 B
JSON
{
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"target": "ES2020",
|
|
"useDefineForClassFields": true,
|
|
"module": "ESNext",
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
"skipLibCheck": true,
|
|
"paths": {
|
|
"react": ["./node_modules/preact/compat/"],
|
|
"react-dom": ["./node_modules/preact/compat/"]
|
|
},
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"isolatedModules": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
"jsxImportSource": "preact",
|
|
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedSideEffectImports": true
|
|
},
|
|
"include": ["src"]
|
|
}
|