-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure TypeScript project references
Improvements: - The common/ project is automatically built by dependent projects - Building common/ in in the "prepare" script is thus no longer necessary - Vite and server hot-reloading now work if files in common/ change - Recompiling common after every change is done automatically - Using "go to definition" now jumps to the .ts file rather than the .d.ts Changes: - Use TypeScript project references to refer to common/ from client/ and server/ - Set "composite" and "declarationMap" options in common/tsconfig.json - See https://www.typescriptlang.org/docs/handbook/project-references.html - Use tsc --build in order to build references automatically - Replace nodemon and ts-node with ts-watch in server in order to use the new tsc --build mode - See TypeStrong/ts-node#897 (comment) - Remove now unneeded SIGUSR2 signal handler which was for nodemon - Use tsc-watch before Vite in client in order for hot-reloading to work if common/ changes - Update TypeScript version - Add vite.config.node.json to be consistent with expected Vite project defaults GitLab: #151 Change-Id: Id2f84fe45e44c4d8b4e6d3b324e1aee322c52df6
- Loading branch information
Showing
11 changed files
with
921 additions
and
882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"composite": true, | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"skipLibCheck": true | ||
}, | ||
"include": ["vite.config.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.