Project file generation method, device, electronic device and computer readable medium
The target project files are generated through multi-framework and multi-packager packaging processing, which solves the problems of complicated configuration of front-end project development environment and difficult expansion of technology stacks, and achieves the effect of lowering development thresholds, improving development efficiency and promoting a virtuous cycle of technology stacks.
Patent Information
- Application Number
- CN202011172924.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-28
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2040-10-28
AI Technical Summary
The project frameworks required by different front-end projects are very different, resulting in complex configuration of the development environment, increasing the learning cost and threshold for developers, reducing development efficiency, and the scalability of front-end frameworks and packaging machines is weak, making it difficult to implement technology. A virtuous cycle of stacks.
By obtaining the target framework information and target configuration information of the target project, multi-frame packaging process is carried out to generate the target configuration file, and the target service information is determined based on the target configuration file, and then multiple packages of the packager information collection, target configuration file and target service information are The device encapsulates and processes it to generate the target project file.
It lowers the development threshold, improves development efficiency, ensures developers develop in a stable and unified environment, and improves the scalability of front-end frameworks and packaging machines, and promotes the expansion and virtuous cycle of technology stacks.
Smart Images

Figure CN112230986B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a project file generation method, device, electronic device, and computer-readable medium. Background Art
[0002] Project file generation is a method of generating front-end project files through various technologies, frameworks and solutions. At present, when generating project files, the commonly used method is to encapsulate only specific front-end frameworks and combine packagers and auxiliary tools to generate front-end project files.
[0003] However, when the above method is used to generate project files, the following technical problems often occur:
[0004] First, the project frameworks required by different front-end projects vary greatly, and the development environment configuration is complicated, which makes the learning cost of front-end project developers high and it is difficult to ensure that each developer develops in a stable and unified environment, resulting in a high development threshold and low development efficiency;
[0005] Second, the scalability of front-end frameworks and packagers is weak, that is, the horizontal expansion capabilities of front-end framework types and packager types are weak, which makes it difficult to achieve a virtuous cycle in the expansion of the development team's technology stack. Summary of the invention
[0006] The content of this disclosure is used to introduce concepts in a brief form, and these concepts will be described in detail in the specific implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution for which protection is sought, nor is it intended to limit the scope of the technical solution for which protection is sought. Some embodiments of the present disclosure propose a project file generation method, device, electronic device, and computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.
[0007] In a first aspect, some embodiments of the present disclosure provide a project file generation method, the method comprising: obtaining target framework information and target configuration information corresponding to a target project, wherein the target framework information is included in a candidate framework information set. The candidate framework information set, the target framework information, and the target configuration information are subjected to multi-frame encapsulation processing to generate a target configuration file. The target service information is determined according to the target configuration file. The packager information set, the target configuration file, and the target service information are subjected to multi-packager encapsulation processing to generate a target project file.
[0008] In a second aspect, some embodiments of the present disclosure provide a project file generation device, the device comprising: an acquisition unit, configured to acquire target framework information and target configuration information corresponding to a target project, wherein the target framework information is included in a candidate framework information set. A first encapsulation unit, configured to perform multi-frame encapsulation processing on the candidate framework information set, the target framework information and the target configuration information to generate a target configuration file. A determination unit, configured to determine target service information according to the target configuration file. A second encapsulation unit, configured to perform multi-packager encapsulation processing on the packager information set, the target configuration file and the target service information to generate a target project file.
[0009] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.
[0010] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.
[0011] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: the project files obtained by the project file generation method of some embodiments of the present disclosure can reduce the development threshold to a certain extent, improve the development efficiency and ensure that the developers develop in a stable and unified environment. Specifically, the reasons for the high development threshold and low development efficiency are that the project frameworks required by different front-end projects are quite different and the development environment configuration is complicated. Based on this, the project file generation method of some embodiments of the present disclosure not only encapsulates each candidate framework information in the candidate framework information set into the target configuration file, so that the same target configuration file can support multiple front-end frameworks, so that the project developers can flexibly switch the front-end framework used during the project development process. The information of each packer in the packer information set is also encapsulated into the target project file, so that the same target project file can support multiple packers, so that the project developers can flexibly switch the packers used during the project development process, and the applicability is stronger. Through the above-mentioned encapsulation process, the developers do not need to understand the internal implementation of the environment configuration, do not need to care about the packaging process, and focus on business development. Then, to a certain extent, the development threshold is reduced, the development efficiency is improved, and the developers are guaranteed to develop in a stable and unified environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0013] Figure 1 is a schematic diagram of an application scenario of a project file generation method according to some embodiments of the present disclosure;
[0014] Figure 2 is a flow chart of some embodiments of the project file generation method according to the present disclosure;
[0015] Figure 3-4 are multiple schematic diagrams of an application scenario of a project file generation method according to some embodiments of the present disclosure;
[0016] Figure 5 are flowcharts of other embodiments of the project file generation method according to the present disclosure;
[0017] Figure 6 is a schematic diagram of the structure of some embodiments of the project file generating device according to the present disclosure;
[0018] Figure 7 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0020] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0021] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0022] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0023] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0024] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0025] Figure 1 It is a schematic diagram of an application scenario of the project file generation method of some embodiments of the present disclosure.
[0026] exist Figure 1 In the application scenario, first, the computing device 101 can obtain the target framework information 1021 and the target configuration information 103 corresponding to the target project, wherein the above-mentioned target framework information 1021 is included in the candidate framework information set 102. Next, the computing device 101 can perform multi-frame encapsulation processing on the above-mentioned candidate framework information set 102, the above-mentioned target framework information 1021 and the above-mentioned target configuration information 103 to generate a target configuration file 104. Then, the computing device 101 can determine the target service information 105 according to the above-mentioned target configuration file 104. Finally, the computing device 101 can perform multi-packager encapsulation processing on the packager information set 106, the above-mentioned target configuration file 104 and the above-mentioned target service information 105 to generate a target project file 107.
[0027] It should be noted that the computing device 101 can be hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitation is made here.
[0028] It should be understood that Figure 1 The number of computing devices in the embodiment is only illustrative. Any number of computing devices may be provided according to implementation requirements.
[0029] Continue to refer Figure 2 , shows a process 200 of some embodiments of the project file generation method according to the present disclosure. The project file generation method comprises the following steps:
[0030] Step 201, obtaining target framework information and target configuration information corresponding to the target project.
[0031] In some embodiments, the execution subject of the project file generation method (such as Figure 1 The computing device 101 shown in the figure can obtain the target framework information and target configuration information corresponding to the target project through a wired connection method or a wireless connection method. Among them, the above-mentioned target framework information is included in the candidate framework information set. The above-mentioned wireless connection method may include but is not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future. The above-mentioned candidate framework information may be the information of the front-end framework that may be used when developing a front-end project. The above-mentioned target project may be a front-end development project that is being started. The above-mentioned candidate framework information set may include but is not limited to at least one of the following: Vue framework information, Angular framework information, React framework information, Svelte framework information. The above-mentioned target configuration information may be the project configuration information of the above-mentioned target project. The above-mentioned target configuration information may include but is not limited to at least one of the following: user basic information of the project development user, project basic information. The user basic information of the above-mentioned project development user may include but is not limited to at least one of the following: user work number, user department. The above-mentioned project basic information may include but is not limited to at least one of the following: project start time, project development duration.
[0032] As an example, the target framework information may be Vue framework information. The target configuration information may be [0397, front-end development department, 2020-04-05, 45 days].
[0033] In some optional implementations of some embodiments, the target frame information is determined by the following steps: determining the candidate frame information selected by the target user from the candidate frame information set as the target frame information.
[0034] In some optional implementations of some embodiments, the target configuration information is determined by the following steps: determining the configuration information input by the target user as the target configuration information.
[0035] Step 202, performing multi-frame encapsulation processing on the candidate framework information set, the target framework information and the target configuration information to generate a target configuration file.
[0036] In some embodiments, the execution subject may perform multi-frame encapsulation processing on the candidate framework information set, the target framework information and the target configuration information to generate a target configuration file. The multi-frame encapsulation processing may refer to encapsulating each candidate framework information in the candidate framework information set into the target configuration file when generating the target configuration file. In these implementations, each candidate framework information in the candidate framework information set is encapsulated into the target configuration file, so that the same target configuration file can support multiple front-end frameworks, thereby allowing project developers to flexibly switch the front-end framework used during the project development process, which is more applicable.
[0037] In some optional implementations of some embodiments, the execution subject performs multi-frame encapsulation processing on the candidate framework information set, the target framework information and the target configuration information to generate a target configuration file, which may include the following steps:
[0038] The first step is to determine the configuration item information of each candidate framework information in the candidate framework information set to obtain a configuration item information set, wherein the configuration item information can be used to ensure that the front-end project runs normally in the framework represented by the candidate framework information.
[0039] As an example, the configuration item information of each candidate framework information in the candidate framework information set may be stored in advance in a database, and the configuration item information of each candidate framework information in the candidate framework information set may be obtained by querying the database.
[0040] In the second step, the configuration item information in the configuration item information set that matches the target framework information is determined as the target configuration item information.
[0041] As an example, first, candidate framework information identical to the target framework information may be selected from the candidate framework information set as matching candidate framework information, and then the configuration item information of the matching candidate framework information may be determined as the target configuration item information.
[0042] As another example, the same unique identification field may be pre-set in the database for the candidate framework information and the configuration item information of the candidate framework information. Then, the unique identification field of the target framework information may be searched in the database, and the configuration item information identified by the unique identification field of the target framework information may be determined as the target configuration item information.
[0043] The third step is to encapsulate the above configuration item information set, the above target configuration item information and the above target configuration information to generate the above target configuration file.
[0044] As an example, the configuration item information set, the target configuration item information and the target configuration information may be packaged together to generate the target configuration file. Figure 3 As shown, the computing device 101 may encapsulate the configuration item information set 301 , the target configuration item information 302 , and the target configuration information 103 to generate the target configuration file 104 .
[0045] Step 203: Determine target service information according to the target configuration file.
[0046] In some embodiments, the execution subject may determine the target service information according to the target configuration file, wherein the target service information may be a service used to support the normal operation of the target project when the target project is running.
[0047] As an example, the target service information may be service information used to support the proxy service when starting the project. The service information selected or input by the user on the terminal device may be determined as the target service information.
[0048] In some optional implementations of some embodiments, the execution subject determines the target service information according to the target configuration file, which may include the following steps:
[0049] The first step is to determine the basic service information and targeted service information corresponding to the target project according to the target configuration file. The basic service information may be information about services that are essential to the operation of the target project. The targeted service information may be service information used to ensure the normal operation of optional functions when the target project is developed.
[0050] As an example, the optional function may be a compression function. The directional service information may be service information that ensures the normal operation of the compression function. The service information corresponding to the optional function selected by the user on the terminal device may be used as the directional service information. The basic service information and the directional service information may also be automatically matched for the target item through the target configuration file.
[0051] The second step is to combine the above basic service information and the above directional service information to generate the above target service information.
[0052] Step 204, performing multi-packager packaging processing on the packager information set, the target configuration file and the target service information to generate a target project file.
[0053] In some embodiments, the execution subject may perform multi-packager encapsulation processing on the packager information set, the target configuration file and the target service information to generate a target project file. The packager information set may include but is not limited to at least one of the following: Webpack packager information, Rollu packager information, Percal packager information. The multi-packager encapsulation processing may refer to encapsulating each packager information in the packager information set into the target project file when generating the target project file. In these implementations, each packager information in the packager information set is encapsulated into the target project file, so that the same target project file can support multiple packagers, so that project developers can flexibly switch the packagers used during the project development process, which is more applicable.
[0054] In some optional implementations of some embodiments, the execution subject performs multi-packager encapsulation processing on the packager information set, the target configuration file, and the target service information to generate a target project file, which may include the following steps:
[0055] In the first step, the packager information selected by the target user from the packager information set is determined as the target packager information. The packager information set may provide a variety of optional packager information for the user to select according to the front-end project development requirements.
[0056] The second step is to encapsulate the packager information set, the target configuration file and the target service information according to the target packager information to generate a target project file.
[0057] As an example, the packager represented by the target packager information may be used to package the target configuration file and the target service information together to generate the target project file. Figure 4 As shown, the computing device 101 may package the packager information set 106 , the target configuration file 104 and the target service information 105 according to the target packager information 401 to generate a target project file 107 .
[0058] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: the project files obtained by the project file generation method of some embodiments of the present disclosure can reduce the development threshold to a certain extent, improve the development efficiency and ensure that the developers develop in a stable and unified environment. Specifically, the reasons for the high development threshold and low development efficiency are that the project frameworks required by different front-end projects are quite different and the development environment configuration is complicated. Based on this, the project file generation method of some embodiments of the present disclosure not only encapsulates each candidate framework information in the candidate framework information set into the target configuration file, so that the same target configuration file can support multiple front-end frameworks, so that the project developers can flexibly switch the front-end framework used during the project development process. The information of each packer in the packer information set is also encapsulated into the target project file, so that the same target project file can support multiple packers, so that the project developers can flexibly switch the packers used during the project development process, and the applicability is stronger. Through the above-mentioned encapsulation process, the developers do not need to understand the internal implementation of the environment configuration, do not need to care about the packaging process, and focus on business development. Then, to a certain extent, the development threshold is reduced, the development efficiency is improved, and the developers are guaranteed to develop in a stable and unified environment.
[0059] Further references Figure 5 , which shows a process 500 of another embodiment of a project file generation method. The process 500 of the project file generation method includes the following steps:
[0060] Step 501, obtaining target framework information and target configuration information corresponding to the target project.
[0061] Step 502: Perform multi-frame encapsulation processing on the candidate framework information set, the target framework information and the target configuration information to generate a target configuration file.
[0062] In some embodiments, the specific implementation of steps 501-502 and the technical effects thereof can be referred to in Figure 2 The corresponding steps 201-202 in the embodiments are not described in detail here.
[0063] Step 503: in response to determining that an update operation is performed on the candidate framework information set and / or the target framework information and / or the target configuration information, an update operation is performed on the target configuration file to generate an updated target configuration file.
[0064] In some embodiments, the execution subject may, in response to determining that an update operation has been performed on the candidate framework information set and / or the target framework information and / or the target configuration information, perform an update operation on the target configuration file to generate an updated target configuration file. The update operation may be to add candidate framework information to the candidate framework information set or to delete candidate framework information from the candidate framework information set. The update operation may also be a change operation performed by the target user on the target framework information. The update operation may also be a change operation performed by the target user on the target configuration information.
[0065] As an example, the candidate framework information set may be [Vue framework information, Angular framework information, React framework information]. After the update operation is performed, the candidate framework information set may be [Vue framework information, Angular framework information, React framework information, Svelte framework information]. Then, it can be determined that the update content of the candidate framework information set is: adding framework information "Svelte framework information". Then, the framework information "Svelte framework information" may be added to the candidate framework information set encapsulated in the target configuration file to generate an updated target configuration file.
[0066] Step 504: determine the updated target configuration file as the target configuration file.
[0067] In some embodiments, the execution entity may determine the updated target configuration file as the target configuration file.
[0068] Step 505: Determine target service information according to the target configuration file.
[0069] Step 506, performing multi-packager packaging processing on the packager information set, the target configuration file and the target service information to generate a target project file.
[0070] In some embodiments, the specific implementation of steps 505-506 and the technical effects thereof can be referred to in Figure 2 The corresponding steps 203-204 in the embodiments are not described in detail here.
[0071] Step 507 , in response to determining that an update operation is performed on the packager information set, an update operation is performed on the target project file to generate an updated target project file.
[0072] In some embodiments, the execution subject may, in response to determining that an update operation has been performed on the packager information set, perform an update operation on the target project file to generate an updated target project file. The update operation may be to add packager information to the packager information set or to delete packager information from the packager information set.
[0073] As an example, the above-mentioned packager information set may be [Webpack packager information, Rollu packager information, Percal packager information]. After the update operation is performed, the packager information set may be [Webpack packager information, Rollu packager information]. Then it can be determined that the update content of the above-mentioned packager information set is: delete the packager information "Percal packager information". Then the packager information "Percal packager information" can be deleted from the packager information set encapsulated in the above-mentioned target project file to generate an updated target project file.
[0074] As an inventive point of an embodiment of the present disclosure, the above steps 503 and 507 solve the technical problem 2 mentioned in the background technology, "it is difficult to achieve a virtuous cycle in the expansion of the development team's technology stack". The factors that make it difficult to achieve a virtuous cycle in the expansion of the development team's technology stack are often as follows: the scalability of the existing front-end framework and packager is weak, that is, the horizontal expansion capability of the front-end framework type and the horizontal expansion capability of the packager type are weak. If the above factors are solved, the effect of promoting the expansion of the development team's technology stack to achieve a virtuous cycle can be achieved. In order to achieve this effect, the present disclosure updates the target configuration file according to the update operation of the candidate framework information set and / or the target framework information and / or the target configuration information, thereby achieving the horizontal expansion of the front-end framework type. The present disclosure also updates the target project file according to the update operation of the packager information set, thereby achieving the horizontal expansion of the packager type. Therefore, the present disclosure improves the horizontal expansion capability of the front-end framework type and the horizontal expansion capability of the packager type to a certain extent, and then promotes the expansion of the development team's technology stack to achieve a virtuous cycle.
[0075] Step 508: determine the updated target project file as the target project file.
[0076] In some embodiments, the execution entity may determine the updated target project file as the target project file.
[0077] from Figure 5 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 5The process 500 of the project file generation method in some corresponding embodiments reflects the update operation of the target configuration file and the packager information set. Therefore, the schemes described in these embodiments can improve the horizontal expansion capability of the front-end framework type and the horizontal expansion capability of the packager type to a certain extent, and then promote the expansion of the development team's technology stack to achieve a virtuous cycle.
[0078] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a project file generation device, and these device embodiments are similar to Figure 2 Corresponding to the embodiments of the methods shown, the device can be specifically applied to various electronic devices.
[0079] like Figure 6 As shown, the project file generation device 600 of some embodiments includes: an acquisition unit 601, a first encapsulation unit 602, a determination unit 603 and a second encapsulation unit 604. Among them, the acquisition unit 601 is configured to acquire the target framework information and the target configuration information corresponding to the target project, wherein the above-mentioned target framework information is included in the candidate framework information set. The first encapsulation unit 602 is configured to perform multi-frame encapsulation processing on the above-mentioned candidate framework information set, the above-mentioned target framework information and the above-mentioned target configuration information to generate a target configuration file. The determination unit 603 is configured to determine the target service information according to the above-mentioned target configuration file. The second encapsulation unit 604 is configured to perform multi-packager encapsulation processing on the packager information set, the above-mentioned target configuration file and the above-mentioned target service information to generate a target project file.
[0080] In an optional implementation of some embodiments, before determining the target service information according to the target configuration file, the project file generating device 600 further includes: a first updating unit (not shown in the figure) and a first determining unit (not shown in the figure). The first updating unit is configured to perform an updating operation on the target configuration file to generate an updated target configuration file in response to determining that an update operation is performed on the candidate framework information set and / or the target framework information and / or the target configuration information. The first determining unit is configured to determine the updated target configuration file as the target configuration file.
[0081] In an optional implementation of some embodiments, the project file generating device 600 further includes: a second updating unit (not shown in the figure) and a second determining unit (not shown in the figure). The second updating unit is configured to perform an updating operation on the target project file to generate an updated target project file in response to determining that an updating operation is performed on the packager information set. The second determining unit is configured to determine the updated target project file as the target project file.
[0082] In an optional implementation of some embodiments, the first encapsulation unit 602 of the project file generating device 600 may be further configured to: determine the configuration item information of each candidate framework information in the candidate framework information set to obtain a configuration item information set; determine the configuration item information in the configuration item information set that matches the target framework information as the target configuration item information; and encapsulate the configuration item information set, the target configuration item information and the target configuration information to generate the target configuration file.
[0083] In an optional implementation of some embodiments, the determination unit 603 of the project file generating device 600 may be further configured to: determine the basic service information and the targeted service information corresponding to the target project according to the target configuration file; and combine the basic service information and the targeted service information to generate the target service information.
[0084] In an optional implementation of some embodiments, the second encapsulation unit 604 of the project file generating device 600 may be further configured to: determine the packager information selected by the target user from the packager information set as the target packager information; and encapsulate the packager information set, the target configuration file and the target service information according to the target packager information to generate a target project file.
[0085] In an optional implementation of some embodiments, the target frame information is determined by the following steps: determining the candidate frame information selected by the target user from the candidate frame information set as the target frame information.
[0086] In an optional implementation manner of some embodiments, the target configuration information is determined by the following steps: determining the configuration information input by the target user as the target configuration information.
[0087] It is understood that the units described in the device 600 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 600 and the units included therein, and will not be described in detail here.
[0088] Reference below Figure 7 , which shows an electronic device (such as Figure 1The electronic devices in some embodiments of the present disclosure may include but are not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0089] like Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0090] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 7 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0091] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0092] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0093] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0094] The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist independently without being assembled into the electronic device. The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the target framework information and target configuration information corresponding to the target project, wherein the above-mentioned target framework information is included in the candidate framework information set. The above-mentioned candidate framework information set, the above-mentioned target framework information and the above-mentioned target configuration information are subjected to multi-frame encapsulation processing to generate a target configuration file. The target service information is determined according to the above-mentioned target configuration file. The packager information set, the above-mentioned target configuration file and the above-mentioned target service information are subjected to multi-packager encapsulation processing to generate a target project file.
[0095] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0096] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0097] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor including an acquisition unit, a generation unit, a determination unit, and a packaging unit. Among them, the names of these units do not constitute a limitation on the unit itself in certain cases, for example, the acquisition unit may also be described as a "unit for acquiring target framework information and target configuration information corresponding to the target project."
[0098] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0099] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A method for generating a project file, comprising: Obtain target framework information and target configuration information corresponding to the target project, wherein the target framework information is included in the candidate framework information set, wherein the candidate framework information is information of the front-end framework; Performing multi-frame encapsulation processing on the candidate framework information set, the target framework information and the target configuration information to generate a target configuration file; Determine target service information according to the target configuration file; The packager information set, the target configuration file and the target service information are subjected to multi-packager packaging processing to generate a target project file.
2. The method according to claim 1, wherein: Before determining the target service information according to the target configuration file, the method further includes: In response to determining that an update operation is performed on the candidate framework information set and / or the target framework information and / or the target configuration information, performing an update operation on the target configuration file to generate an updated target configuration file; The updated target configuration file is determined as the target configuration file.
3. The method according to claim 1, wherein: The method further comprises: In response to determining that an update operation is performed on the packager information set, performing an update operation on the target project file to generate an updated target project file; The updated target project file is determined as the target project file.
4. The method according to claim 1, wherein: The performing multi-frame encapsulation processing on the candidate framework information set, the target framework information and the target configuration information to generate a target configuration file includes: Determine configuration item information of each candidate framework information in the candidate framework information set to obtain a configuration item information set; Determine the configuration item information in the configuration item information set that matches the target framework information as the target configuration item information; The configuration item information set, the target configuration item information and the target configuration information are packaged to generate the target configuration file.
5. The method according to claim 1, wherein: The determining target service information according to the target configuration file includes: Determine basic service information and directional service information corresponding to the target project according to the target configuration file; The basic service information and the targeted service information are combined to generate the targeted service information.
6. The method according to any one of claims 1 to 5, wherein: The multi-packager encapsulation process is performed on the packager information set, the target configuration file and the target service information to generate a target project file, including: Determine the packager information selected by the target user from the packager information set as the target packager information; According to the target packager information, the packager information set, the target configuration file and the target service information are packaged to generate a target project file.
7. The method according to claim 1, wherein: The target framework information is determined by the following steps: The candidate frame information selected by the target user from the candidate frame information set is determined as the target frame information.
8. The method according to claim 1, wherein: The target configuration information is determined by the following steps: The configuration information input by the target user is determined as the target configuration information.
9. A project file generating device, comprising: An acquisition unit is configured to acquire target framework information and target configuration information corresponding to a target project, wherein the target framework information is included in a candidate framework information set, wherein the candidate framework information is information of a front-end framework; A first encapsulation unit is configured to perform multi-frame encapsulation processing on the candidate framework information set, the target framework information and the target configuration information to generate a target configuration file; a determining unit, configured to determine target service information according to the target configuration file; The second packaging unit is configured to perform multi-packager packaging processing on the packager information set, the target configuration file and the target service information to generate a target project file.
10. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.
11. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Reuse framework generating method, device and application system based on J2EE distributed architecture
CN103677788A
Java project development environment construction method and device
CN106775907A