Development environment configuration method and device, electronic equipment and readable storage medium

CN115480819BActive Publication Date: 2026-11-03NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211243256.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-11
Publication Date
2026-11-03
Estimated Expiration
2042-10-11

AI Technical Summary

Technical Problem

Existing technologies require checking all data in the resource repository when configuring the development environment, resulting in low efficiency and large disk space consumption, making it difficult to meet the high-efficiency requirements of software development projects.

Method used

By displaying the root node and attribute nodes of the file tree on the configuration page, and responding to node configuration operations to obtain data lookup information, setting up connections between nodes based on hierarchical relationships, generating configuration files, and directly checking out the data required by the development environment, the system avoids checking out irrelevant data.

Benefits of technology

It improves the efficiency of configuring the development environment, reduces the time for detecting irrelevant data and disk space usage, and lowers the complexity of configuration and the probability of errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115480819B_ABST
    Figure CN115480819B_ABST
Patent Text Reader

Abstract

The application discloses a development environment configuration method and device, electronic equipment and a computer readable storage medium. According to the application, at least two nodes required for displaying a file tree of a development environment on a configuration page are set in response to a file tree node setting operation on the configuration page of the development environment; in response to a configuration operation on an attribute node, node information configured for the attribute node through the configuration operation is obtained, the node information comprising data search information of development environment resource data corresponding to the attribute node, the data search information being used to search for the development environment resource data corresponding to the attribute node from at least one resource warehouse; and in response to a hierarchical relationship setting instruction between nodes, a connection between a root node and the attribute node in the file tree is set based on a hierarchical relationship between the nodes indicated by the hierarchical relationship setting instruction, and the file tree comprising the nodes and the connection is used to generate a configuration file of the development environment. The application can improve the efficiency of configuring the development environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically to a development environment configuration method, apparatus, electronic device, and computer-readable storage medium. Background Technology

[0002] In the era of the internet, software development projects now require the configuration of development environments, and different software development projects need to use partial data from various resource repositories to configure the corresponding development environments.

[0003] In the existing development environment configuration process, it is necessary to directly retrieve all the data in the resource repository where the data required for configuring the development environment is located. This will undoubtedly take a lot of time to obtain a lot of data that is not related to configuring the development environment, resulting in low efficiency when configuring the development environment. Summary of the Invention

[0004] This application provides a development environment configuration method, apparatus, electronic device, and computer-readable storage medium, which can improve the efficiency of configuring a development environment.

[0005] In a first aspect, embodiments of this application provide a development environment configuration method, the method comprising:

[0006] In response to the file tree node setting operation on the configuration page of the development environment, at least two nodes required to display the file tree of the development environment on the configuration page are displayed, including a root node and at least one attribute node.

[0007] In response to the configuration operation of the above attribute node, obtain the node information configured for the above attribute node through the configuration operation. The node information includes data lookup information of the development environment resource data corresponding to the above attribute node. The data lookup information is used to find the development environment resource data corresponding to the above attribute node from at least one resource repository.

[0008] In response to the instruction to set the hierarchical relationship between the above nodes, based on the hierarchical relationship between the nodes indicated by the instruction, the connection between the root node and the attribute node in the above file tree is set, and the above file tree containing the nodes and the connection is used to generate the configuration file of the above development environment.

[0009] Secondly, embodiments of this application also provide a development environment configuration device, the device comprising:

[0010] The node setting module is used to respond to the file tree node setting operation on the configuration page of the development environment, and to display at least two nodes required for the file tree of the development environment on the configuration page, wherein the at least two nodes include a root node and at least one attribute node.

[0011] The node configuration module is used to respond to the configuration operation of the above-mentioned attribute node, obtain the node information configured for the above-mentioned attribute node through the configuration operation, the node information includes data lookup information of the development environment resource data corresponding to the above-mentioned attribute node, and the data lookup information is used to find the development environment resource data corresponding to the above-mentioned attribute node from at least one resource repository.

[0012] The hierarchy setting module is used to respond to the instruction to set the hierarchy relationship between the above nodes, and set the connection between the root node and the attribute node in the above file tree based on the hierarchy relationship between the nodes indicated by the instruction. The above file tree containing the nodes and the connection is used to generate the configuration file of the above development environment.

[0013] Thirdly, embodiments of this application also provide an electronic device, including a memory storing multiple instructions; the processor loads instructions from the memory to execute steps in any of the development environment configuration methods provided in embodiments of this application.

[0014] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute steps in any of the development environment configuration methods provided in embodiments of this application.

[0015] In this embodiment, in response to a file tree node setting operation on the configuration page of the development environment, at least two nodes required for the file tree of the development environment are displayed on the configuration page, so that the file tree of the development environment can be composed of the set nodes. These at least two nodes include a root node and at least one attribute node. Then, in response to a configuration operation on the attribute node, node information configured for the attribute node through the configuration operation is obtained. This node information includes data lookup information for the development environment resource data corresponding to the attribute node. This data lookup information is used to find the development environment resource data corresponding to the attribute node from at least one resource repository, thereby allowing the data stored in the folder corresponding to at least one attribute node that makes up the file tree to be obtained. Finally, in response to the instruction to set the hierarchical relationship between the aforementioned nodes, and based on the hierarchical relationship between the nodes indicated by the instruction, the connection between the root node and the attribute node in the aforementioned file tree is set. This file tree, which contains nodes and connections, is used to generate the configuration file for the aforementioned development environment. Thus, by setting nodes and connections between nodes, the file tree required for configuring the development environment is formed. That is, the data corresponding to each node in this file tree is the data required for configuring the development environment. In this way, the data required for configuring the development environment can be directly retrieved through this file tree, avoiding the retrieval of data unrelated to the development environment and the time spent on retrieving data unrelated to the development environment, thereby improving the efficiency of configuring the development environment. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram of the development environment configuration system provided in the embodiments of this application;

[0018] Figure 2 This is a schematic flowchart of one embodiment of the development environment configuration method provided in this application.

[0019] Figure 3 This is a schematic diagram of the configuration page during the file tree node setting operation provided in this application embodiment;

[0020] Figure 4a This is a first schematic diagram of the node configuration window provided in the embodiments of this application;

[0021] Figure 4b This is a second schematic diagram of the node configuration window provided in the embodiments of this application;

[0022] Figure 4c This is a schematic diagram of the configuration page after node configuration provided in the embodiments of this application;

