Add `common` subproject containing shared files
Move classes in `model` to their own `common` package.
Now, the client and server can import `common` as a library.
This is the first step to eventually migrate all the source code at the root of the
project to an `old-server` package.
GitLab: #55
Change-Id: I4b7a52e80171d9c3399416ab524bcdd6915ac540
diff --git a/common/package.json b/common/package.json
new file mode 100644
index 0000000..78e2bb3
--- /dev/null
+++ b/common/package.json
@@ -0,0 +1,25 @@
+{
+ "name": "jami-web-common",
+ "version": "1.0.0",
+ "license": "ISC",
+ "type": "module",
+ "main": "dist/index.js",
+ "module": "dist/index.js",
+ "types": "dist/index.d.ts",
+ "files": [
+ "dist/index.js"
+ ],
+ "scripts": {
+ "build": "tsc --build",
+ "clean": "rm -rf dist tsconfig.tsbuildinfo",
+ "lint": "eslint src",
+ "lint:fix": "npm run lint -- --fix",
+ "format": "prettier --write src",
+ "format:check": "prettier --check src"
+ },
+ "dependencies": {
+ "@types/express-session": "^1.17.5",
+ "@types/socket.io": "^3.0.2",
+ "typescript": "^4.8.4"
+ }
+}