Skip to content

alirezabonab/ts-lerna-yarn-workspaces

Repository files navigation

  • setup yarn workspaces
  • setup lerna
  • setup local development environment
    • Dev Environment
      • service to build libs with hot realoading
      • start dev env
      • stop dev env
      • watch logs
      • add knonw_hosts
      • setup root level eslint
      • add a react app and vue app to test the typescript bindings
      • add restart policy to apps when libs recompiles
      • add https supprt
  • setup CI/CD
    • publish npm packages
    • create docker images
    • publish docker images

Advanced Stuff

  • add package by running a command
  • add app by running a command

What I have done:
The file tree is good, every project lives under code folder either in apps or libs.
libs contains the shared code.
There is only one Dockerfile for all projects and through BUILD_CONTEXT argument it identifies the app to install
The docker-compose file holds all apps and mounts the libs and target app folder into the docker container in order to have hot reloading

What I should do:

  • add a new service that builds libs in watch mode