CN113535182B - Project engineering construction method and device, computer equipment and storage medium - Google Patents

Project engineering construction method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113535182B
CN113535182B CN202110739983.0A CN202110739983A CN113535182B CN 113535182 B CN113535182 B CN 113535182B CN 202110739983 A CN202110739983 A CN 202110739983A CN 113535182 B CN113535182 B CN 113535182B
Authority
CN
China
Prior art keywords
target
information
engineering
project
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110739983.0A
Other languages
Chinese (zh)
Other versions
CN113535182A (en
Inventor
于占科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Pudong Development Bank Co Ltd
Original Assignee
Shanghai Pudong Development Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Pudong Development Bank Co Ltd filed Critical Shanghai Pudong Development Bank Co Ltd
Priority to CN202110739983.0A priority Critical patent/CN113535182B/en
Publication of CN113535182A publication Critical patent/CN113535182A/en
Application granted granted Critical
Publication of CN113535182B publication Critical patent/CN113535182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Software Systems (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a project engineering construction method, a project engineering construction device, computer equipment and a storage medium. The method comprises the following steps: responding to the selection operation aiming at the project template information, and determining the project template information corresponding to the target project; determining target component information corresponding to the engineering template information according to the engineering template information; acquiring a target engineering template corresponding to the engineering template information and acquiring a target assembly corresponding to the target assembly information; and obtaining the target project according to the target project template and the target assembly. The method can improve the flexibility of project construction.

Description

Project engineering construction method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of project development technologies, and in particular, to a project engineering construction method and apparatus, a computer device, and a storage medium.
Background
In order to improve the construction efficiency of project engineering, a scaffold system is provided.
In the related technology, the project template is integrated in the scaffold system, and in the process of constructing the project, after a user creates a project name and modifies basic information of the project, the user directly copies or decompresses the project template by triggering construction project operation to write or rename the basic information, so that the construction project is relatively low in flexibility although the operation is simple.
Disclosure of Invention
In view of the above, it is necessary to provide a project construction method, a project construction apparatus, a computer device, and a storage medium, which can construct a project construction with flexibility.
A construction method of project engineering is applied to a scaffold system, and comprises the following steps:
responding to the selection operation aiming at the project template information, and determining the project template information corresponding to the target project;
determining target component information corresponding to the engineering template information according to the engineering template information;
acquiring a target engineering template corresponding to the engineering template information and acquiring a target assembly corresponding to the target assembly information;
and obtaining the target project according to the target project template and the target assembly.
In one embodiment, the determining, according to the engineering template information, target component information corresponding to the engineering template information includes:
determining optional component information according to the engineering template information;
and in response to the selection operation aiming at the optional component information, determining target component information from the optional component information.
In one embodiment, the obtaining the target engineering template corresponding to the engineering template information and obtaining the target component corresponding to the target component information include:
and loading a target engineering template corresponding to the engineering template information and a target assembly corresponding to the target assembly information from a remote program library according to the engineering template information and the target assembly information.
In one embodiment, the obtaining the target project according to the target project template and the target component includes:
compiling and adapting the target engineering template and the target assembly to obtain a compiling and adapting result;
and obtaining the target project engineering according to the compiling adaptation result.
In one embodiment, the obtaining the target project engineering according to the compiled adaptation result includes:
and under the condition that the compiling and adapting result represents that the compiling and adapting are successful, taking the compiled file obtained by the compiling and adapting processing as the target project engineering.
In one embodiment, the obtaining the target project engineering according to the compiled adaptation result includes:
under the condition that the compiling and adapting result represents that the compiling and adapting are failed, positioning information of the component to be improved according to the compiling and adapting result information;
responding to the modification operation aiming at the component information to be improved, and acquiring modified target component information;
and obtaining the target project according to the target project template and the modified target assembly information.
In one embodiment, the engineering templates include at least one of front end engineering templates, back end engineering templates, and mobile end engineering templates.
A construction device for project engineering, which is applied to a scaffold system, and comprises:
the first determination module is used for responding to selection operation aiming at the project template information and determining the project template information corresponding to the target project;
the second determining module is used for determining target component information corresponding to the engineering template information according to the engineering template information;
the acquisition module is used for acquiring a target engineering template corresponding to the engineering template information and acquiring a target assembly corresponding to the target assembly information;
and the construction module is used for obtaining the target project engineering according to the target engineering template and the target assembly.
In one embodiment, the second determining module is further configured to:
determining optional component information according to the engineering template information;
and in response to the selection operation aiming at the optional component information, determining target component information from the optional component information.
In one embodiment, the obtaining module is further configured to:
and loading a target engineering template corresponding to the engineering template information and a target assembly corresponding to the target assembly information from a remote program library according to the engineering template information and the target assembly information.
In one embodiment, the building module is further configured to:
compiling and adapting the target engineering template and the target assembly to obtain a compiling and adapting result;
and obtaining the target project engineering according to the compiling adaptation result.
In one embodiment, the building module is further configured to:
and under the condition that the compiling and adapting result represents that the compiling and adapting are successful, taking the compiling file obtained by the compiling and adapting processing as the target project engineering.
In one embodiment, the building module is further configured to:
under the condition that the compiling adaptation result represents that the compiling adaptation is failed, positioning information of the component to be improved according to the compiling adaptation result information;
responding to the modification operation aiming at the component information to be improved, and acquiring modified target component information;
and obtaining the target project according to the target project template and the modified target assembly information.
In one embodiment, the engineering templates include at least one of front end engineering templates, back end engineering templates, and mobile end engineering templates.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
responding to the selection operation aiming at the project template information, and determining the project template information corresponding to the target project;
determining target component information corresponding to the engineering template information according to the engineering template information;
acquiring a target engineering template corresponding to the engineering template information and acquiring a target assembly corresponding to the target assembly information;
and obtaining the target project according to the target project template and the target assembly.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
responding to the selection operation aiming at the project template information, and determining the project template information corresponding to the target project;
determining target component information corresponding to the engineering template information according to the engineering template information;
acquiring a target engineering template corresponding to the engineering template information and acquiring a target assembly corresponding to the target assembly information;
and obtaining the target project according to the target project template and the target assembly.
According to the project construction method, the project construction device, the computer equipment and the storage medium, the scaffold system can respond to the selection operation aiming at the project template information, determine the project template information corresponding to the target project, and determine the target assembly information corresponding to the project template information according to the project template information. And after the scaffold system acquires the target engineering template corresponding to the engineering template information and acquires the target assembly corresponding to the target assembly information, the target project engineering can be obtained according to the target engineering template and the target assembly. According to the project engineering construction method, the scaffold system can respond to the selection operation of the user on the project template information, determine the project template information required by the target project engineering from the project template information provided for the user, and then create the target project engineering according to the target project template corresponding to the selected project template information and the target assembly corresponding to the project template, namely the user can select the project template required by the target project engineering according to the requirement, so that the flexibility of creating the target project engineering can be improved, and the user experience is improved.
Drawings
FIG. 1 is a schematic flow chart diagram of a construction method of a project engineering in one embodiment;
FIG. 2 is a schematic flow chart diagram illustrating a method for building a project under one embodiment;
FIG. 3 is a schematic flow chart of step 104 in one embodiment;
FIG. 4 is a schematic flow chart diagram illustrating a method for building a project under one embodiment;
FIG. 5 is a schematic flow chart diagram illustrating a method for building a project under one embodiment;
FIG. 6 is a schematic flow chart of step 108 in one embodiment;
FIG. 7 is a flowchart illustrating a method of constructing a project under one embodiment;
FIG. 8 is a flowchart illustrating step 604, in one embodiment;
FIG. 9 is a flowchart illustrating a method for building a project engineering according to an embodiment;
FIG. 10 is a block diagram showing a construction apparatus of a project engineering in one embodiment;
FIG. 11 is a diagram of the internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
In one embodiment, as shown in fig. 1, a construction method of project engineering is provided, which is applied to a scaffold system, and the scaffold system can be constructed based on nodejs technology. Wherein the scaffolding system may be implemented by a terminal. The embodiment of the disclosure can also be applied to a system comprising a terminal and a server, and the scaffold system is realized through the interaction of the terminal and the server.
In this embodiment, the method includes the steps of: the method comprises the following steps:
and 102, responding to the selection operation aiming at the project template information, and determining the project template information corresponding to the target project.
In the embodiment of the disclosure, the engineering template information of the engineering templates of various frame types supported by the scaffold system can be provided for a user, and the selected engineering template information can be used as the engineering template information corresponding to the target project engineering in response to the selection operation of the user on the engineering template information. The project template may be used to divide a code architecture of the project, and for example, the project template may indicate a write file of various types of codes in the project, for example: indicating that the interactive code is written in file 1 and the service code is written in file 2. The engineering template information may be identification information for indicating a corresponding engineering template, such as: the engineering template information may include, without limitation, at least one of a frame type, address, name, code, etc. of the engineering template.
The selection operation for the engineering template information may include modes of writing the corresponding engineering template information in a command line, inputting the corresponding engineering template information, selecting the corresponding engineering template information through a selection control, and the like.
For example, referring to fig. 2, when a target project is created, basic information of the target project may be created, which includes but is not limited to project names, project description information, and the like, and after engineering template information adopted by the target project is selected (the engineering template information in fig. 2 is a frame type corresponding to an engineering template, which is referred to as a template type for short), the basic information of the target project and the selected engineering template information are stored in a scaffold context.
And 104, determining target component information corresponding to the engineering template information according to the engineering template information.
In the embodiment of the present disclosure, after determining the project template information corresponding to the target project, the target component information corresponding to the project template information may be determined according to the project template information, for example: the component information of the component supported by the frame type can be determined according to the frame type corresponding to the engineering template information, and the component information of the component supported by the frame type is determined as the target component information corresponding to the engineering template information. The target component information may be identification information for indicating a corresponding target component, for example: the target component information may include, without limitation, at least one of address, name, encoding, etc. information of the target component.
And 106, acquiring a target engineering template corresponding to the engineering template information and acquiring a target assembly corresponding to the target assembly information.
For example, after the engineering template information and the target component information are determined, a target engineering template corresponding to the engineering template information and a target component corresponding to the target component information may be obtained. For example: the target engineering template corresponding to the engineering template information and the target component corresponding to the target component information can be copied from a plurality of engineering templates provided by the scaffold system.
And 108, obtaining a target project according to the target project template and the target assembly.
In the embodiment of the disclosure, after the target project template and the target component corresponding to the target project are obtained, after the target component is integrated, compiling and adapting processing is performed according to the basic information of the target project, the target project template and the integrated target component, and the target project is obtained under the condition that compiling and adapting are successful.
According to the construction method of the project, the scaffold system can respond to the selection operation aiming at the project template information, determine the project template information corresponding to the target project, and determine the target assembly information corresponding to the project template information according to the project template information. And after the scaffold system acquires the target engineering template corresponding to the engineering template information and acquires the target assembly corresponding to the target assembly information, the target project engineering can be obtained according to the target engineering template and the target assembly. In the project engineering construction method provided by the application, the scaffold system can respond to the selection operation of the user for the project template information, determine the project template information required by the target project engineering from the project template information provided for the user, and then create the target project engineering according to the target project template corresponding to the selected project template information and the target assembly corresponding to the project template, that is, the user can select the project template required by the target project engineering according to the requirement, so that the flexibility of creating the target project engineering can be improved, and the user experience is improved.
In one embodiment, as shown in FIG. 3, step 104 may comprise:
step 302, determining optional component information according to the project template information;
in step 304, in response to the selection operation for the optional component information, target component information is determined from the optional component information.
For example, the components supported by the engineering templates of different frame types are different, so after the engineering template information is determined, the component information of the component supported by the target engineering template corresponding to the engineering template information can be determined according to the engineering template information, and the component information of the component supported by the target engineering template can be used as optional component information. Further, in response to a selection operation of the user for the optional component information, the selected optional component information may be determined as the target component information. The selection operation for the selectable component information may include modes of writing corresponding selectable component information in a command line, inputting corresponding selectable component information, selecting corresponding selectable component information through a selection control, and the like.
For example, referring to fig. 4, the scaffold system may obtain the project template information from the scaffold context, and may associate the project template information with the component information of the supported components as optional component information, and the user may select the component information of the component related to self development from the optional component information as the target component information. Exemplary components supported by the front-end engineering template include components such as webpack, babel, eslin, preter, and state managers vuex and redux, and components supported by the back-end engineering template include components such as mysql, kafka, elastic search, redis, zookeeper, apidococ, and swagger. Upon selecting the target component information, the scaffold system can store the target component information into a scaffold context.
According to the project construction method provided by the embodiment of the disclosure, the target component information required by the target project can be selected through selection operation according to requirements, the condition that more components are not used in the target project due to the fact that the components are fixed by the project template is avoided, the project encumbrance caused by redundant components is avoided, the code coverage rate of the whole target project is improved, and further the storage space occupied by the target project when the target project is deployed can be reduced.
In one embodiment, step 106 may comprise:
and loading the target engineering template corresponding to the engineering template information and the target assembly corresponding to the target assembly information from the remote program library according to the engineering template information and the target assembly information.
In embodiments of the present disclosure, the engineering templates and components may be stored in a remote library. After determining the project template information and the target assembly information corresponding to the target project, the scaffold system may load the target project template corresponding to the project template information and the target assembly corresponding to the target assembly information from the remote library.
Illustratively, referring to FIG. 5, the remote library stores engineering templates according to different architecture types, distinguished by branches of git. Basic information of the target project engineering, engineering template information and target component information needing to be integrated are stored in the scaffold context, so that the scaffold system can load a target engineering template corresponding to the engineering template information and a target component corresponding to the target component information from a remote program library through git commands through the engineering template information and the target component information stored in the scaffold context.
According to the project engineering construction method provided by the embodiment of the disclosure, the required target project template and the target assembly can be loaded from the remote program library, the problem of overstock of the scaffold system caused by integrating the target project template and the target assembly in the scaffold system is avoided, and the project template in the remote program library can be updated under the condition that a user wants to update the project template, so that the scaffold system does not need to be updated, and the updating operation of the project template is simplified.
In one embodiment, as shown with reference to FIG. 6, step 108 may comprise:
step 602, performing compiling adaptation processing on the target engineering template and the target assembly to obtain a compiling adaptation result;
and step 604, obtaining the target project engineering according to the compiling adaptation result.
In the embodiment of the disclosure, after the target engineering template and the target assembly are loaded, the target engineering template and the target assembly can be compiled and adapted to obtain a compiled and adapted result. Illustratively, under the condition that the compilation adaptation processing is successful, a first compilation adaptation result is obtained, and the first compilation adaptation result may be used to represent that the compilation adaptation is successful, that is, that the construction of the target project is successful, or, under the condition that the compilation adaptation processing is failed, a second compilation adaptation result may be obtained, and the second compilation adaptation result may be used to represent that the compilation adaptation is failed.
For example, referring to fig. 7, the adaptation compiling process may include two parts, namely, an adaptation process and a compiling process, in the adaptation process, the scaffold system may sequentially obtain target component information from the scaffold context, and when the scaffold system loads the target component from the remote library, the scaffold system obtains configuration information and package information of the target component, and then the scaffold system may generate a corresponding configuration file through a mapping relationship between the target component information and the configuration information of the target component and a target project template, where the configuration file may include a configuration directory file and a package. For example, the target component may be adapted to at least one engineering template, the target component may have corresponding configuration information for any adapted engineering template, the scaffold system may obtain a template type of the target engineering template, and write the configuration information of the target component into a local configuration directory file after matching the configuration information of the target component according to the template type, and obtain dependency information of the target component from the package information, write the dependency information of the target component into a package.
After the adaptation of all target assemblies is completed, the scaffold system packs and compiles the target project template, the target assemblies and the configuration file, if the compilation is successful, the target project is obtained, the first compilation adaptation result is obtained, if the compilation is failed, the second compilation adaptation result is obtained, and the failure reason is fed back to a user through the second compilation adaptation result.
According to the project construction method provided by the embodiment of the disclosure, the target project template and the target component required by the target project can be configured according to project requirements, the target project can be constructed according to the target project template and the target component through compiling adaptation processing, and the flexibility of constructing the target project can be improved.
In one embodiment, step 604 may comprise:
and under the condition that the compiling and adapting result represents that the compiling and adapting are successful, taking a compiled file obtained by compiling and adapting as a target project.
In the embodiment of the disclosure, when the compiling adaptation result obtained after the compiling adaptation process is the first adaptation compiling result used for representing successful compiling adaptation, the compiling file package obtained after the compiling adaptation process is used as the target project, and the user can extract the compiling file package for corresponding deployment.
In one embodiment, referring to FIG. 8, step 604 may comprise:
step 802, positioning information of a component to be improved according to compiling adaptation result information under the condition that the compiling adaptation result represents compiling adaptation failure;
step 804, responding to the modification operation aiming at the information of the component to be improved, and acquiring the modified target component information;
and 806, obtaining the target project engineering according to the target project template and the modified target assembly information.
For example, in a case that the obtained compilation adaptation result after the compilation adaptation process is a second compilation adaptation result used for characterizing compilation adaptation failure, the second compilation adaptation result may include a failure reason, for example: if the compilation adaptation fails due to mutual exclusion between target components, the failure reason may include information of the component to be improved, which may be target component information of the target component that generates the mutual exclusion.
According to the information of the components to be improved, a user can quickly locate the target components which are mutually exclusive, and can reselect at least one piece of target component information to replace the at least one piece of information of the components to be improved. The scaffold system can respond to modification operation of a user aiming at information of a component to be improved, determine new target component information, replace the information of the component to be improved with the new target component information to obtain modified target component information, and acquire a modified target component according to the modified target component information. Further, the target project may be obtained according to the modified configuration file, the modified target component and the target project template after modifying the configuration file according to the target project template and the modified target component, and the specific process may refer to the foregoing embodiments, which are not described herein again.
According to the project engineering construction method provided by the embodiment of the disclosure, under the condition of compiling adaptation failure, the failure reason can be quickly acquired according to the compiling adaptation result, the target component causing failure is positioned, the component information of the target project engineering is further modified and perfected, and the construction efficiency of the target project engineering can be improved.
In one embodiment, the engineering templates include at least one of front end engineering templates, back end engineering templates, and mobile end engineering templates.
In the embodiment of the disclosure, the scaffold system can provide the engineering templates for the user, cover the front-end engineering templates (including but not limited to exact, vue, exact), the rear-end engineering templates (for example: express) and the mobile-end engineering templates, and provide components supported by the engineering templates of each frame type, and the user can select appropriate engineering templates and components from the target project to be generated, perform combination and assembly, and construct corresponding target project projects.
The construction method of the project engineering provided by the embodiment of the disclosure can provide different types of project templates and components, and a user can assemble and construct a corresponding target project engineering according to needs, thereby improving the application range of project engineering construction.
In order that those skilled in the art will better understand the embodiments of the present disclosure, the embodiments of the present disclosure are described below by way of specific examples.
Referring to fig. 9, the scaffold system may determine a target engineering template required for the selected target engineering project in response to a selection operation of the user with respect to the engineering template information, which may include selecting any one of a front-end engineering template, a back-end engineering template, and a moving-end engineering template. After the engineering template information is selected, the corresponding target component information can be selected according to the engineering template information. After the engineering template information and the target component information are determined, a target corresponding to the engineering template information and the target corresponding to the target component information can be loaded from a remote program library, and personalized compiling and adapting processing is carried out on the target, so that a compiling and adapting result is obtained. And under the condition that the compiling and adapting result represents successful compiling and adapting, completing the construction of the target project engineering, under the condition that the compiling and adapting result represents unsuccessful compiling and adapting, reselecting the target component, and repeating the loading and compiling and adapting processes until the compiling and adapting result represents successful compiling and adapting, so as to complete the construction of the target project engineering.
According to the project engineering construction method provided by the embodiment of the disclosure, the scaffold system can support a front-end project engineering, a rear-end project engineering and a mobile-end project engineering, so that the application range is wide. The open engineering template is provided through the remote program library, and a user can directly update and modify the corresponding engineering template in the remote program library without modifying a scaffold system under the condition that the user performs corresponding operations such as updating and modifying on the engineering template, so that the user operation is simplified. The engineering template provided by the scaffold system is an engineering template decoupled through development and iteration of multiple projects, so that the engineering template can be directly and quickly developed, an integrated automatic packing and deployment scheme is provided, common components of a front-end project and a rear-end project and a mobile-end project can be flexibly integrated, and the development efficiency of the project can be improved.
It should be understood that although the various steps in the flow charts of fig. 1-9 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-9 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 10, there is provided a construction apparatus for a project, including: a first determining module 1002, a second determining module 1004, an obtaining module 1006, and a constructing module 1008, wherein:
a first determining module 1002, configured to determine, in response to a selection operation for the project template information, project template information corresponding to a target project;
a second determining module 1004, configured to determine, according to the engineering template information, target component information corresponding to the engineering template information;
an obtaining module 1006, configured to obtain a target engineering template corresponding to the engineering template information, and obtain a target component corresponding to the target component information;
and the construction module 1008 is used for obtaining the target project engineering according to the target engineering template and the target assembly.
According to the project engineering construction device, the scaffold system can respond to the selection operation aiming at the project template information, determine the project template information corresponding to the target project engineering, and determine the target assembly information corresponding to the project template information according to the project template information. And after the scaffold system acquires the target engineering template corresponding to the engineering template information and acquires the target assembly corresponding to the target assembly information, the target project engineering can be obtained according to the target engineering template and the target assembly. In the project engineering construction method provided by the application, the scaffold system can respond to the selection operation of the user for the project template information, determine the project template information required by the target project engineering from the project template information provided for the user, and then create the target project engineering according to the target project template corresponding to the selected project template information and the target assembly corresponding to the project template, that is, the user can select the project template required by the target project engineering according to the requirement, so that the flexibility of creating the target project engineering can be improved, and the user experience is improved.
In an embodiment, the second determining module 1004 may be further configured to:
determining optional component information according to the engineering template information;
in response to a selection operation for the selectable component information, target component information is determined from the selectable component information.
In an embodiment, the obtaining module 1006 may further be configured to:
and loading the target engineering template corresponding to the engineering template information and the target assembly corresponding to the target assembly information from the remote program library according to the engineering template information and the target assembly information.
In an embodiment, the building module 1008 may be further configured to:
compiling and adapting the target engineering template and the target assembly to obtain a compiling and adapting result;
and obtaining the target project engineering according to the compiling adaptation result.
In an embodiment, the building module 1008 may be further configured to:
and under the condition that the compiling and adapting result represents that the compiling and adapting are successful, taking a compiled file obtained by compiling and adapting as a target project.
In an embodiment, the building module 1008 may be further configured to:
under the condition that the compiling and adapting result represents that the compiling and adapting are failed, positioning information of the component to be improved according to the compiling and adapting result information;
responding to the modification operation aiming at the component information to be improved, and acquiring modified target component information;
and obtaining the target project according to the target project template and the modified target assembly information.
In one embodiment, the engineering templates include at least one of front end engineering templates, back end engineering templates, and mobile end engineering templates.
For specific limitations of the construction apparatus of the project, reference may be made to the above limitations of the construction method of the project, and details are not described here. The respective modules in the construction apparatus of the project engineering described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a construction method of a project. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
responding to the selection operation aiming at the project template information, and determining the project template information corresponding to the target project;
determining target component information corresponding to the engineering template information according to the engineering template information;
acquiring a target engineering template corresponding to the engineering template information and acquiring a target assembly corresponding to the target assembly information;
and obtaining the target project according to the target project template and the target assembly.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining optional component information according to the engineering template information; and in response to the selection operation aiming at the optional component information, determining target component information from the optional component information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and loading a target engineering template corresponding to the engineering template information and a target assembly corresponding to the target assembly information from a remote program library according to the engineering template information and the target assembly information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
compiling and adapting the target engineering template and the target assembly to obtain a compiling and adapting result; and obtaining the target project engineering according to the compiling adaptation result.
In one embodiment, the processor when executing the computer program further performs the steps of:
and under the condition that the compiling and adapting result represents that the compiling and adapting are successful, taking the compiling file obtained by the compiling and adapting processing as the target project engineering.
In one embodiment, the processor when executing the computer program further performs the steps of:
under the condition that the compiling adaptation result represents that the compiling adaptation is failed, positioning information of the component to be improved according to the compiling adaptation result information; responding to the modification operation aiming at the component information to be improved, and acquiring modified target component information; and obtaining the target project according to the target project template and the modified target assembly information.
In one embodiment, the processor when executing the computer program further performs the steps of: the engineering template comprises at least one of a front end engineering template, a rear end engineering template and a movable end engineering template.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
responding to the selection operation aiming at the project template information, and determining the project template information corresponding to the target project;
determining target component information corresponding to the engineering template information according to the engineering template information;
acquiring a target engineering template corresponding to the engineering template information and acquiring a target assembly corresponding to the target assembly information;
and obtaining the target project according to the target project template and the target assembly.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining optional component information according to the engineering template information; and in response to the selection operation aiming at the optional component information, determining target component information from the optional component information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and loading a target engineering template corresponding to the engineering template information and a target assembly corresponding to the target assembly information from a remote program library according to the engineering template information and the target assembly information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
compiling and adapting the target engineering template and the target assembly to obtain a compiling and adapting result; and obtaining the target project engineering according to the compiling adaptation result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and under the condition that the compiling and adapting result represents that the compiling and adapting are successful, taking the compiling file obtained by the compiling and adapting processing as the target project engineering.
In one embodiment, the computer program when executed by the processor further performs the steps of:
under the condition that the compiling adaptation result represents that the compiling adaptation is failed, positioning information of the component to be improved according to the compiling adaptation result information; responding to the modification operation aiming at the component information to be improved, and acquiring modified target component information; and obtaining the target project according to the target project template and the modified target assembly information.
In one embodiment, the computer program when executed by the processor further performs the steps of: the engineering template comprises at least one of a front end engineering template, a rear end engineering template and a movable end engineering template.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (10)

1. A construction method of project engineering is characterized by being applied to a scaffold system, and the method comprises the following steps:
responding to selection operation aiming at the project template information, and determining the project template information corresponding to the target project, wherein the project template information is identification information used for indicating a corresponding project template, the project template is used for dividing a code framework of the project and indicating write-in files of various codes in the project;
determining component information of a component supported by the frame type according to the frame type corresponding to the engineering template information, taking the component information of the component supported by the frame type as optional component information, and determining target component information corresponding to the engineering template information from the optional component information in response to a selection operation for the optional component information, wherein the target component information is identification information corresponding to a target component;
acquiring a target engineering template corresponding to the engineering template information and acquiring a target assembly corresponding to the target assembly information, wherein the target assembly is an assembly supported by the target engineering template;
and obtaining the target project according to the target project template and the target assembly.
2. The method according to claim 1, wherein the obtaining of the target engineering template corresponding to the engineering template information and the obtaining of the target component corresponding to the target component information comprise:
and loading a target engineering template corresponding to the engineering template information and a target assembly corresponding to the target assembly information from a remote program library according to the engineering template information and the target assembly information.
3. The method of claim 1, wherein obtaining the target project from the target project template and the target component comprises:
compiling and adapting the target engineering template and the target assembly to obtain a compiling and adapting result;
and obtaining the target project engineering according to the compiling adaptation result.
4. The method according to claim 3, wherein the obtaining the target project engineering according to the compiled adaptation result comprises:
and under the condition that the compiling and adapting result represents that the compiling and adapting are successful, taking the compiling file obtained by the compiling and adapting processing as the target project engineering.
5. The method according to claim 3, wherein said obtaining the target project according to the compiled adaptation result comprises:
under the condition that the compiling and adapting result represents that the compiling and adapting are failed, positioning information of the component to be improved according to the compiling and adapting result information;
responding to the modification operation aiming at the component information to be improved, and acquiring modified target component information;
and obtaining the target project according to the target project template and the modified target assembly information.
6. The method of any one of claims 1, 4-5, wherein the engineering templates include at least one of front end engineering templates, back end engineering templates, and mobile end engineering templates.
7. The method of claim 2, wherein the loading the target project template corresponding to the project template information and the target component corresponding to the target component information from the remote library comprises:
storing the target component information into a scaffold context;
and loading a target engineering template corresponding to the engineering template information and a target component corresponding to the target component information from a remote program library through the engineering template information and the target component information stored in the scaffold context through a git command, wherein the remote program library stores the engineering templates according to different architecture types and is distinguished through git branches.
8. A construction device for project engineering, which is applied to a scaffold system, the device comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for responding to selection operation aiming at engineering template information and determining the engineering template information corresponding to a target project engineering, the engineering template information is identification information used for indicating a corresponding engineering template, the engineering template is used for dividing a code framework of the project engineering and indicating write-in files of various codes in the project engineering;
a second determining module, configured to determine, according to a frame type corresponding to the engineering template information, component information of a component supported by the frame type, use the component information of the component supported by the frame type as optional component information, and determine, in response to a selection operation for the optional component information, target component information corresponding to the engineering template information from the optional component information, where the target component information is identification information corresponding to a target component;
the acquisition module is used for acquiring a target engineering template corresponding to the engineering template information and acquiring the target assembly corresponding to the target assembly information, wherein the target assembly is an assembly supported by the target engineering template;
and the construction module is used for obtaining the target project engineering according to the target project template and the target assembly.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110739983.0A 2021-06-30 2021-06-30 Project engineering construction method and device, computer equipment and storage medium Active CN113535182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110739983.0A CN113535182B (en) 2021-06-30 2021-06-30 Project engineering construction method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110739983.0A CN113535182B (en) 2021-06-30 2021-06-30 Project engineering construction method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113535182A CN113535182A (en) 2021-10-22
CN113535182B true CN113535182B (en) 2023-02-17

Family

ID=78126389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110739983.0A Active CN113535182B (en) 2021-06-30 2021-06-30 Project engineering construction method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113535182B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113805864A (en) * 2021-11-19 2021-12-17 北京明略昭辉科技有限公司 Project engineering generation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111596965A (en) * 2020-07-22 2020-08-28 太平金融科技服务(上海)有限公司 Project engineering initialization method, device, computer equipment and storage medium
CN111782191A (en) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 Project engineering creating method and device
CN112416327A (en) * 2020-11-23 2021-02-26 平安普惠企业管理有限公司 Project construction method and device, computer equipment and storage medium
CN112685029A (en) * 2020-12-30 2021-04-20 京东数字科技控股股份有限公司 Visual template generation method, device, equipment and storage medium
CN112835568A (en) * 2019-11-25 2021-05-25 北京京东尚科信息技术有限公司 Project construction method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016175815A1 (en) * 2015-04-30 2016-11-03 Hewlett-Packard Development Company, L.P. Soft-proof file generation based on print-ready data
US9990187B1 (en) * 2017-01-27 2018-06-05 Sas Institute Inc. Analytic execution for automatic decision making
CN110580152B (en) * 2018-06-07 2023-05-12 北京怡合春天科技有限公司 Front-end automatic scaffold
CN111488148B (en) * 2020-03-09 2023-07-21 北京水滴科技集团有限公司 Webpage source code generation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835568A (en) * 2019-11-25 2021-05-25 北京京东尚科信息技术有限公司 Project construction method and device
CN111782191A (en) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 Project engineering creating method and device
CN111596965A (en) * 2020-07-22 2020-08-28 太平金融科技服务(上海)有限公司 Project engineering initialization method, device, computer equipment and storage medium
CN112416327A (en) * 2020-11-23 2021-02-26 平安普惠企业管理有限公司 Project construction method and device, computer equipment and storage medium
CN112685029A (en) * 2020-12-30 2021-04-20 京东数字科技控股股份有限公司 Visual template generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113535182A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN112286779B (en) Test task processing method and device, storage medium and computer equipment
US9384020B2 (en) Domain scripting language framework for service and system integration
US20140208169A1 (en) Domain scripting language framework for service and system integration
CN112416318B (en) Micro-service development method and device, storage medium and electronic equipment
CN112650487B (en) Hybrid application development method, system, computer device and storage medium
CN110597552B (en) Configuration method, device, equipment and storage medium of project continuous integrated pipeline
CN113127347A (en) Interface testing method, device, equipment and readable storage medium
CN113535182B (en) Project engineering construction method and device, computer equipment and storage medium
CN111949262A (en) Front-end project construction method and device, computer equipment and storage medium
CN112732300A (en) Data packet updating method and device, electronic equipment and readable storage medium
CN113268229B (en) Code generation method and code generation device
CN110989986B (en) Software template-based software generation method and device and computer equipment
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
US20150355997A1 (en) Server-Platform Simulation Service
CN116594635A (en) Cloud primary continuous integration and delivery method and device
CN110806891A (en) Method and device for generating software version of embedded equipment
CN115934129A (en) Software project updating method and device, computer equipment and storage medium
CN112214213B (en) Linux kernel development and management method and device, computer equipment and storage medium
CN113568834A (en) SDK code compatibility detection method, device, computer equipment and medium
CN111176653B (en) Program compiling and packaging method and device, electronic equipment and storage medium
CN114003250A (en) Software deployment method and device
CN113094052A (en) Application construction method and device, computer equipment and storage medium
CN112162743A (en) Driver generation method, device, computer equipment and storage medium
CN112463630A (en) Version difference testing method and device, computer equipment and storage medium
US20230359547A1 (en) Targeted Testing for Modular Software Applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant