Method and device for executing page development instruction, computer device and storage medium

By synchronizing the kit information of the development terminal before executing development instructions, the problem of inconsistent support capabilities caused by inconsistent development kits is solved, the consistency of kit information in different projects is achieved, and the development efficiency of page programs is improved.

CN114385171BActive Publication Date: 2026-02-10DOUYIN VISION CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The different functions of the web application use different development kits during the development process, resulting in mismatched support capabilities.

Method used

By receiving development instructions, the system utilizes the first kit information of the target development kit stored on the server to synchronize the second kit information of the target development kit stored on the development terminal. This includes matching and updating dependency environment information and configuration information, ensuring that the support capabilities of the kit information remain consistent across different projects.

Benefits of technology

This reduces the mismatch in support capabilities between different functions of the page application and improves the uniformity and consistency of the development kit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114385171B_ABST
    Figure CN114385171B_ABST
Patent Text Reader

Abstract

The present disclosure provides an execution method and device of page development instructions, a computer device and a storage medium, comprising: receiving a development instruction corresponding to a target development kit, synchronizing second kit information of the target development kit stored in a development terminal based on first kit information of the target development kit stored in a server; and in response to successful synchronization, executing the development instruction based on the target development kit after synchronizing the second kit information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of page development technology, and more specifically, to a method, apparatus, computer device, and storage medium for executing page development instructions. Background Technology

[0002] Currently, with the continuous updates and iterations of front-end technologies, development kits are pre-set to facilitate web application development, and web applications are developed based on these kits. However, because different functions in a web application are at different development stages, and because development kits are constantly iterating during development, it is impossible to guarantee that the support capabilities of different functions in the development kits are the same. This leads to a mismatch in the support capabilities of different functions in a web application. Summary of the Invention

[0003] This disclosure provides at least one method, apparatus, computer device, and storage medium for executing page development instructions.

[0004] In a first aspect, embodiments of this disclosure provide a method for executing page development instructions, comprising: receiving development instructions corresponding to a target development kit; synchronizing second kit information of the target development kit stored in a development terminal based on first kit information of the target development kit stored in a server; and, in response to successful synchronization, executing the development instructions based on the target development kit after synchronizing the second kit information.

[0005] In one optional implementation, the development instructions include at least one of the following: a local debugging server startup instruction, a project packaging instruction, a project testing instruction, and a project release instruction.

[0006] In one optional implementation, the kit information includes: the dependent environment information of the target development kit, and / or, the configuration information of the target development kit.

[0007] In one optional implementation, the kit information includes: the dependency environment information of the target development kit; the synchronization processing of the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server includes: obtaining the first dependency environment information of the target development kit from the server; matching the first dependency environment information with the dependency environment information of the target development kit stored in the development terminal; and updating the second dependency environment information based on the first dependency environment information in response to a difference between the first dependency environment information and the second dependency environment information.

[0008] In one optional implementation, updating the second dependency environment information based on the first dependency environment information includes: synchronizing the second dependency environment information based on the first dependency environment information; and reinstalling and / or initializing the dependency environment of the target development kit stored on the development terminal based on the synchronized second dependency environment.

[0009] In one optional implementation, the kit information includes: configuration information of the target development kit; the synchronization processing of the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server includes: obtaining the first configuration information of the target development kit from the server; synchronizing the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration items corresponding to the first configuration information and the first configuration information; the attribute information is used to indicate the synchronization method of the configuration information of the corresponding configuration items.

[0010] In one optional implementation, obtaining the first configuration information of the target development kit from the server includes: obtaining a list of configuration information of the target development kit stored in the development terminal; the list of configuration information includes: file names corresponding to at least one second configuration file; each second configuration file includes second configuration information for at least one configuration item; sending the list of configuration information to the server; receiving a first configuration file corresponding to the second configuration file from the server based on the list of configuration information; the first configuration file includes: the first configuration information for the at least one configuration item.

[0011] In one optional implementation, the attribute information includes: a target synchronization method corresponding to the configuration item; the step of synchronizing the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information includes: for each second configuration file, comparing the first configuration information corresponding to each configuration item in the first configuration file corresponding to each second configuration file with the second configuration information corresponding to each configuration item; in response to the difference between the first configuration information of any configuration item and the second configuration information corresponding to any configuration item, determining the target synchronization method for the second configuration information corresponding to any configuration item; and using the first configuration information of any configuration item, performing the synchronization processing indicated by the target synchronization method on the second configuration information corresponding to any configuration item.

[0012] In one alternative implementation, the target synchronization method includes any of the following: replacement, merging, and ignoring.

[0013] In one optional implementation, the attribute information further includes: an identifier corresponding to the configuration item; the step of synchronizing the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information further includes: matching the first configuration file and the corresponding second configuration file based on the identifier corresponding to the configuration item.

[0014] If the first configuration item included in the first configuration file does not exist in the corresponding second configuration file, the first configuration item and the first configuration information corresponding to the first configuration item are added to the second configuration file; if the second configuration item included in the second configuration file corresponding to the first configuration file does not exist in the first configuration file, the second configuration item and the second configuration information corresponding to the second configuration item are deleted from the second configuration file.

[0015] Secondly, embodiments of this disclosure also provide an execution device for page development instructions, comprising:

[0016] The synchronization module is used to receive development instructions corresponding to the target development kit, and to perform synchronization processing on the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server.

