Project construction method, device, medium and electronic device

By using plug-ins in the code editor to create and manage initial engineering code modules, the problems of complex construction of front-end projects and cumbersome code acquisition are solved, and efficient project construction and unified project styles are achieved.

CN114237582BActive Publication Date: 2025-07-18PING AN SECURITIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111553107.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2025-07-18
Estimated Expiration
2041-12-17

AI Technical Summary

Technical Problem

In the existing technology, the front-end project construction process is complicated, and it is necessary to build the project structure from scratch, the style and code are inconsistent, maintenance is difficult, and the operation of obtaining engineering code is cumbersome and the user experience is poor.

Method used

Create an initial engineering code module based on the plug-in provided by the predetermined code editor, add attribute fields, and upload it to the code version management library, obtain the access address, display the workbench page to download the dependency module, and build the initial project structure.

Benefits of technology

It improves the efficiency of building front-end initial projects, simplifies the operation process, ensures the unity and standardization of project styles, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114237582B_ABST
    Figure CN114237582B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the fields of artificial intelligence and software development, and discloses a project construction method, device, medium and electronic device. The method includes: creating an initial project code module based on a plug-in provided by a predetermined code editor; adding attribute fields corresponding to the initial project code module to a preset configuration file; uploading the initial project code module to a code version management library, and obtaining an access address returned by the code version management library as the access address corresponding to the attribute field; when a start instruction is received, displaying a workbench page; in response to a function button on the workbench page being triggered, determining the access address corresponding to the attribute field displayed in the function button; downloading the initial project code module and the modules on which the initial project code module depends according to the access address to obtain an initial project structure; and constructing a target project based on the initial project structure. This method can improve the construction efficiency of the front-end initial project.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Currently, the basic processes of front-end construction projects are relatively complex. It is necessary to build the project structure and directory from scratch, and the styles of the projects to be built need to be rewritten. In this way, the style codes of the pages may be inconsistent, and the styles will also vary. The subsequent maintenance is also troublesome, with many matters to be considered, and it is not necessary to explain the code structure and page style design to different developers. This way has a large degree of uncertainty and the workload will also increase.

[0003] In addition, after submitting the project code to the Git repository, if you need to obtain the code, you need to create a new folder in the directory every time and then use the Git command to pull the code. The operation is cumbersome and the user experience is poor. Summary of the Invention

[0004] In the fields of artificial intelligence and software development technology, in order to solve the technical problems of large workload in developing front-end projects and cumbersome operations when obtaining project engineering codes, the purpose of the present disclosure is to provide a project construction method, device, medium and electronic device.

[0005] According to one aspect of the present disclosure, a project construction method is provided, and the method includes:

[0006] Create an initial project code module based on a plug-in provided by a predetermined code editor. The initial project code module includes a preset configuration file, and the preset configuration file includes the module names on which the initial project code module depends;

[0007] Add attribute fields corresponding to the initial project code module to the preset configuration file;

[0008] Upload the initial project code module to the code version management library, and obtain the access address returned by the code version management library as the access address corresponding to the attribute field;

[0009] When a start instruction is received, display a workbench page. The workbench page includes at least one function button, and each function button displays one of the attribute fields;

[0010] In response to the function button on the workbench page being triggered, determine the access address corresponding to the attribute field displayed in the function button;

[0011] Download the initial project code module according to the access address, and download the modules on which the initial project code module depends according to the module names in the preset configuration file of the initial project code module to obtain an initial project structure;

[0012] Build a target project based on the initial project structure.

[0013] According to another aspect of the present disclosure, there is provided a project construction device, which includes:

[0014] A creation module, configured to create an initial project code module based on a plug-in provided by a predetermined code editor. The initial project code module includes a preset configuration file, and the preset configuration file includes module names on which the initial project code module depends;

[0015] An addition module, configured to add an attribute field corresponding to the initial project code module to the preset configuration file;

[0016] An upload and acquisition module, configured to upload the initial project code module to a code version management library and acquire an access address returned by the code version management library as an access address corresponding to the attribute field;

[0017] A display module, configured to display a workbench page when receiving a start instruction. The workbench page includes at least one function button, and each function button displays one of the attribute fields;

[0018] An access address determination module, configured to determine an access address corresponding to the attribute field displayed in the function button in response to the function button on the workbench page being triggered;

[0019] A download module, configured to download the initial project code module according to the access address and download modules on which the initial project code module depends according to the module names in the preset configuration file of the initial project code module to obtain an initial project structure;

