Skip to content

Commit

Permalink
Switching to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
VladToby committed Jul 16, 2024
1 parent 57ebfdf commit c36ba65
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"type": "module",
"scripts": {
"dev": "vite --port 3000",
"build": "vite build",
"prebuild": "tsc --noEmit",
"build": "npm run prebuild && vite build",
"preview": "vite preview",
"start": "vite build && vite preview --port 3000"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Web Messenger</title>
</head>
<body>
<script type="module" src="./main.js"></script>
<script type="module" src="./main.ts"></script>
<main>
<div id="app"></div>
</main>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noImplicitAny": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"sourceMap": true,
"strictNullChecks": false,
"noImplicitReturns": true,
"skipLibCheck": true,
},
"include": ["src"]
}
File renamed without changes.

0 comments on commit c36ba65

Please sign in to comment.