[0017] An execution module is configured to execute the development instructions based on the target development kit after synchronizing the second kit information, in response to the successful synchronization process.

[0018] In one optional implementation, the development instructions include at least one of the following: a local debugging server startup instruction, a project packaging instruction, a project testing instruction, and a project release instruction.

[0019] In one optional implementation, the kit information includes: the dependent environment information of the target development kit, and / or, the configuration information of the target development kit.

[0020] In one optional implementation, the kit information includes: the dependency environment information of the target development kit; the synchronization module, when performing synchronization processing on the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server, is used to obtain the first dependency environment information of the target development kit from the server; match the first dependency environment information with the dependency environment information of the target development kit stored in the development terminal; and update the second dependency environment information based on the first dependency environment information in response to the difference between the first dependency environment information and the second dependency environment information.

[0021] In one optional implementation, the synchronization module, when updating the second dependency environment information based on the first dependency environment information, is used to perform synchronization processing on the second dependency environment information based on the first dependency environment information; and to perform reinstallation processing and / or initialization processing on the dependency environment of the target development kit stored in the development terminal based on the synchronized second dependency environment.

[0022] In one optional implementation, the kit information includes: configuration information of the target development kit; the synchronization module, when synchronizing the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server, is used to obtain the first configuration information of the target development kit from the server; and to synchronize the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration items corresponding to the first configuration information and the first configuration information; the attribute information is used to indicate the synchronization method of the configuration information of the corresponding configuration items.

[0023] In one optional implementation, the synchronization module, when obtaining the first configuration information of the target development kit from the server, is used to obtain a list of configuration information of the target development kit stored in the development terminal; the list of configuration information includes: file names corresponding to at least one second configuration file; each second configuration file includes second configuration information for at least one configuration item; sends the list of configuration information to the server; and receives a first configuration file corresponding to the second configuration file from the server based on the list of configuration information; the first configuration file includes: the first configuration information for the at least one configuration item.

[0024] In one optional implementation, the attribute information includes: a target synchronization method corresponding to the configuration item; the synchronization module, when performing synchronization processing on the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information, is used to compare, for each second configuration file, the first configuration information corresponding to each configuration item in the first configuration file corresponding to each second configuration file and the second configuration information corresponding to each configuration item; in response to a difference between the first configuration information of any configuration item and the second configuration information corresponding to any configuration item, determine the target synchronization method for the second configuration information corresponding to any configuration item; and use the first configuration information of any configuration item to perform the synchronization processing indicated by the target synchronization method on the second configuration information corresponding to any configuration item.

[0025] In one alternative implementation, the target synchronization method includes any of the following: replacement, merging, and ignoring.

[0026] In an optional implementation, the attribute information further includes: an identifier corresponding to the configuration item; the synchronization module, when synchronizing the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information, is further configured to: match the configuration items of the first configuration file and the corresponding second configuration file based on the identifier corresponding to the configuration item; in response to the first configuration item included in the first configuration file not existing in the corresponding second configuration file, add the first configuration item and the first configuration information corresponding to the first configuration item to the second configuration file; in response to the second configuration item included in the second configuration file corresponding to the first configuration file not existing in the first configuration file, delete the second configuration item and the second configuration information corresponding to the second configuration item from the second configuration file.

[0027] In one optional implementation, the target synchronization method includes: replacement; the synchronization module, when performing the synchronization processing indicated by the target synchronization method on the second configuration information corresponding to the second configuration information corresponding to the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the third configuration information of the second configuration information of the third configuration information of the fourth configuration information of the fifth configuration information of the sixth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the fifth configuration information of the sixth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the fifth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the first configuration information of the second configuration information of the third configuration information of the fourth configuration information of the second configuration information of the third configuration information of the first configuration information of the second configuration information of the third ... second configuration information of the first configuration information of the second configuration information of the first configuration information of the second configuration information of the second configuration information of the first configuration information of the second configuration information of the first configuration information of the second configuration information of

[0028] In one optional implementation, the target synchronization method includes: merging; the synchronization module, when performing the synchronization processing indicated by the target synchronization method on the second configuration information corresponding to the second configuration information corresponding to the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the third configuration information of the second configuration information of the third configuration information of the fourth configuration information of the fifth configuration information of the sixth configuration information of the fifth configuration information of the sixth configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the first configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the first configuration information of the second configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the first configuration information of the second configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the first configuration information of the second configuration information of the sixth configuration information of the second configuration information of the first ...

[0029] Thirdly, an optional implementation of this disclosure also provides a computer device, a processor, and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the steps of the first aspect above, or any possible implementation of the first aspect, are performed.

[0030] Fourthly, an optional implementation of this disclosure also provides a computer-readable storage medium storing a computer program that, when run, performs the steps of the first aspect or any possible implementation of the first aspect.

[0031] This embodiment of the disclosure receives development instructions corresponding to a target development kit, obtains first kit information of the target development kit stored on the server, and performs synchronization processing on second kit information of the target development kit stored on the development terminal based on the first kit information. In response to successful synchronization processing of the second kit information of the target development kit stored on the development terminal, the development instructions are executed based on the target development kit after synchronization processing of the second kit information. Thus, before executing the development instructions, the second kit information of the development kit stored on the development terminal is synchronized using the first kit information of the target development kit stored on the server, so that the kit information of the development kit can maintain consistency in support capabilities when developing different projects, reducing the problem of misalignment in support capabilities of different functions of the page program.