[0023] Figure 5 This is a schematic diagram of a file tree containing nodes and connections provided in the embodiments of this application;

[0024] Figure 6 This is a schematic diagram of the directory tree provided in the embodiments of this application;

[0025] Figure 7 This is a schematic diagram of the development environment configuration device provided in the embodiments of this application;

[0026] Figure 8 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0027] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0028] Before providing a detailed explanation of the embodiments of this application, some terms involved in the embodiments of this application will be explained.

[0029] In the description of the embodiments of this application, the terms "first," "second," etc., may be used herein to describe various concepts, but unless specifically stated otherwise, these concepts are not limited by these terms. These terms are used only to distinguish one concept from another. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.

[0030] This application provides a development environment configuration method, apparatus, electronic device, and computer-readable storage medium. Specifically, the development environment configuration method of this application can be executed by an electronic device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0031] For example, such as Figure 1 As shown, the electronic device is illustrated using a terminal as an example. The terminal can, in response to a file tree node setting operation on the configuration page of the development environment, display at least two nodes required for the file tree of the development environment on the configuration page. These at least two nodes include a root node and at least one attribute node. In response to a configuration operation on the attribute node, it obtains node information configured for the attribute node through the configuration operation. This node information includes data lookup information for the development environment resource data corresponding to the attribute node. This data lookup information is used to find the development environment resource data corresponding to the attribute node from at least one resource repository. In response to a hierarchical relationship setting instruction between the nodes, based on the hierarchical relationship between the nodes indicated by the hierarchical relationship setting instruction, it sets a connection between the root node and the attribute node in the file tree. The file tree containing the nodes and connections is used to generate the configuration file for the development environment.

[0032] To address the aforementioned issues, this application provides a method, apparatus, electronic device, and computer-readable storage medium for creating emoji packs, which can improve efficiency when configuring a development environment.

[0033] The following is a detailed description in conjunction with the accompanying drawings. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments. Although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown in the drawings.

[0034] In this embodiment, a terminal is used as an example for illustration. This embodiment provides a development environment configuration method, such as... Figure 2As shown, the specific process for configuring this development environment can be as follows:

[0035] 201. In response to the file tree node setting operation on the configuration page of the development environment, display at least two nodes required for the file tree of the development environment on the configuration page, wherein the at least two nodes include a root node and at least one attribute node.

[0036] The file tree described above corresponds to the directory tree of the folders storing the data required for configuring the development environment. One node in this file tree is equivalent to a first-level folder within that directory tree. Therefore, when multiple nodes exist in the file tree, they form a multi-level directory structure. Correspondingly, the root node corresponds to the first-level folder in the directory tree, located at the first level. That is, the folder corresponding to this root node contains folders corresponding to other levels of the directory tree. Similarly, the attribute nodes correspond to other levels of the directory tree besides the first-level folders. The folder corresponding to this attribute node contains the data required for configuring the development environment.

[0037] In this embodiment, the terminal displays at least two nodes required to form the file tree of the development environment in response to the file tree node setting operation, so as to form the file tree of the development environment using at least two nodes.

[0038] Specifically, the configuration page mentioned above includes a node settings page, where relevant developers can perform file tree node settings operations so that the terminal can respond to the file tree node settings operations and display the corresponding nodes on the node settings page.

[0039] In some embodiments, file tree node setting operations include, but are not limited to, creating, deleting, or modifying operations. It is understood that the aforementioned creating operation can correspond to creating a new node in the configuration page, thereby displaying the newly created node on the configuration page; the aforementioned deleting operation can correspond to deleting at least one node in a preset template or existing node set on the configuration page, thereby displaying the deleted node on the configuration page; the aforementioned modifying operation can correspond to modifying at least one node in an existing template or existing node set on the configuration page, thereby displaying the modified node on the configuration page.

[0040] The aforementioned preset template is a template with a preset number of nodes that is pre-set on the terminal. The preset number of nodes can be set according to user needs. The aforementioned built nodes can be nodes that have already been set on the configuration page. These built nodes can be nodes that have already been configured or nodes that have been connected to other built nodes. When performing a new creation operation, the configuration page can contain built nodes.

[0041] Specifically, the at least two nodes required to display the file tree of the development environment on the configuration page in response to the file tree node setting operation of the development environment can include:

[0042] In response to the operation of obtaining the file tree node template on the configuration page of the development environment, the file tree node template is displayed on the configuration page; in response to the operation of modifying or deleting nodes in the file tree node template, the nodes in the file tree node template are modified or deleted, and at least two modified or deleted nodes of the file tree of the development environment are displayed on the configuration page.

[0043] Specifically, the at least two nodes required to display the file tree of the development environment on the configuration page in response to the file tree node setting operation of the development environment can include:

[0044] In response to node modification or deletion operations on the configuration page of the development environment, the nodes in the file tree node template are modified or deleted, and at least two modified or deleted nodes of the file tree of the development environment are displayed on the configuration page.

[0045] Specifically, the at least two nodes required to display the file tree of the development environment on the configuration page in response to the file tree node setting operation of the development environment can include:

[0046] When a node does not exist on the development environment's configuration page, in response to a node creation operation on the development environment's configuration page, the newly created root node is displayed on the aforementioned configuration page. When at least one node exists on the development environment's configuration page, in response to a node creation operation on the development environment's configuration page, the newly created node is displayed on the aforementioned configuration page, such as... Figure 3 As shown, Figure 3 The `infos` node in the current context represents the node created by the current creation operation. Figure 3 There are also nodes that have already been built.

[0047] Understandably, in this example, since a root node is required in the file tree, if no node exists on the configuration page, the first newly created node will be the root node; if a node exists on the configuration page, subsequent newly created nodes can be attribute nodes.

[0048] In some embodiments, for ease of user operation and viewing, the above-mentioned nodes may further include ordinary nodes. The ordinary node corresponds to the other level folder directories in the directory tree except for the first-level folder directory, and is located at the level above at least one attribute node. The ordinary node is a node that cannot be configured with the above-mentioned data search information. That is, the data required to configure the development environment cannot be found through the ordinary node. Therefore, the folder corresponding to the ordinary node can only save the folder corresponding to the attribute node.

[0049] Specifically, the at least two nodes required to display the file tree of the development environment on the configuration page in response to the file tree node setting operation of the development environment can include:

[0050] In response to the setting operation of the file tree root node on the configuration page of the development environment, the root node required for the file tree of the development environment is displayed on the configuration page.

