Cut Development Time 40% by Reusing H5 Pages with a Monorepo

This article explains how reusing H5 marketing activity pages with a monorepo workspace can accelerate development by up to 40%, outlines five technical solutions, shows workspace structure and package configuration, and discusses central repository management and its suitability for similar projects.

JD Cloud Developers
JD Cloud Developers
JD Cloud Developers
Cut Development Time 40% by Reusing H5 Pages with a Monorepo

Background

Reusing existing H5 marketing activity page capabilities allows rapid construction and launch, accumulating generic methods. Subsequent development can improve efficiency by about 40%.

Technical Implementation

Five Technical Solutions

(Details omitted.)

Pros and cons of each solution are briefly mentioned.

Workspace Centralized Management

The first three approaches are not described.

Project structure illustrations:

Workspace Configuration

packages:
  # Dependencies used by floor components
  - "packages/*"
  # Floor components
  - "floors/*"
  - "floors-fem/*"
  # Floor applications
  - "apps/*"
  # Exclude packages inside test directories
  - "!**/test"

Module References

"dependencies": {
  "@babor/apis": "workspace:*",
  "@babor/components": "workspace:*",
  "@babor/consts": "workspace:*",
  "@babor/hooks": "workspace:*",
  "@babor/utils": "workspace:*",
  "@jmfe/ifloor-scripts": "2.2.4",
  "@jmfe/jmfe-customcode-api": "^2.1.0",
  "react": "16.10.1",
  "react-dom": "16.10.1",
  "react-scripts": "^4.0.3"
},

Reference

Monorepo management for iHub floors (Tongtian Tower).

Central Repository Management

Brief introduction:

Based on workspace upgrade.

Independent main repository with centralized configuration files.

Independent sub‑repositories sharing common resources.

Independent sub‑repositories managing modules.

Upgrade Iteration

Project iteration and upgrades are straightforward using Git repositories and branch management.

Conclusion

The approach suits similar project management scenarios such as floor development, backend systems, and standardization. Each method has its own applicable scenarios, and a central repository may not always be the optimal choice.

QR code
QR code
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

frontendSoftware ArchitectureDevelopmentMonorepoH5Workspace
JD Cloud Developers
Written by

JD Cloud Developers

JD Cloud Developers (Developer of JD Technology) is a JD Technology Group platform offering technical sharing and communication for AI, cloud computing, IoT and related developers. It publishes JD product technical information, industry content, and tech event news. Embrace technology and partner with developers to envision the future.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.