[0032] For a description of the effects of the execution device, computer equipment, and computer-readable storage medium of the above-mentioned page development instructions, please refer to the description of the execution method of the above-mentioned page development instructions, which will not be repeated here.

[0033] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0034] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort.

[0035] Figure 1 A flowchart illustrating a method for executing page development instructions provided in an embodiment of this disclosure is shown;

[0036] Figure 2 The flowchart illustrates a specific example of synchronizing the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information, according to an embodiment of the present disclosure.

[0037] Figure 3 This diagram illustrates a specific flow example of the execution of a page development instruction provided in an embodiment of this disclosure;

[0038] Figure 4A schematic diagram of an execution device for page development instructions provided in an embodiment of this disclosure is shown;

[0039] Figure 5 A schematic diagram of a computer device provided in an embodiment of this disclosure is shown. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown herein can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.

[0041] Research has revealed that in web application development, during the software development phase, due to the continuous updates in web front-end technologies and the long development cycle, developers may work at different paces for each function, and the developers responsible for each function may also differ. Furthermore, the development kits used are constantly iterating, leading to inconsistencies in kit information and varying support capabilities for different functions. Consequently, there is a mismatch in the support capabilities of different functions within the web application.

[0042] Based on the above research, this disclosure provides a method for executing page development instructions. Before executing the development instructions, the method uses the first kit information of the target development kit stored in the server to synchronize the second kit information of the development kit stored in the development terminal. This ensures that the kit information of the development kit can maintain consistency in support capabilities when developing different projects, thereby reducing the problem of misalignment in support capabilities of different functions of the page program.

[0043] The shortcomings of the above solutions are the result of the inventor's practical experience and careful research. Therefore, the discovery process of the above problems and the solutions proposed in this disclosure below should be considered as the inventor's contribution to this disclosure.

[0044] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0045] To facilitate understanding of this embodiment, a method for executing page development instructions disclosed in this disclosure will first be described in detail. The executing entity of this method is generally a computer device with certain computing capabilities. This computer device may include, for example, a terminal device, a server, or other processing devices. The terminal device may be a user equipment (UE), a mobile device, a user terminal, or a terminal. In some possible implementations, the method for executing page development instructions can be implemented by a processor calling computer-readable instructions stored in memory.

[0046] The following describes the execution method of page development instructions provided in the embodiments of this disclosure.

[0047] See Figure 1 The diagram shows a flowchart of a method for executing page development instructions provided in this embodiment of the present disclosure. The method includes steps S101 to S102, wherein:

[0048] S101: Receive development instructions corresponding to the target development kit, and synchronize the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server.

[0049] S102: In response to successful synchronization, execute development instructions based on the target development kit after synchronizing the information of the second kit.

[0050] This embodiment of the disclosure receives development instructions corresponding to a target development kit, obtains first kit information of the target development kit stored on the server, and performs synchronization processing on second kit information of the target development kit stored on the development terminal based on the first kit information. In response to the successful synchronization processing of the second kit information of the target development kit stored on the development terminal, the development instructions are executed based on the target development kit after the second kit information has been synchronized. Thus, before executing the development instructions, the second kit information of the development kit stored on the development terminal is synchronized using the first kit information of the target development kit stored on the server, so that the kit information of the development kit can maintain consistency in support capabilities when developing different projects, reducing the problem of misalignment in support capabilities of different functions of the page program.

[0051] The steps S101 to S102 described above will be explained in detail below.

[0052] Regarding S101 above, the Target Development Kit is a tool used to assist developers in developing web page applications. It includes, for example, specifications for project structure and project framework capabilities. For tasks such as project debugging and project deployment, the Target Development Kit facilitates developers in analyzing, developing, testing, and releasing requirements for web page applications.

[0053] The development instructions for the development kit include at least one of the following: instructions to start the local debugging server, instructions to package the project, instructions to test the project, and instructions to release the project.

[0054] Among them, the local debugging server startup command can be used to start the local server for debugging before the software goes live; the project packaging command can be used to package the corresponding program code after it has been written; the project testing command can be used to call the test command when testing the performance of the software; and the project release command can be used to release the corresponding program code of the software to a remote server after the software has been tested, thus completing the software's launch.

[0055] The target development kit has corresponding kit information. In this embodiment of the disclosure, the kit information of the target development kit on the server is referred to as the first kit information; the kit information on the development terminal is referred to as the second kit information.

[0056] Kit information may include, for example, the target development kit's dependency environment information and / or the target development kit's configuration information.

[0057] A: Regarding the case where the kit information includes: the target development kit's dependency environment information:

[0058] The dependency environment information of the target development kit means that the program code corresponding to the page program needs to run in a specific dependency environment or runtime environment to run successfully. If the dependency environment of the development program is not installed successfully or the dependency environment information is incorrect, the program code will cause errors at runtime.

[0059] The dependent environments include, for example, offline testing environments, online preview environments, production environments, etc.

[0060] The dependency environment information includes the version information of the dependency environment. Inconsistent dependency environment versions mean that the program code runs in different versions of the dependency environment, and the program code may encounter errors when running in that dependency environment. For example, program code A is suitable for running the first version of the dependency environment, but may encounter errors when running on the second version of the dependency environment.

[0061] Before executing development instructions, it is necessary to synchronize the dependency environment of the target development kit stored in the development terminal. Regarding the dependency environment information of the target development kit, this disclosure provides a specific example of synchronizing the second dependency environment of the development kit, including:

[0062] Retrieve the first dependency environment information of the target development kit from the server;

[0063] Match the first dependency environment information with the second dependency environment information of the target development kit saved in the development terminal;

[0064] In response to the difference between the first dependency environment information and the second dependency environment information, the second dependency environment information is updated based on the first dependency environment information.

[0065] For example, in response to receiving a development instruction, the development terminal sends a request to the server to obtain the first dependency environment information of the preset kit. The first dependency environment information is the latest dependency environment information of the target development kit stored by the server. The request may carry the identification information of the target development kit. After receiving the request, the server determines the corresponding target development kit based on the identification information, obtains the first dependency environment information corresponding to the target development kit, and returns the first dependency environment information to the development terminal.

[0066] In addition, the development terminal can also read the second dependency environment information corresponding to the target development kit from the local machine.

[0067] After receiving the first dependency environment information returned by the server, the first environment information is matched with the second environment information.

[0068] When matching the first environment information with the second environment information, for example, the version information of the two can be matched. If the first environment dependency information is different from the second environment information, the second dependency environment information is updated based on the first environment information.

[0069] When updating the second dependent environment information based on the first environment information, the following methods can be used, for example:

[0070] Based on the first dependency environment information, the second dependency environment information is synchronized; and

[0071] Based on the second dependent environment after synchronization processing, the dependent environment of the target development kit for developing terminal storage is reinstalled and / or initialized.

[0072] Among them, based on the first dependency environment information, the second dependency environment information is synchronized, including: updating the dependency environment version information of the target development kit saved on the development terminal to be the same as the dependency environment version information of the target development kit saved on the server.

[0073] For example, each project's root directory typically contains a `package.json` file. This file defines the various modules required by the project, its dependencies, and configuration information. Upon receiving a development command, the development terminal retrieves a first `package.json` file from the server via a request. This first `package.json` file includes a list of the latest development environment dependencies. Additionally, the development terminal can retrieve a locally saved second `package.json` file by calling the `npm.list` command. This second `package.json` file contains a locally saved list of development environment dependencies. After obtaining both the first and second `package.json` files, the list of development environment dependencies in the second `package.json` file is compared with the latest list of development environment dependencies in the first `package.json` file. If the locally saved list matches the latest list, no update is needed. If the locally saved list differs, the local second `package.json` file is modified to synchronize the locally saved list with the latest list from the first `package.json` file retrieved from the server.

[0074] For example, if the locally saved list of development dependency versions differs from the latest list of development dependency versions, the locally saved list of development dependency versions needs to be updated. For instance, if the locally saved list of dependency versions for target development kit A is version 1.0, and the current version does not support the operation of target development kit A, the latest list of development dependency versions for target development kit A will be obtained from the server, which will be version 2.0. The locally saved list of dependency versions will then be updated from version 1.0 to the latest list of development dependency versions, which is version 2.0.

[0075] In addition, the dependent environment of the target development kit for developing terminal storage will be reinstalled and / or initialized.

[0076] This ensures that the dependency environment deployed locally on the development terminal is the same as the dependency environment indicated in the development dependency environment list, thus meeting subsequent development needs.

[0077] For example, update the second dependency environment information from version 1.0 to the first dependency environment information from version 2.0, perform an initialization operation on version 2.0, or reinstall version 2.0, so that the second dependency environment is updated to the latest or standard dependency environment.

[0078] In addition, if the first dependency environment information and the second dependency environment information are the same, the second dependency environment information will not be updated.

[0079] B: Regarding the kit information, including the configuration information of the target development kit:

[0080] The configuration information for the target development kit is stored in the configuration file corresponding to the target development kit; each configuration file includes at least one configuration item, and each configuration item includes at least one corresponding configuration entry.

[0081] Configuration items include, for example, at least one of the following: project proxy configuration, project code packaging configuration, and deployment process configuration. Configuration items are used to ensure the normal operation of the page program. For example, a software program developed using target development kit A requires a specific configuration item 'a' in a configuration file to function correctly; if the configuration information corresponding to configuration item 'a' is lost, the software program will fail to run; or the configuration information may not support the operation of certain functional modules. For example, configuration item 'a' in target development kit A does not support the operation of functional module 'b', and the configuration information corresponding to the configuration item needs to be updated before functional module 'b' can run.

[0082] This disclosure provides specific examples of synchronizing the second configuration information of the development kit, including:

[0083] Retrieve the initial configuration information of the target development kit from the server;

[0084] Based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information, the second configuration information of the target development kit for the development terminal storage is synchronized.

[0085] The attribute information is used to indicate the synchronization method of the configuration information of the corresponding configuration item.

[0086] In practical implementation, when obtaining the first configuration information of the target development kit from the server, the following method can be used, for example:

[0087] Obtain a list of configuration information for the target development kit stored in the development terminal; the list of configuration information includes: the file name corresponding to at least one second configuration file; each second configuration file includes second configuration information for at least one configuration item;

[0088] Send a list of configuration information to the server;

[0089] The receiving server returns a first configuration file corresponding to the second configuration file based on the configuration information list; the first configuration file includes: first configuration information for at least one configuration item.

[0090] The server includes multiple configuration files and an interface. The interface can be used to receive a list of configuration information sent by the development terminal. The list of configuration information sent by the development terminal includes a second configuration file and the file name corresponding to the second configuration file. The server matches the file name in the configuration information list with the file names of multiple configuration files stored in the server to obtain a first configuration file with the same name as the second configuration file, and returns the first configuration file to the development terminal.

