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/server/.gitignore b/server/.gitignore
index bb6d966..e6223dc 100644
--- a/server/.gitignore
+++ b/server/.gitignore
@@ -1,2 +1,6 @@
-accounts.json
-admin.json
+.env*
+
+jamid.node
+
+/accounts.json
+/admin.json
diff --git a/server/package.json b/server/package.json
index d4ac1be..5ad16ee 100644
--- a/server/package.json
+++ b/server/package.json
@@ -1,5 +1,6 @@
{
"name": "jami-web-server",
+ "version": "1.0.0",
"type": "module",
"scripts": {
"start": "nodemon --watch src src/index.ts",
@@ -13,16 +14,6 @@
"prepare": "npm run genkeys",
"genkeys": "sh scripts/genkeys.sh"
},
- "devDependencies": {
- "@types/express": "^4.17.14",
- "@types/node": "^18.8.3",
- "@types/whatwg-url": "^11.0.0",
- "@types/ws": "^8.5.3",
- "dotenv-cli": "^6.0.0",
- "nodemon": "^2.0.20",
- "ts-node": "^10.9.1",
- "typescript": "^4.8.4"
- },
"dependencies": {
"argon2": "^0.29.1",
"cors": "^2.8.5",
@@ -37,5 +28,16 @@
"typedi": "^0.10.0",
"whatwg-url": "^11.0.0",
"ws": "^8.9.0"
+ },
+ "devDependencies": {
+ "@types/cors": "^2.8.12",
+ "@types/express": "^4.17.14",
+ "@types/node": "^18.8.3",
+ "@types/whatwg-url": "^11.0.0",
+ "@types/ws": "^8.5.3",
+ "dotenv-cli": "^6.0.0",
+ "nodemon": "^2.0.20",
+ "ts-node": "^10.9.1",
+ "typescript": "^4.8.4"
}
}
diff --git a/server/tsconfig.json b/server/tsconfig.json
index b33bf20..78688d1 100644
--- a/server/tsconfig.json
+++ b/server/tsconfig.json
@@ -11,9 +11,8 @@
"isolatedModules": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
- "skipLibCheck": true,
"strict": true,
- "noImplicitAny": true
+ "skipLibCheck": true
},
"ts-node": {
"esm": true