Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

alecorsino/mono

Repository files navigation

Front end Root Monorepo

You will need lerna to be installed globally in your local environment
npm install -g lerna

Alternativley you can just run without installing it but you have to prefix ALWAYS with npx your commands:
npx lerna bootstrap

Initializing your dev Environment


Installing all dependecies in all the modules including symlinkend local modules: Read Lerna bootsrap

lerna bootstrap 

Remove the node_modules directory from all projects: Read Lerna clean

lerna clean

Running script in all projects:

Run an npm script in each package that contains that script Read Lerna run

lerna run <script> -- [..args]

i.e :> lerna run test

Tools

Lerna

Monorepo Manager

https://github.com/lerna/lerna

Lerna Update

Add/Update dependencies to some or all projects

https://www.npmjs.com/package/lerna-update-wizard

Hoisitng npm packages

Lerna hoist package to root level so it can be installed once and shared across multiple project.
We might found sometimes issues with certain packages.

To solve the above add uinder ROOT package.json "nohoist" section i.e. "nohoist": ["**/rxjs"]

QA


Pre commit hooks with Husky
Pre commit Code formatting and linting with lint-staged

Linters

  • tslint
  • Prettier

Project Organization

TypeScript: Project references

Read official page

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published