[0091] The first configuration file corresponds to the second configuration file, for example, the first configuration file and the second configuration file have the same file name.

[0092] After receiving the first configuration file, the development terminal compares the first configuration information corresponding to the first configuration file with the second configuration information corresponding to the second configuration file to determine whether the second configuration information is the same as the first configuration information.

[0093] For example, when the development terminal obtains the configuration information list of the target development kit stored locally, it can do so by scanning the directory of the development kits stored in the local storage space.

[0094] For the first configuration information corresponding to at least one configuration item in the first configuration file returned by the server, it is compared with the second configuration information corresponding to at least one configuration item in the second configuration file. Based on the comparison result, it is determined whether to perform synchronization processing. If the comparison result shows that the first configuration information and the second configuration information are the same, the configuration information update is completed, and the development instructions are executed. The specific method is as follows: step S102. If the comparison result shows that the first configuration information and the second configuration information are different, the second configuration information is updated. The specific update method is as follows: embodiment. This disclosure provides a specific example of synchronizing the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information, including steps S201 to S203, wherein:

[0095] S201: For each second configuration file, compare the first configuration information corresponding to any configuration item in the first configuration file corresponding to each second configuration file with the second configuration information corresponding to any configuration item;

[0096] S202: In response to the fact that the first configuration information corresponding to any configuration item and the second configuration information corresponding to any configuration item are different, determine the target synchronization method for the second configuration information corresponding to any configuration item.

[0097] In a specific implementation, one possible implementation is to set up a merging engine in the development terminal to perform the synchronization process between the first configuration information and the second configuration information.

[0098] Specifically, when using the merging engine to synchronize the first configuration information and the second configuration information, the development terminal sends the target synchronization method corresponding to each configuration item to the merging engine, and the merging engine synchronizes the first configuration information and the second configuration information corresponding to the received target synchronization method.

[0099] The target synchronization method for any configuration item includes any of the following: replacement, merging, and ignoring.

[0100] S203: Using the first configuration information corresponding to any configuration item, perform synchronization processing on the second configuration information corresponding to any configuration item according to the target synchronization method indication.

[0101] For example, the merging engine matches the corresponding configuration items in the first and second configuration files one by one to identify the differing configuration items. Then, based on the target synchronization method corresponding to the differing configuration item, it uses the first configuration information corresponding to the differing configuration item to synchronize its second configuration information.

[0102] In cases where the target synchronization method includes replacement:

[0103] The target synchronization method includes: replacement; using the first configuration information corresponding to any configuration item, performing synchronization processing on the second configuration information corresponding to any configuration item according to the target synchronization method, including: replacing the second configuration information corresponding to any configuration item with the first configuration information corresponding to any configuration item to obtain new second configuration information.

[0104] For example, for the differential configuration item M1, which is a relatively core configuration item (such as the underlying packaging tool configuration), users cannot modify it themselves. In this case, the replacement method is used to perform synchronization processing. For example, if the configuration on the server is css:'less', while the configuration on the development terminal is css:'scss', the result after replacement is css:'less'.

[0105] When the target synchronization method includes merging: using the first configuration information corresponding to any configuration item, perform synchronization processing as indicated by the target synchronization method on the second configuration information corresponding to any configuration item, including: merging the second configuration information corresponding to any configuration item with the first configuration information corresponding to any configuration item to obtain new second configuration information.

[0106] For example, the difference configuration item M2 is a relatively open configuration that allows users to merge configurations (such as entry list configurations). Users can merge these configurations on the development terminal. For instance, the configuration on the server is entry:[A], while the user's configuration on the development terminal is entry:[B,C]; after merging, it becomes entry:[A,B,C]

[0107] In the case where the target synchronization method includes ignoring: since the first configuration information corresponding to any configuration item has no standard constraints, no processing is performed on the second configuration information corresponding to any configuration item, that is, no changes need to be made to the second configuration information.

[0108] For example, the differential configuration item M3 is an open configuration. No standardized constraints are applied to this configuration on the server, allowing users to define it directly in the development terminal without any synchronization processing.

[0109] For example, based on any of the above target synchronization methods, and based on the synchronization processing indicated by any of the target synchronization methods on the second configuration information, the synchronization processing of the second configuration information is completed after the second configuration information synchronization processing is successful.

[0110] In another embodiment, there may be a situation where the configuration items in the first configuration file and the configuration items in the second configuration file are different. To address the discrepancy between the corresponding configuration items in the second configuration file and the corresponding configuration items in the first configuration file, this disclosure provides a specific method for synchronizing the second configuration in the second configuration file, including:

[0111] Based on the identifier corresponding to the configuration item, the first configuration file and the corresponding second configuration file are matched for configuration items;

[0112] If the first configuration item included in the first configuration file does not exist in the corresponding second configuration file, then the first configuration item and the first configuration information corresponding to the first configuration item are added to the second configuration file.

[0113] In response to the fact that the second configuration item included in the second configuration file corresponding to the first configuration file does not exist in the first configuration file, the second configuration item and the second configuration information corresponding to the second configuration item are deleted from the second configuration file.

[0114] In practice, each configuration item has corresponding attribute information, which includes the corresponding identifier of the configuration item. This identifier includes, for example, the name of the configuration item and the identity document (ID) of the configuration item. Based on this identifier, the configuration items with this identifier in the first configuration file can be matched with the configuration items with this identifier in the second configuration file.