[0051] In response to the node creation operation on the above configuration page, a node selection window is displayed, which includes ordinary node controls and attribute node controls;

[0052] In response to the selection operation of the above-mentioned ordinary node control or the above-mentioned attribute node control, the ordinary node or attribute node is displayed on the above-mentioned configuration page.

[0053] The above-mentioned ordinary node control is used to generate ordinary nodes, and the above-mentioned attribute node control is used to generate attribute nodes.

[0054] 202. In response to the configuration operation of the above attribute node, obtain the node information configured for the above attribute node through the configuration operation, the node information including data lookup information of the development environment resource data corresponding to the above attribute node, the data lookup information being used to find the development environment resource data corresponding to the above attribute node from at least one resource repository.

[0055] The node information mentioned above refers to the information corresponding to the node, which includes, but is not limited to, node identifiers and data lookup information. The node identifier is used to identify the attribute node and can be matched with the name of the corresponding folder directory in the directory tree. For example, if the node identifier of this node is the same as the name of the folder directory at the corresponding location in the directory tree, then the node identifier of this node is the name of the resource folder under that folder directory. Through this data lookup information, the development environment resource data corresponding to this node can be obtained. This development environment resource data is the data required to configure the development environment.

[0056] The aforementioned resource repositories are repositories for storing development environment resource data required for configuring the development environment, such as art resource repositories, script code source code repositories, game engine source code repositories, pre-compiled binary code repositories corresponding to script source code, and pre-compiled binary code repositories corresponding to engine source code, etc.

[0057] The above configuration operation can be a configuration information input operation, which can be inputting the corresponding node information; the above configuration operation can also be a configuration selection operation, which can be selecting the corresponding node information.

[0058] Understandably, existing technologies require directly retrieving all data from the resource repository containing the data needed to configure the development environment. However, in large software development projects, such as large-scale game development projects, the required art resources are enormous. Directly retrieving all data from the resource repository would take a long time and consume a large amount of disk space, which is not conducive to cost reduction and efficiency improvement. In this embodiment, the terminal, in response to the configuration operation of the aforementioned attribute nodes, can configure node information that meets specific conditions for at least two nodes required to form the file tree. This allows the development environment resource data required for configuring the development environment to be obtained through the node information of each node in the file tree when configuring the development environment, without retrieving development environment resource data unrelated to the configuration. The aforementioned specific conditions include, but are not limited to, the conditions corresponding to the development environment required by the software development project and the user permissions of the user currently performing the configuration operation. For example, some developers only have permissions to compile binary directories, so they can only configure data lookup information for nodes to retrieve development environment resource data related to binary directories.

[0059] In some embodiments, the data lookup information includes the repository identifier of the resource repository to which the development environment resource data corresponding to the attribute node belongs, and the address of the development environment resource data corresponding to the attribute node in the resource repository. The repository identifier can be the repository type, such as git or svn; the address can be presented as a link, text, etc., depending on user needs.

[0060] In some embodiments, when the node also includes a regular node, in response to the configuration operation on the regular node, the node information configured for the regular node through the configuration operation is obtained, and the node information of the regular node includes the node identifier corresponding to the regular node.

[0061] In some embodiments, node configuration operations can be performed by displaying a node configuration window, such as... Figure 4a As shown, Figure 4aThe node configuration window in the system is the node configuration window of the node infos. The terminal can display the node configuration window of a certain node by triggering it, and the terminal can also display the node configuration window of the node while setting the node.

[0062] Specifically, the above-mentioned response to the configuration operation on the attribute node, obtaining the node information configured for the attribute node through the configuration operation, may include: the terminal responding to the configuration trigger operation on the attribute node by displaying the node configuration window of the attribute node, the node configuration window including a search information input control, i.e. Figure 4a The terminal receives the address input control and the warehouse identifier input control; in response to the configuration information input operation of the above-mentioned search information input control and the configuration information input operation of the node identifier control, the terminal obtains the node information of the above-mentioned attribute node, thereby realizing the configuration of node information for the attribute node infos.

[0063] Specifically, the above-mentioned response to the configuration operation on the attribute node, obtaining the node information configured for the attribute node through the configuration operation, may include: the terminal responding to the configuration trigger operation on the attribute node by displaying the node configuration window of the attribute node, the node configuration window including a search information selection control, i.e. Figure 4a The terminal receives the address selection control and the warehouse identifier selection control; in response to the configuration selection operation of the address selection control and the warehouse identifier selection control, and in response to the configuration selection operation of the node identifier control, it obtains the node information of the attribute node, thereby realizing the configuration of node information for the attribute node infos.

[0064] For example, such as Figure 4b As shown, the node identifier for the attribute node `infos` is `infos`, the address is `xxx`, and the repository identifier is `git`. After configuring the node information for the attribute node, in... Figure 4c The diagram shows the configured attribute node infos on the configuration page. In addition to displaying the node identifier, the attribute node infos can also display the repository identifier, so as to intuitively view the resource repository to which the development environment resource data corresponding to the node belongs.

[0065] Optionally, the node configuration window may also include a confirmation control. After the node configuration window is configured, the node information of the attribute node can be configured by controlling the confirmation control.

[0066] In some embodiments, when setting file tree nodes on the configuration page of the development environment, the configuration page can display the nodes required for the file tree of the development environment, and at the same time, display the node configuration window corresponding to the node, so as to configure the node information of the corresponding node in the node configuration window in a timely manner, thereby improving the configuration experience of developers.

[0067] Specifically, while displaying the attribute node on the configuration page, a node configuration window corresponding to the attribute node is also displayed. The node configuration window includes a search information input control. The above-mentioned response to the configuration operation of the attribute node, obtaining the node information configured for the attribute node through the configuration operation, includes: responding to the configuration information input operation of the search information input control, obtaining the node information of the attribute node.

[0068] Specifically, it also includes displaying a node configuration window corresponding to the ordinary node while displaying the ordinary node on the configuration page. The node configuration window includes a node identifier control, and in response to the input operation of configuration information on the node identifier control, the node information of the ordinary node is obtained.

[0069] 203. In response to the instruction to set the hierarchical relationship between the above nodes, based on the hierarchical relationship between the nodes indicated by the instruction to set the hierarchical relationship, set the connection between the root node and the attribute node in the above file tree, and the above file tree containing the nodes and the connection is used to generate the configuration file of the above development environment.

