Giter Site home page Giter Site logo

monorepo's Introduction

Michael's Monorepo

Table Of Contents

Development environment

Debugging

  1. If you see this error when you try to use the ./run.sh script bash: ./run.sh: Permission denied, enter chmod +x ./run.sh which will give the run.sh file execution permissions.

First time installation

  • run ./run.sh init
  • The development environment should be ready now!

Running development environment

  1. Docker

Starting docker environment

  • run ./run.sh docker start

Stopping docker environment

  • run ./run.sh docker stop

Start watching typescript packages in /packages/**

  • run ./run.sh packages watch

Testing CI builds locally (Checks for linting and ts errors)

  • run ./run.sh docker prod

Updating development environment

Updating docker images (which you want to do when there has been changes to Dockerfile.dev files)

  • run ./run.sh docker build

Install dependencies (which you want to do every time you change a branch to ensure that you have all necessary dependencies installed)

  • run ./run.sh dependency install

Adding new dependency or multiple dependencies to a workspace

  • run ./run.sh dependency add <WORKSPACE_NAME> <...DEPENDENCIES>
  • Example ./run.sh dependency add @monorepo-ui/components react react-dom

Removing dependency or multiple dependencies from a workspace

  • run ./run.sh dependency remove <WORKSPACE_NAME> <...DEPENDENCIES>
  • Example ./run.sh dependency remove @monorepo-ui/components react react-dom

Debugging development envionment

  1. Docker containers

VSCode

  • Go to the docker extension in VSCode
  • Right click "monorepo-stack" in the containers section, and click "Compose logs"

Docker Dashboard

  • Open Docker Dashboard
  • Click monorepo-stack and click on the container you want to see the logs
  1. Node packages

Look in the console when running ./run.sh packages build or ./run.sh packages watch

monorepo's People

Contributors

devdyhrberg avatar turbobot-temp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.