The invention discloses an integration method and
system based on a Monorepo architecture, and relates to the technical field of front-end development. Based on a Monorepo architecture, the method comprises the following steps: step 1: according to a naming specification and a
directory hierarchy, defining a boundary and a relationship of each sub-project, optimizing a single warehouse
directory structure, and performing
centralized management on all the sub-projects of a front-end project and a public
library, step 2: creating an automatic script through a script tool in combination with project characteristics and requirements, according to the method,
automatic processing of the whole process of code pulling, dependency analysis, construction packaging and deployment online is carried out through an automatic script, automatic script packaging is carried out through a version
control system Git, an automatic version updating and synchronization mechanism is designed, it is ensured that each sub-project uses a correct
branch and version, and change detailed information is recorded; 3, deployment of the front-end project is controlled through a visual construction engine, various functions of
project management are integrated, the various functions of
project management comprise
version management, dependency analysis, construction configuration, deployment monitoring and dragging and clicking operation, and the current state, the dependency relationship and the change history of each sub-project are visually displayed.