[0070] The terminal can set the hierarchical relationship between nodes as indicated in the hierarchical relationship setting instruction. This hierarchical relationship between nodes is equivalent to the relationship between multi-level folder directories in a directory tree. The hierarchical relationship between nodes is expressed by setting the connection between nodes in the file tree.

[0071] Specifically, the connections between the nodes mentioned above can be between the root node and attribute nodes, between attribute nodes, between attribute nodes and ordinary nodes, or between the root node and ordinary nodes. For example... Figure 3 The existing Game and Script nodes in the game are connected via connections established using previously issued hierarchical relationship settings. While establishing connections between adjacent nodes by setting the hierarchical relationship, the direction of the connection can also be set according to the hierarchy, i.e., a higher-level node points to a lower-level node. For example... Figure 3 The connections between the built Game nodes and the built Scripts nodes, and the direction of the connections.

[0072] In some embodiments, the terminal can generate the hierarchical relationship setting instruction by inputting information. For example, displaying a sub-node input window for a node on the configuration page, and obtaining the sub-node of the node from this window to generate the hierarchical relationship setting instruction. The terminal can also generate the hierarchical relationship setting instruction by connecting nodes. For example, obtaining the connection information between two nodes on the configuration page and generating the hierarchical relationship setting instruction based on this connection information. Alternatively, the terminal can generate the hierarchical relationship setting instruction by dragging and dropping nodes. For example, dragging a node onto a target node identifies that node as a sub-node of the target node, thereby generating the corresponding hierarchical relationship setting instruction.

[0073] The aforementioned development environment configuration file is generated to obtain the development environment resource data required for configuring the development environment. This configuration file includes, but is not limited to, the nodes in the file tree, the node information of each node, and the hierarchical relationship between each node. Thus, by running this configuration file when configuring the development environment, the development environment resource data required for configuring the development environment can be obtained.

[0074] Understandably, configuring a development environment involves various types of resource repositories, each managing multiple versions. Furthermore, configuring internal servers, external servers, and compilation / packaging environments must be considered, leading to significant complexity. In this embodiment, a file tree is constructed using connections between nodes to configure the development environment. Each node in this file tree corresponds to the data required for configuration. This allows for direct retrieval of necessary data, avoiding the time wasted on retrieving irrelevant data, thus improving efficiency and reducing configuration errors due to environment complexity, ultimately minimizing troubleshooting time.

[0075] For example, such as Figure 5 As shown, in response to the instruction to set the hierarchical relationship between the attribute node infos and the attribute node Scripts, the connection between the attribute node infos and the attribute node Scripts in the above file tree is set based on the hierarchical relationship set by the instruction.

[0076] In some embodiments, in order to generate a directory tree corresponding to the file tree in real time during the process of configuring and connecting the nodes of the file tree in the development environment, so as to check in real time whether the directory structure of the directory tree corresponding to the file tree is correct, and thus be able to detect problems in the directory structure in time.

[0077] Specifically, based on the node identifiers of each node in the above file tree and the hierarchical relationship between nodes, the directory tree corresponding to the above file tree is displayed on the above configuration page. The directory tree includes folder directories corresponding to each node, the hierarchical relationship between the folder directories matches the hierarchical relationship between nodes, and the name of the folder directory matches the node identifier of the corresponding node.

[0078] The configuration page also includes a directory tree display window, which displays the directory tree corresponding to the file tree in real time, such as... Figure 6 As shown.

[0079] In some embodiments, displaying the directory tree corresponding to the file tree on the configuration page based on the node identifiers of each node in the file tree and the hierarchical relationship between nodes may include: traversing from the root node along the lines in the file tree, that is, traversing each node in the file tree sequentially along the direction of the lines in the file tree; when traversing each node, generating a folder directory in the directory tree according to the node identifier of each node, connecting the generated folder directory to its parent folder directory, and the node corresponding to the generated folder directory being the lower node of the node corresponding to its parent folder directory.

[0080] For example, such as Figure 6 As shown, if the attribute node Scripts is reached, a folder directory Scripts is generated in the directory tree based on the node identifier Scripts of the attribute node Scripts. This folder directory Scripts is then connected to its parent folder directory Game. The node Scripts corresponding to this folder directory Scripts is a lower node of the node Game corresponding to its parent folder directory Game.

[0081] In some embodiments, after setting up the file tree containing nodes and connections, the process may further include: generating a configuration file for the development environment based on the file tree containing nodes and connections. By running the configuration file, the corresponding development environment resource data is retrieved from each resource repository based on the data lookup information of each attribute node in the configuration file. Since the node identifier of each attribute node matches the name of the folder directory, the development environment resource data of each attribute node can be stored in the resource folder of the folder directory corresponding to each attribute node based on the node identifier of each attribute node in the configuration file. This allows relevant developers to accurately find the corresponding development environment resource data when configuring the development environment, thereby improving the configuration efficiency of relevant developers when configuring the development environment.

[0082] The terminal can pre-set a script, which runs the above configuration file to search for information based on the data of each attribute node in the configuration file and obtain the corresponding development environment resource data from each resource repository.

[0083] In some embodiments, when checking out the data required for configuring the development environment, data from different types of repositories may be nested together. If data from different types of repositories is nested together when facing data updates, it can easily lead to project errors. Therefore, when facing update commands, a corresponding update script is generated. The update script can run the configuration file generated by the file tree to obtain the latest development environment resource data corresponding to each attribute node from each resource repository. Based on the latest development environment resource data of each attribute node, the development environment resource data under the resource folder of the folder directory corresponding to each attribute node is updated to the latest development environment resource data.

[0084] In some embodiments, if a developer needs to set up a new server for the development environment, the developer can receive a server opening instruction from the relevant developer, generate a server opening script based on the server opening instruction, run the configuration file generated by the file tree through the server opening script, thereby obtaining the development environment resource data corresponding to each attribute node from each resource repository, and storing the development environment resource data of each attribute node in the resource folder of the folder directory corresponding to each attribute node in the newly established server.

[0085] In some embodiments, the configuration page further includes at least one control for easy configuration, such as a clear screen control, which allows deletion of nodes set on the current configuration page by responding to a click operation on the clear screen control of the configuration page; another example is a file generation control, which allows generating the configuration file of the development environment based on a file tree containing nodes and connections, by responding to a click operation on the file generation control of the configuration page; yet another example is a confirmation control, which, in order to prevent errors in issuing hierarchical relationship setting instructions, allows setting the connection between the root node and the attribute node in the file tree by responding to a click operation on the confirmation control of the configuration page.