[0115] When matching configuration items in the first configuration file and the second configuration file, for example, for configuration item L1 in the first configuration file, based on the identifier corresponding to configuration item L1, it can be determined whether another configuration item L2 with the same identifier exists in the second configuration file; if it exists, the first configuration item L1 is successfully matched. If it does not exist, the configuration item L1 in the first configuration file is taken as the first configuration item, and the first configuration item and its corresponding first configuration information are added to the second configuration file. For example, if the first configuration item L1 in the first configuration file B does not exist in the second configuration file C, then the first configuration item L1 and its corresponding first configuration information are added to the second configuration file. At this time, the second configuration file C includes the first configuration item L1.

[0116] Additionally, for configuration item L3 in the second configuration file, based on the identifier corresponding to configuration item L3, it can be determined whether another configuration item L4 with the same identifier exists in the first configuration file. If it exists, configuration item L3 is successfully matched. If it does not exist, configuration item L3 in the second file is taken as the second configuration item, and the second configuration item L3 and its corresponding second configuration information are deleted from the second configuration file. For example, if the second configuration item L3 in the second configuration file C does not exist in the first configuration file B, then the second configuration item L3 and its corresponding second configuration information are deleted from the second configuration file C, and at this time, the second configuration item L3 does not exist in the second configuration file C.

[0117] It should be noted that the process of synchronizing the target development kit's dependency environment information and configuration information can be executed synchronously or asynchronously. Furthermore, when the two synchronous processes are executed asynchronously, there is no absolute order of execution; the target development kit's dependency environment information can be synchronized first, followed by the configuration information, or vice versa.

[0118] In response to the above-mentioned S102, this embodiment of the present disclosure executes development instructions based on the target development kit after synchronizing the second kit information, in response to the successful synchronization processing.

[0119] For example, after the second dependency environment information of the target development kit stored on the development terminal is synchronized and the second configuration information is synchronized, the target development kit that has been synchronized with the second kit information executes development instructions.

[0120] For example, development commands can be obtained through the `process.argv` variable in a Node script environment; the specific code is as follows: `const command = process.argv`; The Node script environment, or Node.js, is the dependency environment for JavaScript running on the server side. Node.js is a platform built on the Chrome JavaScript runtime.

[0121] See Figure 3 As shown in the embodiments of this disclosure, a specific process example for executing page development instructions is also provided, including:

[0122] Trigger Development Kit Commands: Developers trigger development kit commands through the development terminal.

[0123] Record commands: After the development terminal records the development commands, it suspends the development commands.

[0124] Retrieve version information: The development terminal retrieves the version information of the first dependency environment from the server.

[0125] Verify dependency environment version: The development terminal verifies the version information of the first dependency environment and the version information of the second dependency environment stored in the development terminal.

[0126] Based on the version information of the first dependency environment and the version information of the second dependency environment stored in the development terminal, determine whether the version information of the second dependency environment is the latest version. If the version information of the second dependency environment stored in the development terminal is not the latest version, then use the version information of the first dependency environment to be pulled from the cloud server, synchronize the version information of the second dependency environment stored in the development terminal to the version information of the first dependency environment, and update the development kit version.

[0127] The development kit is initialized based on the synchronization of the second dependency environment version information stored in the development terminal.

[0128] If the second dependency environment version information of the development terminal storage is the latest version, or after the synchronization of the second dependency environment version information is completed, the second configuration information of the development terminal storage will be pulled: Based on the completion of the synchronization of the second dependency environment version information of the development terminal storage, or the second dependency environment version information of the development terminal storage is the latest version, the second configuration information of the development terminal storage will be pulled.

[0129] Configuration information comparison: The second configuration information is compared with the first configuration information stored on the cloud server to determine whether the second configuration information and the first configuration information stored on the cloud server are consistent. If the second configuration information and the first configuration information stored on the cloud server are inconsistent, the second configuration file is passed to the merging engine for processing. The merging engine processing process: The type of the second configuration file is determined, and then the first configuration information corresponding to the first configuration file and the second configuration information corresponding to the second configuration file are passed to the merging engine. The merging engine performs merging and integration processing, updates the second configuration information synchronously, and then sends the synchronously updated second configuration information to the development terminal to overwrite the original second configuration information on the development terminal.

[0130] If the second configuration information is consistent with the first configuration information stored on the cloud server, or if the second dependency environment information based on the development terminal is synchronized with the second configuration information, the development command is executed.

[0131] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0132] Based on the same inventive concept, this disclosure also provides a page development instruction execution device corresponding to the page development instruction execution method. Since the principle of the device in this disclosure for solving the problem is similar to the page development instruction execution method described above in this disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.

[0133] Reference Figure 4 The diagram shown is a schematic of an execution device for page development instructions provided in an embodiment of this disclosure. The device includes: a synchronization module 41 and an execution module 42; wherein,

[0134] Synchronization module 41 is used to receive development instructions corresponding to the target development kit, and to perform synchronization processing on the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server.

[0135] Execution module 42 is used to execute the development instructions based on the target development kit after synchronizing the second kit information in response to the successful synchronization process.

[0136] In one optional implementation, the development instructions include at least one of the following: a local debugging server startup instruction, a project packaging instruction, a project testing instruction, and a project release instruction.

[0137] In one optional implementation, the kit information includes: the dependent environment information of the target development kit, and / or, the configuration information of the target development kit.

