Tagged articles
Lerna
16 articles · Page 1 of 1
This article explains what a monorepo is, traces its evolution from single‑repo monoliths to multi‑repo and back to a single repository with many modules, compares its advantages and disadvantages, lists common pitfalls, and evaluates major tooling options such as Turborepo, Rush, Nx, Lerna, Yarn and pnpm for different project sizes.
LernaNxTurborepo
0 likes · 21 min read


政采云技术Mar 15, 2022 · Frontend Development
This article provides a comprehensive analysis of Lerna, a popular tool for managing multi-package JavaScript repositories, by dissecting its CLI initialization process, command execution architecture, and core source code modules to help developers understand monorepo workflows and optimize frontend engineering practices.
CLI architectureJavaScript ToolingLerna
0 likes · 16 min read

The article explains how adopting a monorepo—housing multiple independent front‑end packages in a single Git repository—simplifies code sharing, tooling, and documentation for Vue 3 component collections, compares it with monolith and multi‑repo approaches, outlines essential tools such as pnpm, Changesets, Turborepo, ESLint, and Vitepress, and provides step‑by‑step setup guidance, concluding that monorepos are effective for moderately sized front‑end projects despite potential scaling and permission challenges.
LernaTurborepoYARN
0 likes · 27 min read

The Xianyu front‑end component library was designed as a Lerna‑based multi‑package system that unifies UI specifications, provides reusable atomic to industry‑specific components, employs CSS modules and strict linting, and uses Storybook for documentation, ultimately boosting development efficiency, quality, and cross‑team consistency across the product’s many business lines.
LernaStorybookTypeScript
0 likes · 11 min read

This article explains how the Lerna publish command works, detailing the different publishing scenarios, the internal initialization steps such as configureProperties and initialize, and the final execution phase that validates npm access, updates dependencies, packs packages, and publishes them to the npm registry.
Lernanpmpackage-management
0 likes · 26 min read

This tutorial walks through creating a production‑ready React Native UI component library named vant‑react‑native, covering monorepo setup with Lerna, package naming, Yarn workspaces, commit and code standards, icon generation, on‑demand loading, debugging, documentation with Dumi, CI/CD deployment, and unit testing.
BabelLernaReact Native
0 likes · 24 min read


ByteFEJul 14, 2021 · Mobile Development
This comprehensive tutorial walks through creating a React Native component library using Lerna monorepo, Yarn workspaces, code standards, automated builds, unit testing, documentation with Dumi, and on-demand loading techniques, providing practical guidance for developers to manage, test, and publish reusable UI components.
LernaOn-Demand LoadingReact Native
0 likes · 29 min read

This article explains the monorepo strategy, its advantages and drawbacks, and provides step‑by‑step guidance on setting up a project‑level monorepo using tools like Volta, Yarn workspaces, Lerna, scripty, and commitlint, helping developers streamline code reuse, dependency management, and version synchronization across multiple JavaScript packages.
LernaWorkspacesYARN
0 likes · 27 min read

This article explains how to build a three‑package monorepo using Lerna and TypeScript that automates versioned CDN uploads, FTP resource publishing, and HTML link replacement for legacy front‑end projects, providing step‑by‑step guidance and reusable CLI commands.
FTPLernaTypeScript
0 likes · 14 min read

This article examines the Element‑Plus Vue3 component library, detailing its TypeScript refactor, Composition API usage, Teleport implementation, global‑instance API changes, internationalization support, and the multi‑tool build pipeline involving Rollup, Webpack, and Gulp.
Element PlusLernaRollup
0 likes · 18 min read


Aotu LabAug 25, 2020 · Backend Development
This tutorial walks you through creating a modular, plugin‑based CLI scaffold for a Valentine’s Day project, covering monorepo setup with Lerna, core CLI package creation, plugin registration, command handling, inter‑plugin communication with tapable, and deployment considerations.
LernaNode.jsPlugin Architecture
0 likes · 17 min read

By migrating the “全民 K 歌” base library to a monorepo using Lerna, Yarn workspaces, and TypeScript, the team unified dependency management, enabled topological builds, enforced master‑only versioning with conventional commits, and automated CI‑driven publishing—including beta canary releases—significantly speeding iteration and improving maintenance.
LernaTypeScriptYarn Workspaces
0 likes · 15 min read

This article explains how to structure a Vue component library using a mono‑repo approach, set up the project with @vue/cli, manage component creation, demo examples, build and publish scripts, enforce code formatting with ESLint, and handle versioning and changelogs with Lerna.
Lernabuild-scriptscli
0 likes · 13 min read

This article explains the challenges of collaborating on multiple tightly coupled JavaScript packages, compares multirepo, monorepo and submodule strategies, introduces Lerna as a monorepo tool, and provides detailed guidance on its configuration, modes, and command‑line usage for efficient package management.
Lernafrontendmonorepo
0 likes · 8 min read

Using Lerna, the article shows how to convert a multi‑package JavaScript project into a production‑ready monorepo by initializing Lerna, hoisting dependencies, automating versioning and publishing, integrating commit‑linting, code‑style tools, Babel builds, and VSCode debugging for streamlined development.
CIGitLerna
0 likes · 19 min read

This guide explains how to set up Mocha for TypeScript unit testing, configure NYC for coverage reporting, and integrate both tools within a Lerna monorepo to maintain high branch coverage across multiple packages.
LernaTypeScriptcode coverage
0 likes · 5 min read