[0086] In some embodiments, since developers with different roles have different management permissions for the repository during the configuration of the development environment, it is usually necessary to develop multiple development environments with different permissions for a software project, such as a game project, so that developers with different permissions can use it. In order to reduce the number of times development environments with the same permissions are configured, developers with the same permissions can share the access rights to the file tree corresponding to that permission.

[0087] Specifically, in response to the permission sharing instruction for the file tree of the aforementioned development environment, the target user for sharing the aforementioned file tree is determined; and the usage permissions for sharing the aforementioned file tree are configured for the aforementioned target user.

[0088] Furthermore, the terminal can further configure usage permissions, such as view permissions, modify permissions, and share permissions, thereby configuring different usage permissions for developers with different needs for the same function. Moreover, based on the settings of these usage permissions, they can be used when configuring development environments for different projects.

[0089] In some embodiments, user login information is obtained between operations on setting file tree nodes on the configuration page of the development environment, so as to display the corresponding configuration page based on the user login information, thereby associating the permissions corresponding to the user login information with the file tree configured on the configuration page. The aforementioned user login information includes, but is not limited to, user attribute information and user job information, with user job information including, but not limited to, planning, programming, QA, and art roles.

[0090] It is understandable that by defining the permissions corresponding to the user's login information as the target user's permissions, other users with the same permissions as the target user are defined as the aforementioned target user.

[0091] In some embodiments, when retrieving development environment resource data corresponding to each attribute node from each resource repository, it is necessary to obtain permission from the user currently retrieving the data. If the user cannot obtain the development environment resource data, an alarm is triggered. The alarm can be triggered at the corresponding location in the directory tree.

[0092] As can be seen from the above, in response to the file tree node setting operation on the configuration page of the development environment, at least two nodes required for the file tree of the development environment are displayed on the configuration page, so that the file tree of the development environment can be composed of the set nodes. These at least two nodes include a root node and at least one attribute node. Then, in response to the configuration operation of the attribute node, the node information configured for the attribute node through the configuration operation is obtained. The node information includes data lookup information for the development environment resource data corresponding to the attribute node. This data lookup information is used to find the development environment resource data corresponding to the attribute node from at least one resource repository. Therefore, the data stored in the folder corresponding to at least one attribute node that makes up the file tree can be obtained through this data lookup information. Finally, in response to the instruction to set the hierarchical relationship between the aforementioned nodes, and based on the hierarchical relationship between the nodes indicated by the instruction, the connection between the root node and the attribute node in the aforementioned file tree is set. This file tree, which contains nodes and connections, is used to generate the configuration file for the aforementioned development environment. Thus, by setting nodes and connections between nodes, the file tree required for configuring the development environment is formed. That is, the data corresponding to each node in this file tree is the data required for configuring the development environment. In this way, the data required for configuring the development environment can be directly retrieved through this file tree, avoiding the retrieval of data unrelated to the development environment and the time spent on retrieving data unrelated to the development environment, thereby improving the efficiency of configuring the development environment.

[0093] To better implement the above methods, this application also provides a development environment configuration device, which can be integrated into an electronic device, such as a computer device, which can be a terminal, server or other device.

[0094] The terminal can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers.

[0095] For example, in this embodiment, the method of this application embodiment will be described in detail by taking the development environment configuration device specifically integrated into the terminal as an example. This embodiment provides a development environment configuration device, such as... Figure 7 As shown, the development environment configuration device may include:

[0096] The node setting module 701 is used to respond to the file tree node setting operation of the configuration page of the development environment, and to display at least two nodes required for the file tree of the development environment on the configuration page, wherein the at least two nodes include a root node and at least one attribute node.

[0097] The node configuration module 702 is used to respond to the configuration operation of the above-mentioned attribute node, and obtain the node information configured for the above-mentioned attribute node through the configuration operation. The node information includes data lookup information of the development environment resource data corresponding to the above-mentioned attribute node. The data lookup information is used to find the development environment resource data corresponding to the above-mentioned attribute node from at least one resource repository.

[0098] The hierarchy setting module 703 is used to respond to the instruction to set the hierarchy relationship between the nodes, and set the connection between the root node and the attribute node in the file tree based on the hierarchy relationship between the nodes indicated by the instruction. The file tree containing the nodes and the connection is used to generate the configuration file of the development environment.

[0099] In some embodiments, the node configuration module 702 is specifically used for:

[0100] In response to the configuration trigger operation of the above attribute node, the node configuration window of the above attribute node is displayed, and the node configuration window includes a search information input control;

[0101] In response to the configuration information input operation of the above-mentioned search information input control, the node information of the above-mentioned attribute node is obtained.

[0102] In some embodiments, the node setting module 701 is specifically used for:

[0103] In response to the setting operation of the file tree root node on the configuration page of the development environment, the root node required for the file tree of the development environment is displayed on the configuration page.

[0104] In response to the node creation operation on the above configuration page, a node selection window is displayed. The node selection window includes ordinary node controls and attribute node controls. Ordinary nodes are located one level above at least one attribute node. The ordinary nodes are nodes that cannot be configured with the above data lookup information.

[0105] In response to the selection operation of the above-mentioned ordinary node control or the above-mentioned attribute node control, the ordinary node or attribute node is displayed on the above-mentioned configuration page.

[0106] In some embodiments, while displaying the attribute nodes on the configuration page, a node configuration window corresponding to the attribute nodes is also displayed, and the node configuration window includes a search information input control; the node configuration module 702 is specifically used for:

[0107] In response to the configuration information input operation of the above-mentioned search information input control, the node information of the above-mentioned attribute node is obtained.

[0108] In some embodiments, the above-described development environment configuration apparatus further includes an instruction response module and a permission configuration module;

[0109] The aforementioned instruction response module is used to respond to the instruction on sharing permissions for the file tree of the aforementioned development environment and to determine the target user for sharing the aforementioned file tree;

[0110] The aforementioned permission configuration module is used to configure the aforementioned target users' access permissions to share the aforementioned file tree.

[0111] In some embodiments, the node information may further include the node identifier of the attribute node, and the development environment configuration device may further include a display module;