[0138] In one optional implementation, the kit information includes: the dependency environment information of the target development kit; the synchronization module 41, when performing synchronization processing on the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server, is used to obtain the first dependency environment information of the target development kit from the server; match the first dependency environment information with the dependency environment information of the target development kit stored in the development terminal; and update the second dependency environment information based on the first dependency environment information in response to the difference between the first dependency environment information and the second dependency environment information.

[0139] In one optional implementation, the synchronization module 41, when updating the second dependency environment information based on the first dependency environment information, is used to perform synchronization processing on the second dependency environment information based on the first dependency environment information; and to perform reinstallation processing and / or initialization processing on the dependency environment of the target development kit stored in the development terminal based on the synchronized second dependency environment.

[0140] In one optional implementation, the kit information includes: configuration information of the target development kit; the synchronization module 41, when synchronizing the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server, is used to obtain the first configuration information of the target development kit from the server; and to synchronize the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration items corresponding to the first configuration information and the first configuration information; the attribute information is used to indicate the synchronization method of the configuration information of the corresponding configuration items.

[0141] In an optional implementation, the synchronization module 41, when obtaining the first configuration information of the target development kit from the server, is used to obtain a list of configuration information of the target development kit stored in the development terminal; the list of configuration information includes: file names corresponding to at least one second configuration file; each second configuration file includes second configuration information for at least one configuration item; sends the list of configuration information to the server; receives a first configuration file corresponding to the second configuration file from the server based on the list of configuration information; the first configuration file includes: the first configuration information for the at least one configuration item.

[0142] In one optional implementation, the attribute information includes: a target synchronization method corresponding to the configuration item; the synchronization module 41, when performing synchronization processing on the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information, is used to compare the first configuration information corresponding to each configuration item in the first configuration file corresponding to each second configuration file with the second configuration information corresponding to each configuration item for each second configuration file; in response to the difference between the first configuration information of any configuration item and the second configuration information corresponding to any configuration item, determine the target synchronization method for the second configuration information corresponding to any configuration item; and use the first configuration information of any configuration item to perform the synchronization processing indicated by the target synchronization method on the second configuration information corresponding to any configuration item.

[0143] In one alternative implementation, the target synchronization method includes any of the following: replacement, merging, and ignoring.

[0144] In an optional implementation, the attribute information further includes: an identifier corresponding to the configuration item; the synchronization module 41, when synchronizing the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information, is used to match the configuration items of the first configuration file and the corresponding second configuration file based on the identifier corresponding to the configuration item; in response to the first configuration item included in the first configuration file not existing in the corresponding second configuration file, the first configuration item and the first configuration information corresponding to the first configuration item are added to the second configuration file; in response to the second configuration item included in the second configuration file corresponding to the first configuration file not existing in the first configuration file, the second configuration item and the second configuration information corresponding to the second configuration item are deleted from the second configuration file.

[0145] In one optional implementation, the target synchronization method includes: replacement; the synchronization module 41, when performing the synchronization processing indicated by the target synchronization method on the second configuration information corresponding to the second configuration information corresponding to the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the third configuration information of the second configuration information of the third configuration information of the fourth configuration information of the fifth configuration information of the sixth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the fifth configuration information of the sixth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the first configuration information of the second configuration information of the third configuration information of the fourth configuration information of the first configuration information of the second configuration information of the third configuration information of the fourth configuration information of the second configuration information of the third configuration information of the fourth configuration information of the first configuration information of the second configuration information of the third configuration information of the second ... second configuration information of the first configuration information of the second configuration information of the first configuration information of the second configuration information of the first configuration information of the second

[0146] In one optional implementation, the target synchronization method includes: merging; the synchronization module 41, when performing the synchronization processing indicated by the target synchronization method on the second configuration information corresponding to the second configuration information corresponding to the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the second configuration information of the third configuration information of the second configuration information of the third configuration information of the fourth configuration information of the fifth configuration information of the sixth configuration information of the sixth configuration information of the fifth configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the sixth configuration information of the second configuration information of the sixth configuration information of the first ...

[0147] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.

[0148] This disclosure also provides a computer device, such as... Figure 5 The diagram shown is a schematic representation of a computer device structure provided in an embodiment of this disclosure, including:

[0149] A processor 51 and a memory 52; the memory 52 stores machine-readable instructions executable by the processor 51, and the processor 51 executes the machine-readable instructions stored in the memory 52. ​​When the machine-readable instructions are executed by the processor 51, the processor 51 performs the following steps:

[0150] Receive development instructions corresponding to the target development kit, and synchronize the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server.

[0151] In response to the successful synchronization process, the development instructions are executed based on the target development kit after synchronizing the second kit information.

[0152] The aforementioned memory 52 includes a main memory 521 and an external memory 522; the main memory 521, also known as internal memory, is used to temporarily store the computational data in the processor 51, as well as the data exchanged with external memory 522 such as a hard disk. The processor 51 exchanges data with the external memory 522 through the main memory 521.

[0153] The specific execution process of the above instructions can be referred to the steps of the page development instruction execution method described in the embodiments of this disclosure, and will not be repeated here.

[0154] This disclosure also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the page development instruction execution method described in the above method embodiments. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0155] This disclosure also provides a computer program product carrying program code. The program code includes instructions that can be used to execute the steps of the page development instruction execution method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.

[0156] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0157] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this disclosure, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division; in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0158] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0159] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0160] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0161] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.

Claims

