Eros0104 / react-monorepo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⛓️ Monorepo project

This project is an example of a React Monorepo, using npm workspaces.

💻 Getting started

First, you will need to install the following tools:

Clone the project:

  git clone https://github.com/Eros0104/react-monorepo.git
  cd react-monorepo

Install the dependencies:

npm install

Build the core project:

npm run build @mono/core

Choose a project to start:

# The same command is used to run any project
npm start <project-name>

# Starting the home app:
npm start @mono/home

Useful commands

Building an app:

# The same command is used to build any project
npm run build <project-name>

# Building the home app:
npm run build @mono/home

Installing new packages to a project:

# Installing the package
npm install <package-name> -w <project-name>

# Example:
npm install react -w @mono/home

Watching an app:

# The same command is used to run any project
npm run watch <project-name>

# Watching the home app:
npm run watch @mono/home

Building all apps:

npm run build-all

🧪 Tech stack

About


Languages

Language:TypeScript 33.7%Language:HTML 33.6%Language:JavaScript 30.2%Language:SCSS 2.5%