[0112] The aforementioned display module is used to display the directory tree corresponding to the aforementioned file tree on the aforementioned configuration page based on the node identifiers of each node in the aforementioned file tree and the hierarchical relationship between the nodes. The aforementioned directory tree includes folder directories corresponding to each node, the hierarchical relationship between the aforementioned folder directories matches the hierarchical relationship between the nodes, and the name of the folder directory matches the node identifier of the corresponding node.

[0113] In some embodiments, the display module is specifically used for:

[0114] Traverse the file tree from the root node mentioned above along the connecting lines;

[0115] When traversing each node, a folder directory is generated in the directory tree based on the node identifier of each node. The generated folder target is linked to its parent folder directory. The node corresponding to the generated folder directory is the lower node of the node corresponding to its parent folder directory.

[0116] In some embodiments, the above-described development environment configuration apparatus further includes a file generation module, a file execution module, and a storage module;

[0117] The aforementioned file generation module is used to generate the configuration file for the aforementioned development environment based on a file tree containing nodes and connections.

[0118] The above-mentioned file execution module is used to run the above-mentioned configuration file, search for information based on the data of each attribute node in the above-mentioned configuration file, and obtain the corresponding development environment resource data;

[0119] The aforementioned storage module is used to store the development environment resource data of each attribute node in the resource folder of the folder directory corresponding to each attribute node, based on the node identifier of each attribute node in the aforementioned configuration file.

[0120] In some embodiments, the data lookup information includes the repository identifier of the resource repository to which the development environment resource data corresponding to the attribute node belongs, and the address of the development environment resource data corresponding to the attribute node in the resource repository.

[0121] As described above, the development environment configuration device of this embodiment, through the node setting module 701, responds to the file tree node setting operation on the configuration page of the development environment, displaying at least two nodes required for the file tree of the development environment on the configuration page, so as to form the file tree of the development environment through the set nodes. The at least two nodes include a root node and at least one attribute node. Then, through the node configuration module 702, in response to the configuration operation of the attribute node, it obtains the node information configured for the attribute node through the configuration operation. The node information includes data lookup information of the development environment resource data corresponding to the attribute node. The data lookup information is used to find the development environment resource data corresponding to the attribute node from at least one resource repository, so that the data stored in the folder corresponding to at least one attribute node that makes up the file tree can be obtained through the data lookup information. Finally, the hierarchy setting module 703 responds to the instruction to set the hierarchy relationship between the nodes and sets the connection between the root node and the attribute node in the file tree based on the hierarchy relationship indicated by the instruction. The file tree containing the nodes and the connection is used to generate the configuration file of the development environment. By setting the nodes and the connection between the nodes, the file tree required to configure the development environment is formed. That is, the data corresponding to each node in the file tree is the data required to configure the development environment. Thus, the data required to configure the development environment can be directly retrieved through the file tree, avoiding the time spent retrieving data that is not related to the development environment and improving the efficiency of configuring the development environment.

[0122] Accordingly, this application also provides an electronic device, which can be a terminal, such as a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. Figure 8 As shown, Figure 8This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 800 includes a processor 801 with one or more processing cores, a memory 802 with one or more computer-readable storage media, and a computer program stored on the memory 802 and executable on the processor. The processor 801 and the memory 802 are electrically connected. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0123] The processor 801 is the control center of the electronic device 800. It connects various parts of the electronic device 800 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 802, and calling data stored in the memory 802, it executes various functions of the electronic device 800 and processes data, thereby performing overall monitoring of the electronic device 800.

[0124] In this embodiment, the processor 801 in the electronic device 800 loads the instructions corresponding to the processes of one or more applications into the memory 802 according to the following steps, and the processor 801 runs the applications stored in the memory 802 to realize various functions:

[0125] In response to the file tree node setting operation on the configuration page of the development environment, at least two nodes required to display the file tree of the development environment on the configuration page are displayed, including a root node and at least one attribute node.

[0126] In response to the configuration operation of the above attribute node, obtain the node information configured for the above attribute node through the configuration operation. The node information includes data lookup information of the development environment resource data corresponding to the above attribute node. The data lookup information is used to find the development environment resource data corresponding to the above attribute node from at least one resource repository.

[0127] In response to the instruction to set the hierarchical relationship between the above nodes, based on the hierarchical relationship between the nodes indicated by the instruction, the connection between the root node and the attribute node in the above file tree is set, and the above file tree containing the nodes and the connection is used to generate the configuration file of the above development environment.

[0128] In some embodiments, the above-mentioned response to the configuration operation on the attribute node, obtaining the node information configured for the attribute node through the configuration operation, includes:

[0129] In response to the configuration trigger operation of the above attribute node, the node configuration window of the above attribute node is displayed, and the node configuration window includes a search information input control;

[0130] In response to the configuration information input operation of the above-mentioned search information input control, the node information of the above-mentioned attribute node is obtained.

[0131] In some embodiments, the at least two nodes required to display the file tree of the development environment on the configuration page in response to the file tree node setting operation of the development environment configuration page include:

[0132] In response to the setting operation of the file tree root node on the configuration page of the development environment, the root node required for the file tree of the development environment is displayed on the configuration page.

[0133] In response to the node creation operation on the above configuration page, a node selection window is displayed. The node selection window includes ordinary node controls and attribute node controls. Ordinary nodes are located one level above at least one attribute node. The ordinary nodes are nodes that cannot be configured with the above data lookup information.

[0134] In response to the selection operation of the above-mentioned ordinary node control or the above-mentioned attribute node control, the ordinary node or attribute node is displayed on the above-mentioned configuration page.

[0135] In some embodiments, while displaying the attribute node on the configuration page, a node configuration window corresponding to the attribute node is also displayed, and the node configuration window includes a search information input control.

[0136] In response to the configuration operation on the aforementioned attribute node, obtaining the node information configured for the aforementioned attribute node through the configuration operation includes:

[0137] In response to the configuration information input operation of the above-mentioned search information input control, the node information of the above-mentioned attribute node is obtained.

[0138] In some embodiments, it also includes:

[0139] In response to the permission sharing instruction for the file tree of the aforementioned development environment, determine the target user for sharing the aforementioned file tree;

[0140] Configure the aforementioned target users with permissions to share the aforementioned file tree.

[0141] In some embodiments, the node information above also includes the node identifier of the attribute node, and further includes:

[0142] Based on the node identifiers of each node in the above file tree and the hierarchical relationship between nodes, the directory tree corresponding to the above file tree is displayed on the above configuration page. The directory tree includes folder directories corresponding to each node. The hierarchical relationship between the folder directories matches the hierarchical relationship between nodes, and the name of the folder directory matches the node identifier of the corresponding node.