[0020] A development module, configured to build a target project based on the initial project structure.

[0021] According to another aspect of the present disclosure, there is provided a computer-readable program medium storing computer program instructions, which when executed by a computer, cause the computer to execute the method as described above.

[0022] According to another aspect of the present disclosure, there is provided an electronic device, which includes:

[0023] A processor;

[0024] A memory, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by the processor, the method as described above is implemented.

[0025] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects:

[0026] For the project construction method, device, medium and electronic device provided by the present disclosure, the method includes the following steps: creating an initial project code module based on a plug-in provided by a predetermined code editor, where the initial project code module includes a preset configuration file, and the preset configuration file includes the module names on which the initial project code module depends; adding an attribute field corresponding to the initial project code module to the preset configuration file; uploading the initial project code module to a code version management library, and obtaining an access address returned by the code version management library as the access address corresponding to the attribute field; when a start instruction is received, displaying a workbench page, where the workbench page includes at least one function button, and each function button displays an attribute field; in response to the function button on the workbench page being triggered, determining the access address corresponding to the attribute field displayed in the function button; downloading the initial project code module according to the access address, and downloading the modules on which the initial project code module depends according to the module names in the preset configuration file of the initial project code module to obtain an initial project structure; and constructing a target project based on the initial project structure.

[0027] Under this method, by first creating an initial project code module based on a plug-in provided by a predetermined code editor, the front-end initial project construction efficiency can be greatly improved. On this basis, by uploading the initial project code module to a code version management library, when the initial project code module needs to be obtained, only need to start the tool, and function buttons can be displayed on the workbench page. Moreover, the function buttons can clearly prompt the user about the functions of the corresponding code. The user can click the button to pull the corresponding code with one click and can also download the corresponding dependencies with one click. Therefore, the later modification of the code can be immediately started or some customized requirements can be developed on this basis. The operation is simple and suitable for use in project groups with many projects or templates.

[0028] It should be understood that the above general description and the following detailed description are only exemplary and do not limit the present invention. Brief Description of the Drawings

[0029] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present invention, and are used together with the specification to explain the principles of the present invention.

[0030] Figure 1 is a schematic diagram of the system architecture of a project construction method shown according to an exemplary embodiment;

[0031] Figure 2 is a flowchart of a project construction method shown according to an exemplary embodiment;

[0032] Figure 3It is a flowchart showing adding an attribute field corresponding to an initial engineering code module in a preset configuration file according to an exemplary embodiment;

[0033] Figure 4 It is a schematic flowchart of initializing a project based on a project construction method according to an exemplary embodiment;

[0034] Figure 5 It is a block diagram of a project construction device according to an exemplary embodiment;

[0035] Figure 6 It is an exemplary block diagram of an electronic device for implementing the above project construction method according to an exemplary embodiment;

[0036] Figure 7 It is a program product for implementing the above project construction method according to an exemplary embodiment. Detailed implementation manners

[0037] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0038] In addition, the drawings are only schematic diagrams of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, so the repeated description thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities.

[0039] As described in the background art section of the present disclosure, in the traditional project setup process, developers often build project modules from scratch. This not only has low development efficiency and poor reusability, but also makes it cumbersome to operate even when submitting the engineering code to the Git repository and then using the engineering code later.

[0040] For this reason, the present disclosure first provides a project construction method. By this method, the above defects can be overcome. It can not only improve the development efficiency and the reusability of modules, but also improve the convenience of project engineering initialization. In addition, the initialized project engineering can include pre-designed project styles, so that the styles of different projects can be unified, ensuring the standardization of project styles.

[0041] The implementation terminal of the present disclosure can be any device with computing, processing, and communication functions. This device can be connected to external devices for receiving or sending data. Specifically, it can be a portable mobile device, such as a smartphone, tablet computer, laptop, PDA (Personal Digital Assistant), etc., or a fixed device, such as a computer device, field terminal, desktop computer, server, workstation, etc. It can also be a collection of multiple devices, such as the physical infrastructure of cloud computing or a server cluster.

[0042] Optionally, the implementation terminal of the present disclosure can be a laptop or a desktop computer.

