Delete old server and improve project configuration
Changes:
- Delete old server files from project root
- /app.ts
- /jamiDaemon.ts
- /routes/
- /rollup.config.js
- /jamiServerConfig.json
- /*.env
- Remake tsconfig.json for client, common, and server
- Delete root /tsconfig.json
- Make subproject tsconfig.json files standalone
- Improve consistency between tsconfig.json files
- Move Cypress and Sentry tests to client/
- Update README.md, Dockerfile and .dockerignore
- Remove extra symlink
- Remove mentions and links to old server (e.g. ports)
- Remove boilerplate project in test/, which has nothing to do with tests
- Update package.json to remove scripts for old server
- Update .gitignores to be consistent with their folder contents
GitLab: #109
Change-Id: Ie575113288c973115c3236e030b02d1a54e3510c
diff --git a/client/tsconfig.json b/client/tsconfig.json
index 3a83682..c37e9c4 100644
--- a/client/tsconfig.json
+++ b/client/tsconfig.json
@@ -1,14 +1,21 @@
{
- "extends": "../tsconfig",
"compilerOptions": {
- /* Specify what JSX code is generated. */
- "jsx": "react-jsx",
- /* Specify a set of bundled library declaration files that describe the target runtime environment. */
+ "target": "esnext",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
- /* Specify an output folder for all emitted files. */
- "outDir": "dist",
- /* Specify type package names to be included without being referenced in a source file. */
- "types": ["@testing-library/jest-dom", "@types/jest", "node", "vite/client", "vite-plugin-svgr/client"]
+ "jsx": "react-jsx",
+ "useDefineForClassFields": true,
+ "module": "esnext",
+ "moduleResolution": "node",
+ "types": ["@testing-library/jest-dom", "@types/jest", "node", "vite/client", "vite-plugin-svgr/client"],
+ "resolveJsonModule": true,
+ "allowJs": true, // TODO: Set this to false
+ "noEmit": true,
+ "isolatedModules": true,
+ "allowSyntheticDefaultImports": true,
+ "esModuleInterop": false,
+ "forceConsistentCasingInFileNames": true,
+ "strict": true,
+ "skipLibCheck": true
},
"include": ["src"]
}