[0143] In some embodiments, the above-mentioned display of the directory tree corresponding to the file tree on the configuration page based on the node identifiers of each node in the file tree and the hierarchical relationship between nodes includes:

[0144] Traverse the file tree from the root node mentioned above along the connecting lines;

[0145] When traversing each node, a folder directory is generated in the directory tree based on the node identifier of each node. The generated folder target is linked to its parent folder directory. The node corresponding to the generated folder directory is the lower node of the node corresponding to its parent folder directory.

[0146] In some embodiments, it also includes:

[0147] Based on the file tree containing nodes and connections, generate the configuration file for the above development environment;

[0148] Run the above configuration file, and search for information based on the data in each attribute node of the configuration file to obtain the corresponding development environment resource data;

[0149] Based on the node identifiers of each attribute node in the above configuration file, the development environment resource data of each attribute node is stored in the resource folder of the folder directory corresponding to each attribute node.

[0150] In some embodiments, the data lookup information includes the repository identifier of the resource repository to which the development environment resource data corresponding to the attribute node belongs, and the address of the development environment resource data corresponding to the attribute node in the resource repository.

[0151] Therefore, the electronic device 800 provided in this embodiment can bring the following technical effects: improve the efficiency of configuring the development environment.

[0152] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0153] Optional, such as Figure 8As shown, the electronic device 800 also includes: a touch display screen 803, a radio frequency circuit 804, an audio circuit 805, an input unit 806, and a power supply 807. The processor 801 is electrically connected to the touch display screen 803, the radio frequency circuit 804, the audio circuit 805, the input unit 806, and the power supply 807. Those skilled in the art will understand that... Figure 8 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0154] The touch display screen 803 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 803 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 801. It can also receive and execute commands from the processor 801. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 801 to determine the type of touch event. Subsequently, the processor 801 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 803 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 803 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 803 can also be used as part of the input unit 806 to achieve input functions.

[0155] The radio frequency circuit 804 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices, and to transmit and receive signals with network devices or other electronic devices.

[0156] Audio circuit 805 can be used to provide an audio interface between a user and an electronic device via a speaker and a microphone. Audio circuit 805 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 805, converted back into audio data, and then processed by processor 801 before being transmitted via radio frequency circuit 804 to, for example, another electronic device, or output to memory 802 for further processing. Audio circuit 805 may also include an earphone jack to provide communication between peripheral headphones and electronic devices.

[0157] The input unit 806 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0158] Power supply 807 is used to supply power to various components of electronic device 800. Optionally, power supply 807 can be logically connected to processor 801 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 807 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0159] although Figure 8 As not shown in the diagram, the electronic device 800 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.

[0160] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0161] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0162] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute steps in any of the development environment configuration methods provided in embodiments of this application. For example, the computer program can execute the following steps:

[0163] In response to the file tree node setting operation on the configuration page of the development environment, at least two nodes required to display the file tree of the development environment on the configuration page are displayed, including a root node and at least one attribute node.

[0164] In response to the configuration operation of the above attribute node, obtain the node information configured for the above attribute node through the configuration operation. The node information includes data lookup information of the development environment resource data corresponding to the above attribute node. The data lookup information is used to find the development environment resource data corresponding to the above attribute node from at least one resource repository.

[0165] In response to the instruction to set the hierarchical relationship between the above nodes, based on the hierarchical relationship between the nodes indicated by the instruction, the connection between the root node and the attribute node in the above file tree is set, and the above file tree containing the nodes and the connection is used to generate the configuration file of the above development environment.

[0166] In some embodiments, the above-mentioned response to the configuration operation on the attribute node, obtaining the node information configured for the attribute node through the configuration operation, includes:

[0167] In response to the configuration trigger operation of the above attribute node, the node configuration window of the above attribute node is displayed, and the node configuration window includes a search information input control;

[0168] In response to the configuration information input operation of the above-mentioned search information input control, the node information of the above-mentioned attribute node is obtained.

[0169] In some embodiments, the at least two nodes required to display the file tree of the development environment on the configuration page in response to the file tree node setting operation of the development environment configuration page include:

[0170] In response to the setting operation of the file tree root node on the configuration page of the development environment, the root node required for the file tree of the development environment is displayed on the configuration page.

[0171] In response to the node creation operation on the above configuration page, a node selection window is displayed. The node selection window includes ordinary node controls and attribute node controls. Ordinary nodes are located one level above at least one attribute node. The ordinary nodes are nodes that cannot be configured with the above data lookup information.

[0172] In response to the selection operation of the above-mentioned ordinary node control or the above-mentioned attribute node control, the ordinary node or attribute node is displayed on the above-mentioned configuration page.

[0173] In some embodiments, while displaying the attribute node on the configuration page, a node configuration window corresponding to the attribute node is also displayed, and the node configuration window includes a search information input control.

[0174] In response to the configuration operation on the aforementioned attribute node, obtaining the node information configured for the aforementioned attribute node through the configuration operation includes:

[0175] In response to the configuration information input operation of the above-mentioned search information input control, the node information of the above-mentioned attribute node is obtained.

[0176] In some embodiments, it also includes:

[0177] In response to the permission sharing instruction for the file tree of the aforementioned development environment, determine the target user for sharing the aforementioned file tree;

[0178] Configure the aforementioned target users with permissions to share the aforementioned file tree.

[0179] In some embodiments, the node information above also includes the node identifier of the attribute node, and further includes:

[0180] Based on the node identifiers of each node in the above file tree and the hierarchical relationship between nodes, the directory tree corresponding to the above file tree is displayed on the above configuration page. The directory tree includes folder directories corresponding to each node. The hierarchical relationship between the folder directories matches the hierarchical relationship between nodes, and the name of the folder directory matches the node identifier of the corresponding node.

[0181] In some embodiments, the above-mentioned display of the directory tree corresponding to the file tree on the configuration page based on the node identifiers of each node in the file tree and the hierarchical relationship between nodes includes:

[0182] Traverse the file tree from the root node mentioned above along the connecting lines;

[0183] When traversing each node, a folder directory is generated in the directory tree based on the node identifier of each node. The generated folder directory is then linked to its parent folder directory. The node corresponding to the generated folder directory is the lower node of the node corresponding to its parent folder directory.

[0184] In some embodiments, it also includes:

[0185] Based on the file tree containing nodes and connections, generate the configuration file for the above development environment;

[0186] Run the above configuration file, and search for information based on the data in each attribute node of the configuration file to obtain the corresponding development environment resource data;

[0187] Based on the node identifiers of each attribute node in the above configuration file, the development environment resource data of each attribute node is stored in the resource folder of the folder directory corresponding to each attribute node.

[0188] In some embodiments, the data lookup information includes the repository identifier of the resource repository to which the development environment resource data corresponding to the attribute node belongs, and the address of the development environment resource data corresponding to the attribute node in the resource repository.

[0189] As can be seen, the computer program can be loaded by the processor to execute the steps in any of the development environment configuration methods provided in the embodiments of this application, thereby bringing about the following technical effects: improving the efficiency of configuring the development environment.

[0190] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0191] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0192] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the development environment configuration methods provided in the embodiments of this application, the beneficial effects that any of the development environment configuration methods provided in the embodiments of this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0193] The above provides a detailed description of a development environment configuration method, apparatus, electronic device, and computer-readable storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for configuring a development environment, characterized in that, The method includes: In response to a file tree node setting operation on the configuration page of the development environment, at least two nodes required to display the file tree of the development environment are displayed on the configuration page, the at least two nodes including a root node and at least one attribute node; In response to the configuration operation of the attribute node, obtain the node information configured for the attribute node through the configuration operation, the node information including data lookup information of the development environment resource data corresponding to the attribute node, the data lookup information being used to find the development environment resource data corresponding to the attribute node from at least one resource repository; In response to the instruction to set the hierarchical relationship between the nodes, based on the hierarchical relationship between the nodes indicated by the instruction, the connection between the root node and the attribute node in the file tree is set, and the file tree containing the nodes and the connection is used to generate the configuration file of the development environment; The requirement to display at least two nodes necessary for the file tree of the development environment on the configuration page in response to a file tree node setting operation on the configuration page includes: In response to the operation of setting the root node of the file tree on the configuration page of the development environment, the root node required for the file tree of the development environment is displayed on the configuration page; In response to a node creation operation on the configuration page, a node selection window is displayed. The node selection window includes a regular node control and an attribute node control. The regular node is located one level above at least one attribute node. The regular node is a node that cannot be configured with the data lookup information. In response to a selection operation on the ordinary node control or the attribute node control, the ordinary node or attribute node is displayed on the configuration page.

2. The development environment configuration method as described in claim 1, characterized in that, The step of obtaining node information configured for the attribute node through the configuration operation in response to the configuration operation includes: In response to a configuration trigger operation on the attribute node, a node configuration window for the attribute node is displayed, the node configuration window including a search information input control; In response to the input operation of configuration information on the search information input control, the node information of the attribute node is obtained.

3. The development environment configuration method as described in claim 1, characterized in that, While displaying the attribute node on the configuration page, the corresponding node configuration window is also displayed. The node configuration window includes a search information input control. The step of obtaining node information configured for the attribute node through the configuration operation in response to the configuration operation includes: In response to the input operation of configuration information on the search information input control, the node information of the attribute node is obtained.

4. The development environment configuration method as described in claim 1, characterized in that, Also includes: In response to a permission sharing instruction for the file tree of the development environment, determine the target user for sharing the file tree; Configure the target user with the permission to share the file tree.

5. The development environment configuration method as described in claim 1, characterized in that, The node information also includes the node identifier of the attribute node, and further includes: Based on the node identifiers of each node in the file tree and the hierarchical relationship between nodes, a directory tree corresponding to the file tree is displayed on the configuration page. The directory tree includes folder directories corresponding to each node, the hierarchical relationship between the folder directories matches the hierarchical relationship between nodes, and the name of the folder directory matches the node identifier of the corresponding node.

6. The development environment configuration method as described in claim 5, characterized in that, The directory tree corresponding to the file tree, based on the node identifiers of each node in the file tree and the hierarchical relationship between nodes, is displayed on the configuration page, including: Traverse from the root node along the lines in the file tree; When traversing each node, a folder directory is generated in the directory tree based on the node identifier of each node. The generated folder directory is then connected to its parent folder directory. The node corresponding to the generated folder directory is the lower node of the node corresponding to its parent folder directory.

7. The development environment configuration method as described in claim 5, characterized in that, Also includes: Based on the file tree containing nodes and connections, generate the configuration file for the development environment; Run the configuration file and search for information based on the data in each attribute node of the configuration file to obtain the corresponding development environment resource data; Based on the node identifier of each attribute node in the configuration file, the development environment resource data of each attribute node is stored in the resource folder of the folder directory corresponding to each attribute node.

8. The development environment configuration method according to any one of claims 1 to 7, characterized in that, The data lookup information includes the repository identifier of the resource repository to which the development environment resource data corresponding to the attribute node belongs, and the address of the development environment resource data corresponding to the attribute node in the resource repository.

9. A development environment configuration device, characterized in that, The device includes: A node setting module is used to respond to a file tree node setting operation on the configuration page of the development environment, and to display at least two nodes required for the file tree of the development environment on the configuration page, wherein the at least two nodes include a root node and at least one attribute node; A node configuration module is used to respond to a configuration operation on the attribute node and obtain node information configured for the attribute node through the configuration operation. The node information includes data lookup information of the development environment resource data corresponding to the attribute node. The data lookup information is used to find the development environment resource data corresponding to the attribute node from at least one resource repository. A hierarchy setting module is used to respond to a hierarchy setting instruction between the nodes, and set the connection between the root node and the attribute node in the file tree based on the hierarchy relationship indicated by the hierarchy setting instruction. The file tree containing the nodes and the connections is used to generate the configuration file of the development environment. The node setting module is configured to, in response to a file tree root node setting operation on the configuration page of the development environment, display the required root node of the file tree of the development environment on the configuration page; in response to a node creation operation on the configuration page, display a node selection window, which includes a regular node control and an attribute node control, wherein the regular node is located at the upper level of at least one attribute node, and the regular node is a node for which the data lookup information cannot be configured; and in response to a selection operation of the regular node control or the attribute node control, display the regular node or the attribute node on the configuration page.

10. An electronic device, characterized in that, It includes a processor and a memory, the memory storing multiple instructions; the processor loads instructions from the memory to perform the steps in the development environment configuration method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the steps of the development environment configuration method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • System capable of generating cloud environment configuration file automatically and application method thereof

    CN107426335A