[0043] Figure 1 It is a schematic diagram of the system architecture of a project construction method shown according to an exemplary embodiment. As Figure 1 shown, the system architecture includes a terminal device 110 and a cloud 120, and the terminal device 110 is connected to the cloud 120 through a communication link. The terminal device 110 is the implementation terminal of the embodiment of the present disclosure, and a code version management library is deployed on the cloud 120, and a predetermined code editor is deployed on the terminal device 110. When the project construction method provided by the present disclosure is applied to Figure 1 the system architecture shown, the specific process can be as follows: First, a developer creates an initial project code module on the terminal device 110 based on the plug-in provided by the predetermined code editor, and adds an attribute field corresponding to the initial project code module to the configuration file of the initial project code module; then, the developer uploads the initial project code module to the code version management library located on the cloud 120 through the terminal device 110, and the code version management library returns an access address corresponding to the attribute field to the terminal device 110; then, when the developer opens the workbench page on the terminal device 110, one or more function buttons displayed on the workbench page can be seen, and each function button displays a corresponding attribute field. When the developer clicks a certain function button, the initial project code module will be downloaded from the code version management library located on the cloud 120 according to the access address corresponding to the attribute field displayed in the function button, so as to complete the initialization of the project engineering; finally, the developer opens the initialized project engineering through the predetermined code editor, and on this basis, the project development can be quickly carried out.

[0044] In an embodiment of the present disclosure, the workbench page is displayed by starting the plug-in.

[0045] It is worth mentioning that Figure 1 This is only one embodiment of the present disclosure. Although in Figure 1The implementation terminal in the embodiment is a laptop computer. However, in other embodiments of the present disclosure, the implementation terminal may also be various terminal devices such as the aforementioned smart phones, etc.; Although in Figure 1 the embodiment, the terminal for uploading the initial project code module and the terminal for downloading the initial project code module are the same terminal device, but in other embodiments of the present disclosure, the operations of uploading the initial project code module and downloading the initial project code module may also be implemented by different terminal devices respectively. The present disclosure does not make any limitation in this regard, and the protection scope of the present disclosure should not be restricted accordingly.

[0046] Figure 2 is a flowchart of a project construction method shown according to an exemplary embodiment. Figure 2 The illustrated embodiment can be executed by a terminal device such as a computer device. As Figure 2 shown, it includes the following steps:

[0047] Step 210, create an initial project code module based on the plug-ins provided by a predetermined code editor.

[0048] The initial project code module includes a preset configuration file, and the preset configuration file includes the module names on which the initial project code module depends.

[0049] The predetermined code editor can be, for example, Visual Studio Code (VSCode). VSCode is a free and open-source modern lightweight code editor that supports syntax highlighting, intelligent code completion, custom shortcut keys, bracket matching and color differentiation, code snippets, code comparison Diff, GIT commands, etc. for almost all mainstream development languages. It supports plug-in extensions and is optimized for web development and cloud application development. The plug-ins provided by VSCode can include, for example, Yeoman and VS Code Extension Generator. Yeoman is an efficient and open-source Web application scaffolding system. The scaffolding is the integration of front-end engineering and is the initiator of front-end engineering. Its essence and function are to create the project infrastructure, provide project specifications and conventions.

[0050] The initial project code module can be a front-end Web initialization project. The preset configuration file can be, for example, a file in JSON format, and it can be located in the root directory of the initial project code module project. Specifically, the preset configuration file can be package.json, and package.json is a JSON object, and each member of this object is a setting of the current project.

[0051] Step 220, add the attribute fields corresponding to the initial project code module in the preset configuration file.

[0052] The initial engineering code module can be a functional module, and the attribute field can be an attribute field of a functional type. For example, the attribute field corresponding to the initial engineering code module can be "animation", "advertisement", and so on.

[0053] Figure 3 It is a flowchart showing adding the attribute field corresponding to the initial engineering code module in a preset configuration file according to an exemplary embodiment. As Figure 3 shown, it may include the following steps:

[0054] Step 310, input the initial engineering code module into a preset artificial intelligence model to obtain the attribute field output by the preset artificial intelligence model.

[0055] The preset artificial intelligence model can be constructed based on various deep neural network models. The preset artificial intelligence model can analyze the initial engineering code module, so as to provide an attribute field suitable for describing the initial engineering code module.

[0056] The preset artificial intelligence model can be trained in the following way: Take multiple initial engineering code modules and the attribute fields corresponding to each initial engineering code module as a training set, input them into the model, and then iteratively train the model according to the loss function, continuously adjusting the parameters of the model during the training process until the model converges. The preset artificial intelligence model can be a language model based on Transformer. Transformer can include an encoder and a decoder, and both the encoder and the decoder are stacked by multiple layers, and each layer includes a multi-head self-attention mechanism module and a fully connected feed-forward neural network module.

