Notes of Nafi
  • Hello! 🖐
  • Cloud
    • AWS
    • GCP
    • Ansible
      • Desktop configuration
  • Web Dev
    • husky
    • Web Cache/HTTP Caching Headers
    • package manger
    • Webhook
    • ESLint
    • Back End
      • node.js
    • Front End
      • React
        • Lint
        • Next.js
      • Angular
      • Flutter
        • cubit
        • flutter
        • provider
      • Tailwind CSS
      • CSS
    • Lerna
    • nginx
  • Software Architecture
  • Startup
    • Legal Issues
  • Linux
    • Misc problems & solutions
    • CTF Tools
    • Network Tools
    • systemctl
    • terminal
      • dotfiles
      • tmux
      • zsh
      • command line tools
    • Git
      • merging strategy
      • git workflows
      • basics
  • Programming Language
    • JavaScript
      • misc
      • draft
    • C++
  • Google Docs
    • Spreadsheet
  • Design
  • Windows
    • Terminal
  • Similar websites
Powered by GitBook
On this page
  1. Web Dev

Lerna

Create monoreopo

npx lerna init

Create package in monorepo

lerna crate first-package-name

to user yarn workspace

in package.json

"workspaces": ["packages/*"]

in lerna.json

"npmClient": "yarn",

"useWorkspaces": true

install dependencies in packages

lerna add --dev jest

lerna add --dev jest --scope package-name

execute command in all packages

lerna exec --npx jest

lerna run test - to run script from package.json

lerna bootstrap all packages in the repository

PreviousCSSNextnginx

Last updated 2 years ago