What is SemVer in NPM?
The Node Package Manager (npm) ecosystem uses Semantic Versioning, or SemVer, as the standard for version numbers. By default, when installing an npm package without specifying a version, npm installs the latest version published to the NPM registry.
What is lerna monorepo?
Lerna is a monorepo manager for JavaScript projects. It helps you take a large codebase and split it into independently deployable packages. Lerna handles every step in the release process — from downloading dependencies, and linking packages together, to testing and publishing updated packages to the NPM registry.
Should you use a monorepo?
You should choose a monorepo because the default behavior it encourages in your teams is visibility and shared responsibility, especially as teams scale. You will have to invest in tooling no matter what, but it’s always better when the default behavior is the behavior you want to see in your teams.
How do you read a Semver?
A semver-compatibile version is built from three numbers separated by periods ( . ). The three numbers are referred to as major, minor and patch, and specified in that order….Semver Construction
- Version 0.3. 10 is ordered before 0.10.
- Version 0.1. 1 is ordered before 1.0.
- Version 1.100. 100 is ordered before 10.10.
Does lerna run in parallel?
“test”: “lerna run test –parallel”, The run command runs the command in each package that contains the script. Thus, Lerna will run the test script in both, the typescript-package and the react-package. We will add several more scripts to execute processes across all our packages.
What is lerna good for?
Lerna is used mostly in bigger projects which can become hard to maintain over time. It allows modularizing the code into smaller manageable repositories and abstracting out shareable code which can be used across these sub repos.