[0057] In the training set, the attribute field corresponding to the initial engineering code module can be set by developers according to experience, or can be automatically extracted from the development document of the initial engineering code module. Specifically, the TD-IDF algorithm can be used to automatically extract keywords from the development document of the initial engineering code module as attribute fields, which can improve the construction efficiency of the training set.

[0058] Step 320, add the attribute field output by the preset artificial intelligence model to the preset configuration file.

[0059] In this embodiment, by using the artificial intelligence model to set the attribute field, while ensuring the accuracy of the attribute field, the efficiency of setting the attribute field is improved.

[0060] Step 230, upload the initial engineering code module to the code version management library, and obtain the access address returned by the code version management library as the access address corresponding to the attribute field.

[0061] In one embodiment of the present disclosure, the method further includes: installing and configuring a Git environment and a Node.js environment locally.

[0062] The code version management library can be Git, for example. Git is an open-source distributed version control system used to handle projects of any size, large or small, efficiently and nimbly. Therefore, in order to use Git, it is necessary to install and configure a Git environment.

[0063] Node.js is a platform built on the Chrome JavaScript runtime. Node.js is an event-driven I / O server-side JavaScript environment, so initial engineering code modules can be developed based on Node.js.

[0064] The access address can be the Git repository address. After storing the initial engineering code module in the code version management library, the code version management library provides a link through which the storage location of the initial engineering code module in the code version management library can be accessed, so that the initial engineering code module can be retrieved from the code version management library.

[0065] Step 240: When a start instruction is received, display the workbench page.

[0066] The workbench page includes at least one function button, and each function button displays one of the property fields.

[0067] The function buttons are created according to a preset configuration file. Therefore, by analyzing the preset configuration file, the property fields contained therein can be obtained.

[0068] The property fields displayed in the function buttons are explanatory texts for the function buttons. By clicking the corresponding button according to the displayed property fields, the user can select the engineering code module to be downloaded.

[0069] The start instruction can be in various forms. For example, the start instruction can be an instruction input by the user received through a command-line program.

[0070] In some embodiments of the present disclosure, when the mouse pointer hovers over a function button, the access address corresponding to the property field is displayed.

[0071] In this embodiment, the user can perform operations such as clicking and hovering on the function buttons using the mouse. When the user hovers the mouse pointer over a function button, by additionally displaying the corresponding access address, the user can conveniently obtain more information, thereby improving the user experience.

[0072] In some embodiments of the present disclosure, when a start instruction is received, displaying a workbench page includes: when a start instruction for a plugin installed in the predetermined code editor is received, displaying a workbench page.

[0073] In other words, this step and the steps following this step are executed by the plugin, that is, the workbench page containing function buttons can be displayed by starting a plugin in the predetermined code editor. The embodiments of the present disclosure are implemented in the form of a plugin, and module acquisition can be directly performed by opening the plugin, thereby improving the convenience of project development.

[0074] In some embodiments of the present disclosure, before displaying the workbench page when a start instruction for a plugin installed in the predetermined code editor is received, the method further includes: publishing the plugin to the official library of the predetermined code editor.

[0075] The plugin can be embedded in the predetermined code editor. By publishing the plugin to the official library of the predetermined code editor, when using the predetermined code editor, the plugin can be installed locally and used in the predetermined code editor, thereby further improving the convenience of implementing the solution of the embodiments of the present disclosure.

[0076] In some embodiments of the present disclosure, the function button is an item in a secondary menu, and the workbench page further includes a primary menu above the secondary menu, and the fields displayed in the primary menu are used to describe the function type or the project style type.

[0077] The secondary menu can be a drop-down menu. At this time, the primary menu is equivalent to the overall entry for all function buttons in the drop-down menu.

[0078] Specifically, the fields displayed in the primary menu can be used to describe the function type, and the attribute fields displayed in the secondary menu can be specific function points. For example, the function type can be entertainment, and the specific function points can include games, videos, etc.; the fields displayed in the primary menu can also be used to describe the project style type, and the attribute fields displayed in the secondary menu can be specific project styles. For example, the project style type can be simple, and the specific project style can be waterfall type, etc.