1. A method for executing page development instructions, characterized in that, include: Receive development instructions corresponding to the target development kit, and synchronize the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server. The target development kit is a tool used to assist in the development of page programs. In response to the successful synchronization process, the development instructions are executed based on the target development kit after synchronizing the second kit information. The kit information includes the dependent environment information of the target development kit; the synchronization processing of the second kit information of the target development kit stored on the development terminal based on the first kit information of the target development kit stored in the server includes: Obtain the first dependency environment information of the target development kit from the server; The first dependency environment information is matched with the second dependency environment information of the target development kit stored in the development terminal; In response to the difference between the first dependency environment information and the second dependency environment information, the second dependency environment information is updated based on the first dependency environment information. or, The kit information includes: configuration information of the target development kit; the synchronization processing of the second kit information of the target development kit stored on the development terminal based on the first kit information of the target development kit stored in the server includes: Obtain the first configuration information of the target development kit from the server; Based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information, the second configuration information of the target development kit stored in the development terminal is synchronized. The attribute information is used to indicate the synchronization method of the configuration information of the corresponding configuration item.

2. The method for executing page development instructions according to claim 1, characterized in that, The development instructions include at least one of the following: a local debugging server startup instruction, a project packaging instruction, a project testing instruction, and a project release instruction.

3. The method for executing page development instructions according to claim 1 or 2, characterized in that, The kit information includes: the dependent environment information of the target development kit, and / or the configuration information of the target development kit.

4. The method for executing page development instructions according to claim 1, characterized in that, The step of updating the second dependency environment information based on the first dependency environment information includes: Based on the first dependent environment information, the second dependent environment information is synchronized; and Based on the second dependent environment after synchronization processing, the dependent environment of the target development kit stored in the development terminal is reinstalled and / or initialized.

5. The method for executing page development instructions according to claim 1, characterized in that, The step of obtaining the first configuration information of the target development kit from the server includes: Obtain a list of configuration information for the target development kit stored in the development terminal; the list of configuration information includes: file names corresponding to at least one second configuration file; each second configuration file includes second configuration information for at least one second configuration item; Send the configuration information list to the server; The server receives a first configuration file corresponding to the second configuration file based on the configuration information list; the first configuration file includes: the first configuration information for the at least one first configuration item.

6. The method for executing page development instructions according to claim 5, characterized in that, The attribute information includes: the target synchronization method corresponding to the configuration item; the synchronization processing of the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information includes: For each second configuration file, the first configuration information corresponding to any configuration item in the first configuration file corresponding to each second configuration file and the second configuration information corresponding to any configuration item are compared; In response to the fact that the first configuration information corresponding to any configuration item is different from the second configuration information corresponding to any configuration item, a target synchronization method for the second configuration information corresponding to any configuration item is determined. Using the first configuration information corresponding to any one of the configuration items, perform the synchronization processing indicated by the target synchronization method on the second configuration information corresponding to any one of the configuration items.

7. The method for executing page development instructions according to claim 6, characterized in that, The target synchronization method includes any of the following: replacement, merging, and ignoring.

8. The method for executing page development instructions according to claim 6 or 7, characterized in that, The attribute information also includes: the identifier corresponding to the configuration item; The step of synchronizing the second configuration information of the target development kit stored in the development terminal based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information further includes: Based on the identifier corresponding to the configuration item, the first configuration file and the corresponding second configuration file are matched for configuration items; If the first configuration item included in the first configuration file does not exist in the corresponding second configuration file, then the first configuration item and the first configuration information corresponding to the first configuration item are added to the second configuration file. In response to the fact that the second configuration item included in the second configuration file corresponding to the first configuration file does not exist in the first configuration file, the second configuration item and the second configuration information corresponding to the second configuration item are deleted from the second configuration file.

9. A device for executing page development instructions, characterized in that, include: The synchronization module is used to receive development instructions corresponding to the target development kit, and to synchronize the second kit information of the target development kit stored in the development terminal based on the first kit information of the target development kit stored in the server. The target development kit is a tool used to assist in the development of page programs. The execution module, in response to successful synchronization, executes the development instructions based on the target development kit after synchronizing the second kit information. The kit information includes: the dependent environment information of the target development kit; the synchronization processing of the second kit information of the target development kit stored on the development terminal based on the first kit information of the target development kit stored in the server includes: Obtain the first dependency environment information of the target development kit from the server; The first dependency environment information is matched with the second dependency environment information of the target development kit stored in the development terminal; In response to the difference between the first dependency environment information and the second dependency environment information, the second dependency environment information is updated based on the first dependency environment information. or, The kit information includes: configuration information of the target development kit; the synchronization processing of the second kit information of the target development kit stored on the development terminal based on the first kit information of the target development kit stored in the server includes: Obtain the first configuration information of the target development kit from the server; Based on the attribute information of the configuration item corresponding to the first configuration information and the first configuration information, the second configuration information of the target development kit stored in the development terminal is synchronized. The attribute information is used to indicate the synchronization method of the configuration information of the corresponding configuration item.

10. A computer device, characterized in that, include: A processor and a memory, the memory storing machine-readable instructions executable by the processor, the processor executing the machine-readable instructions stored in the memory, wherein when the machine-readable instructions are executed by the processor, the processor performs the steps of the method for executing page development instructions 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 computer program, which, when executed by a computer device, performs the steps of the page development instruction execution method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Page updating method and device, terminal and storage medium

    CN111580873A