Refactor project for typescript support
Update and move tsconfig.json from client/ to the root folder.
Update docker-compose.yml and .dockerignore.
Update client/webpack.config.js for better typescript support.
Change-Id: I3b0cc88f7c828dc5bfa5ac129352bf3d40189af3
diff --git a/docker-compose.yml b/docker-compose.yml
index 3a896aa..965f2a9 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -5,8 +5,15 @@
image: jami-web
build: .
volumes:
- - ./client:/web-client/client # Add bind mount to hot-reload client
- - /web-client/client/node_modules/ # Ignore node_modules from bind mount
+ # Add bind mounts for hot-reload
+ - ./client:/web-client/client
+ - ./routes:/web-client/routes
+ - ./model:/web-client/model
+ # Ignore folders from the bind mounts
+ - /web-client/client/node_modules/
+ - /web-client/node_modules/
+ - /web-client/dist/
+ - /web-client/client/dist
ports:
- "3000:3000"
stdin_open: true