[0079] In the embodiments of the present disclosure, on the one hand, by setting the function button as an item in the secondary menu, the intensification degree of the content displayed on the workbench page is improved, so that more function buttons can be displayed on the workbench page, thereby enabling more initial engineering code modules to be obtained; on the other hand, different function buttons can be classified and summarized in the form of a primary and secondary menu, so that when there are many function buttons on the workbench page, users can find the required function buttons faster, improving the user experience.

[0080] Meanwhile, by classifying and summarizing the function buttons in the form of a hierarchical menu of primary and secondary levels, users can quickly find the required function buttons according to the function type or project style type, and it can also make the workbench page more concise, thus improving the user experience. In addition, when the fields displayed in the primary menu are used to describe the project style type, users can quickly obtain the initial project code modules belonging to the same project style type based on the function buttons under the primary menu. Therefore, the styles of project styles for different projects can be kept consistent, ensuring the standardization of project styles and improving the quality of the developed projects.

[0081] Step 250: In response to the function button on the workbench page being triggered, determine the access address corresponding to the attribute field displayed in the function button.

[0082] When a user clicks on a function button on the workbench page, the function button will be triggered.

[0083] Since the access address corresponding to the attribute field has been obtained from the code version management library in the previous step, the attribute field and the access address can be stored locally. Therefore, the corresponding access address can be determined according to the attribute field.

[0084] Step 260: Download the initial project code module according to the access address, and download the modules on which the initial project code module depends according to the module names in the preset configuration file of the initial project code module to obtain the initial project structure.

[0085] The initial project code module in the Git repository can be cloned through the Git repository address to obtain the initial project code module. After obtaining the initial project code module, the included preset configuration file is obtained from the initial project code module, and then the module names on which it depends are extracted from the preset configuration file. The modules on which the initial project code module depends can be determined according to the module names, and then these dependent modules can be downloaded. Based on the initial project code module and the modules on which it depends, an initial project structure can be formed.

[0086] Both the initial project code module itself and the modules on which the initial project code module depends can actually exist in the form of program packages.

[0087] In some embodiments of the present disclosure, the method further includes: displaying the initial project structure in the display interface of the predetermined code editor.

[0088] For example, when opening a blank folder using VS Code, after opening the plugin and clicking the corresponding button, clone the code to the blank folder according to the git repository address corresponding to the field in the button; then, in the console interface of VSCode, use the cd command to enter the project directory of this folder, so that the engineering code module can be opened in VS Code, and then the initial project structure can be displayed in VS Code.

[0089] Step 270, construct a target project based on the initial project structure.

[0090] The initial project structure may include a project directory structure and project files. After the initial project structure is displayed in VS Code, developers can continue with project development operations on the basis of the initial project structure, edit the project files, further add project code to the project files, or create new project files, thus quickly realizing project setup.

[0091] In some embodiments of the present disclosure, the method further includes: according to the edit instruction received for the function button through the workbench page, correspondingly adjust the attribute fields displayed in the function button in the preset configuration file.

[0092] The user can right-click on the function button and select the edit menu in the pop-up menu; then, edit the attribute fields in the displayed window, so that the edit instruction can be submitted.

[0093] In an embodiment of the present disclosure, the method further includes: according to the received new instruction for the function button in the workbench page, display a configuration entry for the function button; obtain the attribute fields configured for the function button through the configuration entry, and add the attribute fields to the preset configuration file of the target initial engineering code module to be associated.

[0094] The configuration entry can be a page, which may include forms such as text boxes, and attribute fields can be configured for the function button through the form. The names of each initial engineering code module uploaded to the code version management library and the corresponding selection buttons can also be displayed in the configuration entry, and the required associated initial engineering code module can be selected by clicking the selection button. Once the initial engineering code module is associated with the attribute fields, a corresponding relationship is established between the two, so that the configured attribute fields can be automatically added to the preset configuration file of the required associated initial engineering code module, and the access address corresponding to the initial engineering code module can also be directly obtained from the code version management library.

[0095] Figure 4It is a schematic flowchart of initializing a project based on a project construction method shown in an exemplary embodiment. The following will further introduce the solution of the embodiments of the present disclosure. As Figure 4 shown, it may specifically include the following steps: Figure 4 Step 410, vscode creates a project.

[0096] Create a project through vscode.

[0097] Step 420, create page function buttons according to the json file data.

[0098] Step 430, click the function button.

[0099] If the user requests to add or edit a function button, execute Step 440.

[0100] Step 440, modify the json data.

[0101] According to the add or edit instruction for the function button, make corresponding modifications to the json file data.

[0102] Step 450, pull code from the remote library according to the button instruction and the address.

[0103] In response to the button instruction, access the remote library according to the address to pull the code.

[0104] Step 460, execute npm install to download dependencies.

[0105] By executing the npm install instruction, download the dependent modules.

[0106] Step 470, complete the project initialization.

[0107] Based on the pulled code and the dependent modules, implement the project initialization, so that the project can be further developed.

[0108]

[0109] ​In summary, according to the project development method provided by the embodiments of the present disclosure, by first creating an initial project code module based on the plug-in provided by a predetermined code editor, the construction efficiency of the front-end initial project can be greatly improved. On this basis, by uploading the initial project code module to the code version management library, when it is necessary to obtain the initial project code module, only need to start the tool, and function buttons can be displayed on the workbench page. Moreover, the function buttons can clearly prompt the user about the functions of the corresponding code. The user can click the button to pull the corresponding code with one key and can also download the corresponding dependencies with one key. Therefore, the time required to build the initial project is greatly shortened and it is easy to maintain. It is possible to immediately start making subsequent modifications to the code or developing some customized requirements on this basis. The operation is simple and suitable for use in project groups with many projects or templates.

[0110] The present disclosure also provides a project construction device. The following are the device embodiments of the present disclosure.

[0111] Figure 5 It is a block diagram of a project construction device shown according to an exemplary embodiment. As Figure 5 shown, the device 500 includes:

[0112] A creation module 510, configured to create an initial project code module based on a plug-in provided by a predetermined code editor. The initial project code module includes a preset configuration file, and the preset configuration file includes the module names on which the initial project code module depends;

[0113] An addition module 520, configured to add an attribute field corresponding to the initial project code module to the preset configuration file;

[0114] An upload and acquisition module 530, configured to upload the initial project code module to the code version management library and obtain the access address returned by the code version management library as the access address corresponding to the attribute field;

[0115] A display module 540, configured to display a workbench page when a start instruction is received. The workbench page includes at least one function button, and each function button displays one of the attribute fields;

[0116] An access address determination module 550, configured to determine the access address corresponding to the attribute field displayed in the function button in response to the function button on the workbench page being triggered;

[0117] A download module 560, configured to download the initial project code module according to the access address and download the modules on which the initial project code module depends according to the module names in the preset configuration file of the initial project code module to obtain an initial project structure;

[0118] The development module 570 is configured to build a target project based on the initial project structure.

[0119] According to the third aspect of the present disclosure, there is also provided an electronic device capable of implementing the above method.

[0120] Those skilled in the art can understand that various aspects of the present invention can be implemented as a system, a method, or a program product. Therefore, various aspects of the present invention can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuit", "module", or "system" here.

[0121] Refer to the following Figure 6 to describe the electronic device 600 according to this embodiment of the present invention. Figure 6 The displayed electronic device 600 is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.

[0122] As Figure 6 shown, the electronic device 600 is presented in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: the above-mentioned at least one processing unit 610, the above-mentioned at least one storage unit 620, and a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610).

[0123] Among them, the storage unit stores program codes, and the program codes can be executed by the processing unit 610, so that the processing unit 610 executes the steps according to various exemplary embodiments of the present invention described in the "Embodiment Method" part of this specification.

[0124] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 621 and / or a cache storage unit 622, and may further include a read-only storage unit (ROM) 623.

[0125] The storage unit 620 may also include a program / utilities 624 having a set (at least one) of program modules 625. Such program modules 625 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. The implementation of a network environment may be included in each or some combination of these examples.

[0126] The bus 630 can represent one or more of several types of bus structures, including a memory unit bus or a memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of the various bus structures.

[0127] The electronic device 600 can also communicate with one or more external devices 800 (such as a keyboard, a pointing device, a Bluetooth device, etc.), can also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or can communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 650, such as communicating with the display unit 640. Moreover, the electronic device 600 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 660. As shown in the figure, the network adapter 660 communicates with other modules of the electronic device 600 through the bus 630. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0128] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0129] According to a fourth aspect of the present disclosure, there is also provided a computer-readable storage medium, on which a program product capable of implementing the above method of this specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of this specification.

[0130] Reference Figure 7As shown, a program product 700 for implementing the above method according to an embodiment of the present invention is described. It can be a portable compact disc read-only memory (CD-ROM) and includes program code, and can run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device.

[0131] The program product can adopt any combination of one or more readable media. The readable media can be a readable signal medium or a readable storage medium. The readable storage medium can, for example, be but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0132] The computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which the readable program code is carried. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable signal medium can also be any readable medium other than the readable storage medium, and this readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device.

[0133] The program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination of the above.

[0134] The program code for performing the operations of the present invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user's computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., by using an Internet service provider to connect through the Internet).

[0135] In addition, the above-mentioned drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present invention and are not for limiting purposes. It is easy to understand that the processes shown in the above-mentioned drawings do not indicate or limit the chronological order of these processes. Additionally, it is also easy to understand that these processes can be executed, for example, synchronously or asynchronously in multiple modules.

[0136] It should be understood that the present invention is not limited to the exact structures that have been described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.

Claims

1. A project construction method, characterized in that The method includes: Create an initial project code module based on a plug-in provided by a predetermined code editor. The initial project code module includes a preset configuration file, and the preset configuration file includes the module names on which the initial project code module depends; Input the initial project code module into a preset artificial intelligence model to obtain attribute fields output by the preset artificial intelligence model; the preset artificial intelligence model is constructed based on a deep neural network model; Add the attribute fields output by the preset artificial intelligence model to the preset configuration file; Upload the initial project code module to a code version management library and obtain the access address returned by the code version management library as the access address corresponding to the attribute fields; When a start instruction is received, display a workbench page. The workbench page includes at least one function button, and each function button displays one of the attribute fields; In response to a function button on the workbench page being triggered, determine the access address corresponding to the attribute field displayed in the function button; Download the initial project code module according to the access address and download the modules on which the initial project code module depends according to the module names in the preset configuration file of the initial project code module to obtain an initial project structure; Construct a target project based on the initial project structure.

2. The method according to claim 1, wherein The step of when a start instruction is received, display a workbench page, includes: When a start instruction for a plug-in installed in the predetermined code editor is received, display a workbench page.

3. The method according to claim 2, wherein Before the step of when a start instruction for a plug-in installed in the predetermined code editor is received, display a workbench page, the method further includes: Publish the plug-in to the official library of the predetermined code editor.

4. The method according to claim 1, wherein The function button is an item in a secondary menu. The workbench page further includes a primary menu above the secondary menu, and the fields displayed in the primary menu are used to describe the function type or the project style type.

5. The method according to claim 1, characterized in that The method further includes: According to a new instruction received for a function button on the workbench page, display a configuration entry for the function button; Obtain the attribute fields configured for the function button through the configuration entry and add the attribute fields to the preset configuration file of the target initial project code module to be associated; 6. The method according to claim 1, wherein The method further includes: According to an edit instruction received for the function button through the workbench page, make corresponding adjustments to the attribute field displayed in the function button in the preset configuration file.

7. A project construction device, characterized in that, The apparatus includes: A creation module configured to create an initial project code module based on a plug-in provided by a predetermined code editor. The initial project code module includes a preset configuration file, and the preset configuration file includes the module names on which the initial project code module depends; An adding module, configured to input the initial engineering code module into a preset artificial intelligence model to obtain attribute fields output by the preset artificial intelligence model; the preset artificial intelligence model is constructed based on a deep neural network model; add the attribute fields output by the preset artificial intelligence model to the preset configuration file; An uploading and obtaining module, configured to upload the initial engineering code module to a code version management library and obtain an access address returned by the code version management library as the access address corresponding to the attribute fields; A display module, configured to display a workbench page when receiving a start instruction, where the workbench page includes at least one function button, and each function button displays one of the attribute fields; An access address determining module, configured to determine an access address corresponding to the attribute field displayed in the function button in response to the function button on the workbench page being triggered; A downloading module, configured to download the initial engineering code module according to the access address and download the modules on which the initial engineering code module depends according to the module names in the preset configuration file of the initial engineering code module to obtain an initial project structure; A development module, configured to construct a target project based on the initial project structure.

8. A computer-readable program medium, characterized in that, It stores computer program instructions, which when executed by a computer, cause the computer to execute the method according to any one of claims 1 to 6.

9. An electronic device, characterized in that, The electronic device includes: A processor; A memory, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Target engineering compiling method, device and apparatus

    CN110377290A

  • Project engineering structure dynamic construction method and device, storage medium and electronic device

    CN113703754A