Front-end project management method and device, computer device and storage medium

By acquiring project description information and template download modes, the method of cross-framework front-end project management solves the problem of low efficiency under different development frameworks, and enables efficient creation and updating of front-end projects.

CN116051056BActive Publication Date: 2026-01-23INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310186856.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2026-01-23
Estimated Expiration
2043-02-10

AI Technical Summary

Technical Problem

Existing technologies in front-end project development suffer from low efficiency during project creation and an inability to efficiently manage templates for multiple development frameworks due to the different package management tools corresponding to different front-end development frameworks.

Method used

This paper provides a front-end project management method that obtains candidate templates from the template download address by acquiring project description information and the current template download mode, and creates project file directories and configuration files. It supports online and offline modes and achieves efficient template management across frameworks.

Benefits of technology

It improves the development efficiency of front-end projects, ensures that projects can be created normally under any network conditions, supports template management for multiple frameworks, and simplifies the project update process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116051056B_ABST
    Figure CN116051056B_ABST
Patent Text Reader

Abstract

The application relates to a front-end project management method and device, computer equipment and a storage medium, and relates to the technical field of computers. The method can be used in the field of financial technology or other related fields. The method comprises the following steps: if there is a creation requirement of a front-end project, obtaining project description information and a current template download mode, obtaining a first project template from candidate templates stored in a template download address corresponding to the current template download mode according to the project description information, creating the front-end project according to the first project template, and obtaining a project file directory and a project configuration file of the front-end project. The method does not need to switch different package management tools for front-end project creation, improves the efficiency of obtaining the first project template, and improves the development efficiency of the front-end project. In addition, the first template project is obtained based on different template download modes according to the network condition of an electronic device where the package management tool is located, so that the front-end project can be created under any network condition.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a front-end project management method and device, computer equipment and storage medium. BACKGROUND

[0002] With the development of computer technology, the application of front-end project development is more and more widely. At present, the front-end project development usually adopts a package management tool to create based on the candidate templates in the corresponding front-end development framework.

[0003] However, since the package management tools corresponding to different front-end development frameworks are different, and the front-end project usually involves multiple different front-end development frameworks, the prior art needs to switch the package management tools corresponding to different front-end development frameworks to realize in the process of front-end project creation, and there is a problem of low efficiency of front-end project development. SUMMARY

[0004] Therefore, it is necessary to provide a front-end project management method and device, computer equipment and storage medium capable of improving the development efficiency of front-end development framework to solve the above technical problems.

[0005] In a first aspect, the present application provides a front-end project management method. The method comprises:

[0006] If there is a project creation requirement, obtaining project description information and a current template download mode;

[0007] According to the project description information, obtaining a first project template from the candidate templates stored in the template download address corresponding to the current template download mode; wherein the candidate templates include candidate templates under at least two front-end development frameworks;

[0008] According to the first project template, creating a front-end and a project file directory and a project configuration file of the front-end project.

[0009] In one of the embodiments, according to the first project template, creating a front-end project and a project file directory and a project configuration file of the front-end project, comprises:

[0010] According to the template file corresponding to the first project template, determining a front-end project file, and creating a front-end project according to the front-end project file;

[0011] According to the front-end project file, creating a project file directory of the front-end project;

[0012] According to the template information corresponding to the first project template, creating a project configuration file of the front-end project.

[0013] In one of the embodiments, according to the template information corresponding to the first project template, creating a project configuration file of the front-end project, comprises:

[0014] According to the hash value, the template version and the template identifier in the template information corresponding to the first project template, a project configuration file of the front-end project is created.

[0015] In one of the embodiments, the project description information and the current template download mode are acquired, including:

[0016] The project description information is acquired through command line prompt information;

[0017] According to the state of the offline mode switch recorded in the template configuration file, the current template download mode is determined.

[0018] In one of the embodiments, the method further includes:

[0019] If there is an update requirement of the front-end project, a project configuration file of the front-end project is acquired;

[0020] According to the template identifier of the first project template recorded in the project configuration file, a second project template is acquired from the candidate templates stored in the template download address corresponding to the current template download mode.

[0021] It is judged whether the first project template and the second project template with the same template identifier exist in the case of different template information.

[0022] If yes, the project file directory and the project configuration file of the front-end project are updated according to the second project template corresponding to the template identifier with different template information.

[0023] In one of the embodiments, it is judged whether the first project template and the second project template with the same template identifier exist in the case of different template information, including:

[0024] According to the template information corresponding to each second project template, the hash value, the template version and the template identifier corresponding to each second project template are determined.

[0025] It is judged whether the first project template and the second project template with the same template identifier exist in the case of different hash value and / or template version.

[0026] In one of the embodiments, if yes, the project file directory and the project configuration file of the front-end project are updated according to the second project template corresponding to the template identifier with different template information, including:

[0027] If yes, and the template identifier with different template information belongs to the updatable identifier, the project file directory and the project configuration file of the front-end project are updated according to the second project template corresponding to the template identifier with different template information.

[0028] In one of the embodiments, if the current template download mode is online download, the method further comprises:

[0029] According to the second project template corresponding to the different template identification of the template information, the candidate template stored in the template download address corresponding to the offline download mode is updated.

[0030] In one of the embodiments, the method further comprises:

[0031] According to the project file directory before and after the front-end project is updated, the file change information of the project is generated and output.

[0032] In one of the embodiments, the method further comprises:

[0033] According to the project configuration file of the project, the association information of the project and the template is generated; the association information is used to determine whether to perform the deletion operation on the template to be deleted when there is a template deletion demand.

[0034] In a second aspect, the application further provides a project management device. The device comprises:

[0035] The information acquisition module is used to acquire the project description information and the current template download mode if there is a creation demand of the front-end project.

[0036] The template acquisition module is used to acquire the first project template from the candidate template stored in the template download address corresponding to the current template download mode according to the project description information; wherein the candidate template stored in the template download address comprises candidate templates under at least two front-end development frameworks.

[0037] The project creation module is used to create the front-end project, the project file directory and the project configuration file of the front-end project according to the first project template.

[0038] In a third aspect, the application further provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor realizes the following steps when executing the computer program:

[0039] If there is a creation demand of the front-end project, the project description information and the current template download mode are acquired.

[0040] The first project template is acquired from the candidate template stored in the template download address corresponding to the current template download mode according to the project description information; wherein the candidate template stored in the template download address comprises candidate templates under at least two front-end development frameworks.

[0041] The front-end project, the project file directory and the project configuration file of the front-end project are created according to the first project template.

[0042] In a fourth aspect, the present application provides a computer readable storage medium. The computer readable storage medium has a computer program stored thereon, and the computer program, when executed by a processor, implements the following steps:

[0043] If there is a need to create a front-end project, obtaining project description information and a current template download mode;

[0044] According to the project description information, obtaining a first project template from candidate templates stored in a template download address corresponding to the current template download mode; wherein the candidate templates stored in the template download address include candidate templates under at least two front-end development frameworks;

[0045] According to the first project template, creating a front-end project, and a project file directory and a project configuration file of the front-end project.

[0046] In a fifth aspect, the present application provides a computer program product. The computer program product includes a computer program, and the computer program, when executed by a processor, implements the following steps:

[0047] If there is a need to create a front-end project, obtaining project description information and a current template download mode;

[0048] According to the project description information, obtaining a first project template from candidate templates stored in a template download address corresponding to the current template download mode; wherein the candidate templates stored in the template download address include candidate templates under at least two front-end development frameworks;

[0049] According to the first project template, creating a front-end project, and a project file directory and a project configuration file of the front-end project.

[0050] The front-end project management method, device, computer device and storage medium provided in the above embodiment, if there is a creation requirement of the front-end project, the project description information and the current template download mode are obtained, the first project template is obtained from the candidate templates stored in the template download address corresponding to the current template download mode according to the project description information, the front-end project is created according to the first project template, and the project file directory and the project configuration file of the front-end project. Since the candidate templates stored in the template download address of the package management tool of the present application include candidate templates under multiple front-end development frameworks, when it is required to create a front-end project based on multiple different front-end development frameworks, the package management tool of the present embodiment only needs to obtain all candidate templates corresponding to multiple front-end development frameworks through its own template download address, without the need to switch the package management tools corresponding to different front-end development frameworks to obtain the candidate templates required for creating the front-end project, thereby improving the efficiency of obtaining the first project template and further improving the development efficiency of the front-end project. In addition, the present embodiment introduces the template download mode, and selects the template download address corresponding to the first template project according to the network condition of the electronic device where the package management tool is located, for example, selects the online template download mode in the case of network connection, and selects the offline template download mode in the case of no network connection, so that the package management tool can normally complete the creation of the front-end project under any network condition. BRIEF DESCRIPTION OF DRAWINGS

[0051] Figure 1 An application environment diagram of a front-end project management method provided by the present embodiment;

[0052] Figure 2 A flowchart of a first front-end project management method provided by the present embodiment;

[0053] Figure 3 A flowchart of creating a front-end project and its project file directory and project configuration file provided by the present embodiment;

[0054] Figure 4 A flowchart of obtaining project description information and a current template download mode provided by the present embodiment;

[0055] Figure 5 A flowchart of updating a front-end project provided by the present embodiment;

[0056] Figure 6 A flowchart of a second front-end project management method provided by the present embodiment;

[0057] Figure 7 A structure block diagram of a first front-end project management device provided by the present embodiment;

[0058] Figure 8A structure block diagram of a second front-end project management device provided in the embodiment;

[0059] Figure 9 A structure block diagram of a third front-end project management device provided in the embodiment;

[0060] Figure 10 A structure block diagram of a fourth front-end project management device provided in the embodiment;

[0061] Figure 11 A structure block diagram of a fifth front-end project management device provided in the embodiment;

[0062] Figure 12 A structure block diagram of a sixth front-end project management device provided in the embodiment;

[0063] Figure 13 A structure block diagram of a seventh front-end project management device provided in the embodiment;

[0064] Figure 14 A structure block diagram of an eighth front-end project management device provided in the embodiment;

[0065] Figure 15 An internal structure diagram of a computer device provided in the embodiment. DETAILED DESCRIPTION

[0066] In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application.

[0067] The front-end project management method provided in the embodiments of the present application can be applied in an application environment as shown in Figure 1 In an embodiment, a computer device is provided, which can be a server, and an internal structure diagram of the computer device can be as shown in Figure 1 The computer device includes a processor, a memory and a network interface connected through a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The database of the computer device is configured to store project template data. The network interface of the computer device is configured to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a front-end project management method.

[0068] The application discloses a front-end project management method and device, computer equipment and a storage medium. If there is a creation demand of a front-end project, project description information and a current template download mode are acquired, a first project template is acquired from a candidate template stored in a template download address corresponding to the current template download mode according to the project description information, and a front-end project is created according to the first project template, and a project file directory and a project configuration file of the front-end project.

[0069] In one embodiment, as shown in Figure 2 , a front-end project management method is provided. The method is applied to a server in Figure 1 for example, and can be applied to a package management tool installed in the server for managing project templates, that is, the front-end project management method provided in the embodiments is executed by the package management tool installed in the server for managing project templates. The method includes the following steps.

[0070] S201 If there is a creation demand of a front-end project, project description information and a current template download mode are acquired.

[0071] The front-end project can be a project displayed on a browser of a personal computer (PC) or a mobile terminal.

[0072] The project description information can be related information describing the content of the project. Optionally, the project description information can include, but is not limited to, a project name, project creator information and a project template identifier.

[0073] The current template download mode can be a mode of a current template determined based on a network condition of a device where the package management tool is executed. Optionally, the optional template download mode in the embodiments can include an offline template download mode and an online template download mode. The offline template download mode is a mode of acquiring a template required by the front-end project from a local device offline, and the online template download mode is a mode of acquiring the template required by the front-end project from the Internet online. Accordingly, the current template download mode is the offline template download mode or the online template download mode.

[0074] Optionally, in the embodiment, if the project creator exists the front-end project creation demand, the package management tool for managing the project template is called, the project description information of the front-end project that the project creator wants to create is input, and the project creation button is clicked. Correspondingly, if the package management tool detects the triggering instruction of the project creation button, it is indicated that the front-end project creation demand is detected, and the project description information of the front-end project that the project creator wants to create is obtained. After obtaining the project description information, it is further needed to determine the current template download mode. Specifically, the embodiment can have many ways to determine the current template download mode, and the embodiment is not limited in this regard. One implementable way can be to determine the current template download mode through the network status of the local electronic device where the front-end project is created, that is, if the current network status is a network connection normal status, the current template download mode is an online template download mode, and if the current network status is a network connection disconnection status, the current template download mode is an offline template download mode. Another implementable way can be to determine the current template download mode based on the template download mode information pre-configured by the project creator, for example, the user pre-configures the template download mode that he or she wants to use in the setting option of the package management tool, and at this time, the package management tool can directly obtain the template download mode configured by the user as the current template download mode.

[0075] S202 obtaining, according to the project description information, a first project template from the candidate templates stored in the template download address corresponding to the current template download mode.

[0076] The template download address can be the storage address of the candidate templates of various front-end development frameworks required for creating the front-end project. Specifically, the candidate templates stored in the template download address in the embodiment include candidate templates under at least two front-end development frameworks. For example, all candidate templates under currently commonly used front-end development frameworks can be stored in the template download address. Since the current template download mode in the embodiment can be an offline template download mode or an online template download mode, different current template download modes correspond to different template download addresses. For example, if it is an offline template download mode, it corresponds to a local database pre-set in the electronic device where the front-end project is located, and if it is an online template download mode, it corresponds to a remote database stored on the Internet. Optionally, the template download address can be a remote database (Git repository) address or a local database address. The remote database is a database shared by multiple parties stored in the Internet, and the project template in the remote database can be obtained through the Internet connection. The local database is a database pre-set in the electronic device where the front-end project is created, and the project template in the local database can be directly obtained without the Internet connection.

[0077] The candidate template can be a template file developed based on a front-end development framework for a user to create a project, for example, a script file required for creating a project, or an application installation package required for creating a project.

[0078] The first project template can be a project template required for creating a project.

[0079] Optionally, since the project description information records the project template identifier required for creating the front-end project, the embodiment can parse the obtained project description information to obtain the project template identifier in the project description information, obtain the template download address corresponding to the current template download mode from the preset template download address table, jump to the template download address, compare the project template identifier with candidate template identifiers of all candidate templates under the template download address, and take the candidate template corresponding to the same candidate template identifier as the first project template. It should be noted that if the current template download mode is the online mode, the first project template is obtained from the candidate templates stored in the remote database address corresponding to the online mode; if the current template download mode is the offline mode, the first project template is obtained from the candidate templates stored in the local database address corresponding to the online mode.

[0080] S203 creates a front-end project according to the first project template, and a project file directory and a project configuration file of the front-end project.

[0081] The project file directory can be a directory of all files required for creating a front-end project, that is, the project file directory records each file required for creating a front-end project.

[0082] The project configuration file can be a file recording information of a project template (such as the first project template) for creating the front-end project. Optionally, the project configuration file can record a template identifier, a template download address, a template version, and a hash value corresponding to each project template (such as the first project template) for creating the front-end project. Optionally, the project configuration file can further include project information of the front-end project, for example, a project name and project creator information of the front-end project.

[0083] Optionally, the hash value of the project template can be a result of hash calculation on template content of the project template.

[0084] Optionally, the obtained first project template is parsed, all front-end project files corresponding to the front-end project are parsed from the first project template, and all parsed front-end project files are added to the preset same front-end project folder, so as to complete the creation of the front-end project, and a blank project file directory is created for the front-end project, then the file names of all front-end project files in the front-end project folder are counted, the counted file names are added to the blank project file directory, and a project file directory of the created front-end project is obtained. The first project template corresponding to the front-end project is parsed, template information corresponding to the first project template is obtained, and a blank project configuration file is created for the front-end project, the template information is added to the blank project configuration file, and a project configuration file of the created front-end project is obtained. Optionally, since the project configuration file can further include project information of the front-end project, after obtaining the template information corresponding to the first project template, the project description information corresponding to the front-end project can be parsed, the project information corresponding to the front-end project is obtained, and the obtained template information and project information are added to the pre-created blank project configuration file at the same time, so as to obtain the project configuration file of the created front-end project.

[0085] The above front-end project management method, if there is a project creation requirement, obtains project description information and a current template download mode, according to the project description information, obtains a first project template from candidate templates stored in a template download address corresponding to the current template download mode, and according to the first project template, creates a project file directory and a project configuration file of the project. Since the candidate templates stored in the template download address of the package management tool of the present application include candidate templates under multiple front-end development frameworks, when it is necessary to create a front-end project based on multiple different front-end development frameworks, the package management tool of the present embodiment can obtain all candidate templates corresponding to multiple front-end development frameworks through its own template download address, without switching different package management tools corresponding to different front-end development frameworks to obtain candidate templates required for creating a front-end project, thereby improving the efficiency of obtaining the first project template and further improving the development efficiency of the front-end project. In addition, the present embodiment introduces a template download mode, selects a template download address corresponding to a different template download mode to obtain a first template project according to the network condition of the electronic device where the package management tool is located, for example, selects an online template download mode in the case of network connection, and selects an offline template download mode in the case of no network connection, so that the package management tool can normally complete the creation of the front-end project under any network condition.

[0086] It should be noted that after the front-end project is created according to the first project template, and the project file directory and the project configuration file of the front-end project are created, the associated information of the front-end project and the template is generated according to the project configuration file of the project. The associated information is used to determine whether to perform a deletion operation on the template to be deleted when the template deletion requirement exists. Specifically, based on the front-end project name and the first project template identifier recorded in the created project configuration file, the front-end project name is associated with the first project template identifier for creating the project. Alternatively, when the template deletion requirement is detected, the template identifier of the template to be deleted input by the manager through the terminal can be used to search, from the local template download address of each candidate template, whether the candidate template corresponding to the template identifier of the template to be deleted exists in the template download address. If not, the package management tool outputs prompt information that the template to be deleted does not exist; if so, further based on the associated information of the front-end project and the template of all the front-end projects created in the history, the number of associated information corresponding to the template to be deleted is determined. If the number of associated information corresponding to the template to be deleted is 0, the template to be deleted is deleted from the local template download address of each candidate template; if the number of associated information corresponding to the template to be deleted is not 0, the package management tool outputs prompt information that the template to be deleted is still in use and cannot be deleted. The advantage of such a setting is that the use of the project template under different front-end development frameworks can be directly judged based on the associated information, which provides convenience for replacing and deleting the project template when the front-end project is updated in the future, further improves the convenience of managing the project template through the package management tool, and ensures the maintainability and effectiveness of the project template.

[0087] Figure 3 A flowchart of a process of creating a front-end project and its project file directory and project configuration file in an embodiment is shown. Based on the above-mentioned embodiment, the present embodiment provides an optional way of creating a front-end project and its project file directory and project configuration file, including the following steps:

[0088] S301 determines a front-end project file according to the template file corresponding to the first project template, and creates a front-end project according to the front-end project file.

[0089] The template file can be a file used to create a project in advance. Alternatively, the template file can be a template installation package or a pre-written template script.

[0090] Optionally, for each template file corresponding to the first project template, according to the file type of the template file, the obtaining manner of the front-end project file corresponding to the template file is determined, if the file type of the template file is a template installation package, the template file is installed, and all files generated after installation are taken as the front-end project file corresponding to the template file, if the file type of the template file is a template script, the template file is directly taken as the front-end project file, and all front-end project files corresponding to all first project templates obtained are added to the same front-end project folder set in advance, and the creation of the front-end project is completed.

[0091] S302, according to the front-end project file, creating a project file directory of the front-end project.

[0092] Optionally, after the front-end project is created, a blank project file directory is created for the front-end project, then the file names of all front-end project files in the front-end project folder are counted, the counted file names are added to the blank project file directory, and the project file directory of the front-end project created this time is obtained.

[0093] S303, according to the template information corresponding to the first project template, creating a project configuration file of the front-end project.

[0094] The template information can be information describing the content of the template, and optionally, the template information can include a hash value, a template version and a template identifier corresponding to the project template. The template identifier can be a unique identifier representing the project template, and optionally, the template identifier can be the name of the project template.

[0095] Optionally, the project configuration file of the front-end project can be created according to the hash value, the template version and the template identifier in the template information corresponding to the first project template. Specifically, each first project template obtained can be parsed, the hash value, the template version and the template identifier corresponding to each first project template are obtained from the template information corresponding to each first project template, a blank project configuration file is created for the front-end project, and the hash value, the template version and the template identifier corresponding to the first project template are added to the blank project configuration file, and the project configuration file of the front-end project created this time is obtained.

[0096] The embodiment provides a new solution for creating a front-end project, and further creates a project file directory and a project configuration file after the project is created, thereby providing a guarantee for subsequent project updating and candidate template management of a package management tool. For example, the front-end project is updated by using the project file directory and the project configuration file, and the candidate template of the package management tool is updated and managed, the project created by using the project configuration file is associated with the template, and the candidate template of the package management tool is deleted and managed. The deletion management of the candidate template of the package management tool is introduced in the above embodiment, and the process of updating the front-end project by using the project file directory and the project configuration file and updating and managing the candidate template of the package management tool will be introduced in subsequent embodiments.

[0097] Figure 4 A flowchart for acquiring project description information and a current template download mode in an embodiment is shown. In order to quickly build a front-end project that is more suitable for the needs of a project creator, the embodiment provides an optional way of quickly acquiring project description information and a current template download mode that are more suitable for the needs of a project creator, including the following steps.

[0098] S401 acquiring project description information by using command line prompt information.

[0099] Optionally, according to the types of project description information required for creating a front-end project, the command line prompt information corresponding to the project description information of each type is determined from the pre-installed command line program, each command line prompt information is output in turn, and the project creator can fill in the project description information based on each command line prompt information. Correspondingly, the package management tool can acquire the project description information input by the project creator.

[0100] S402 determining a current template download mode according to the state of an offline mode switch recorded in a template configuration file.

[0101] The template configuration file can be a file used for acquiring, recording and configuring project templates. Optionally, the template configuration file can include a template identifier, an offline mode switch, a template download address and association information (i.e., the association information between a project and a template introduced in the above embodiment) of each project template. The state of the offline mode switch can be manually set in the template configuration file of the package management tool according to requirements in advance, or automatically set by the package management tool based on a network state.

[0102] Optionally, the acquired template configuration file is parsed to obtain the state of the offline mode switch recorded in the template configuration file. If the state of the offline mode switch is a closed state, the current template download mode is an online mode, and otherwise, the current template download mode is an offline mode.

[0103] In addition, the method for creating the template configuration file can be as follows: judging whether the template configuration file exists in the local device (i.e., the electronic device where the package management tool is located), if the template configuration file exists, the template configuration file can be directly used, and if the template configuration file does not exist, the template configuration file can be created by manual operation or by running a command line program.

[0104] The above information obtaining and mode determining method obtains the project description information through a command line prompt, and determines the current template download mode according to the state of the offline mode switch recorded in the template configuration file, thereby providing guarantee for subsequent rapid construction of a front-end project that is more in line with the needs of a project creator, and improving the speed and accuracy of obtaining the project description information and the current template download mode.

[0105] Figure 5 A flowchart of an embodiment of updating a front-end project is shown. Since the prior art needs to switch different package management tools corresponding to different front-end development frameworks to implement the creation of a front-end project, the current front-end project created based on multiple package management tools is not supported for updating. If there is a need for updating, the project creator can only create a new front-end project based on the updating needs by calling each package management tool, thereby affecting the updating efficiency of the front-end project. To this end, the embodiment provides an optional way of updating a front-end project, including the following steps.

[0106] S501If there is a need for updating the front-end project, obtaining a project configuration file of the front-end project.

[0107] Optionally, in the embodiment, if the project creator has a need for updating the front-end project, the package management tool for managing the project template is called, and the front-end project that needs to be updated is further selected through the package management tool. Then, the project update button is clicked. Correspondingly, if the package management tool detects the trigger instruction of the project update button, it means that the need for updating the front-end project is detected. At this time, the project configuration file corresponding to the front-end project that needs to be updated selected by the project creator is obtained.

[0108] S502According to the template identifier of the first project template recorded in the project configuration file, obtaining a second project template from the candidate templates stored in the template download address corresponding to the current template download mode.

[0109] The second project template is similar to the first project template, and both belong to the candidate templates stored in the template download address and used to create a project. The difference is that the first project template is obtained from the template database corresponding to the current template download mode at the time of project creation. The second project template is obtained from the template database corresponding to the current template download mode at the time of project update. Because the time corresponding to the project creation and the project update is different, and the candidate templates stored in the template download address within the different time may have a version upgrade, when there is a template version upgrade, the first project template and the second project template are different, and if there is no template version upgrade, the first project template and the second project template are the same.

[0110] Optionally, the obtained project configuration file of the front-end project to be updated is parsed to obtain the template identifiers of all the first project templates recorded in the project configuration file. Meanwhile, the template download address corresponding to the current template download mode is obtained based on the current template download mode, and the template identifiers are compared with the template identifiers of the candidate templates stored in the template download address corresponding to the current template download mode. The candidate template with the same template identifier as the first project template is determined as the second project template. It should be noted that if the current template download mode is the online template download mode, the second project template is obtained from the candidate templates stored in the remote database address corresponding to the online template download mode; if the current template download mode is the offline template download mode, the second project template is obtained from the candidate templates stored in the local database address corresponding to the offline template download mode.

[0111] S503 judges whether the first project template and the second project template with the same template identifier exist in the case of different template information.

[0112] Specifically, the embodiment can compare the template information of the first project template and the second project template with the same template identifier for consistency. If the template information of the two templates is the same, the front-end project does not need to be updated, and if the template information is different, the front-end project needs to be updated.

[0113] Optionally, if the content recorded in the template information is more, in order to improve the judgment efficiency of the present step, the embodiment can further determine the hash value, the template version and the template identifier corresponding to each second project template according to the template information corresponding to each second project template, and judge whether the first project template and the second project template with the same template identifier exist in the case of different hash values and / or template versions.

[0114] Specifically, the second project templates are parsed to determine the hash value, template version and template identifier corresponding to each second project template from the template information corresponding to each second project template, and the first project templates are parsed to determine the hash value, template version and template identifier corresponding to each first project template from the template information corresponding to each first project template. Then, the first project templates and the second project templates with the same template identifier are divided into a group of template pairs, and for each group of template pairs, the hash values and / or template versions corresponding to the two templates are compared to determine whether there is a difference.

[0115] It should be noted that if the hash values and template versions corresponding to the two templates in each group of template pairs are compared, if there is any difference in the hash values and template versions corresponding to the two templates, it is considered that the first project template and the second project template have different template information.

[0116] S504 If there is, the project file directory and the project configuration file of the front-end project are updated according to the second project template corresponding to the template identifier with different template information.

[0117] Optionally, if the hash values and / or template versions of the first project template and the second project template with the same template identifier are different, the second project template corresponding to the template identifier with different template information is taken as an updated template, the front-end project file of the updated template is determined according to the template file of the updated template, the front-end project file of the updated template is compared with the front-end project file of the first project template, for the front-end project file existing in the updated template but not existing in the first project template, the file name of the front-end project file of the updated template is added to the project file directory of the front-end project, and for the front-end project file existing in the first project template but not existing in the updated template, the file name of the front-end project file is deleted from the project file directory of the front-end project, thereby completing the update of the project file directory of the front-end project. At the same time, the hash value corresponding to the second project template is obtained by performing hash calculation on the template content of the second project template, the template version corresponding to the second project template is obtained from the second project template, and the hash value and the template version in the project configuration file are replaced by the hash value and the template version corresponding to the second project template, thereby completing the update of the project configuration file.

[0118] It should be noted that due to the update of some project files of the front-end project, the updated front-end project may have project structure errors, resulting in the front-end project being unable to run normally. Therefore, the present embodiment can also set a white list in the project configuration file, which records the front-end project file identifier and the front-end project file address of the front-end project file that can be updated. Therefore, when performing the update of the project file directory and the project configuration file of the front-end project, if there is a template identifier that is different from the template information, and the template identifier belongs to the updateable identifier, the second project template corresponding to the template identifier that is different from the template information is used to update the project file directory and the project configuration file of the front-end project.

[0119] Specifically, if the hash value and / or the template version of the first project template and the second project template that have the same template identifier are different, the second project template corresponding to the template identifier that is different from the template information is used as the template to be updated. According to the white list in the project configuration file corresponding to the first project template, the front-end project files corresponding to the updateable identifiers recorded in the white list are determined as the first front-end project files to be updated. Based on the file name of the front-end project file to be updated, the front-end project file with the same file name as the template file in the template to be updated is determined as the second front-end project file. The first front-end project file is updated based on the second front-end project file, and the update of the front-end project is completed. The names of the front-end project files of the updated front-end project are counted, and the file directory of the front-end project is generated using the counted file names, and the update of the project file directory of the front-end project is completed. Finally, the template content of the second project template is hashed to obtain the hash value corresponding to the second project template. The template version corresponding to the second project template is obtained from the second project template. The hash value and the template version corresponding to the second project template are used to replace the hash value and the template version in the project configuration file, and the update of the project configuration file is completed.

[0120] Alternatively, since the association information between the front-end project and the template is generated based on the front-end project and the project template used to create the front-end project, after the front-end project is updated based on the second project template, the association information may also change. Therefore, the present embodiment also needs to update the association information between the front-end project and the template. Specifically, the front-end project name and the updated template identifier recorded in the updated project configuration file are associated, and the original association information is replaced based on the association information.

[0121] S505If not, stop updating the front-end project, and the project file directory and the project configuration file of the front-end project.

[0122] Compared with the prior art, the above updating project method can only call the package management tool of different front-end development frameworks based on the updating requirement, and complete the updating of the front-end project by recreating the front-end project. In the embodiment, the second project template can be directly obtained based on the updating requirement of the front-end project, and the difference between the first project template and the second project template with the same template identifier is determined, so that the front-end project created by the project template of different front-end development frameworks is updated, and the updating efficiency of the front-end project is further improved.

[0123] Optionally, in order to ensure the comprehensiveness and timeliness of the candidate templates stored in the local database address, the embodiment can update the candidate templates stored in the local database managed by the package management tool while updating the front-end project. Optionally, if the current template download mode is the online template download mode, the candidate templates stored in the template download address corresponding to the offline template download mode are updated according to the second project template corresponding to the template identifier with different template information. Specifically, after updating the front-end project, if the current template download mode is the online template download mode, the candidate template with the same template identifier stored in the template download address corresponding to the offline template download mode is replaced by the second project template corresponding to the template identifier with different template information, that is, the candidate template stored in the template download address corresponding to the offline template download mode is updated. The advantage of this setting is that the comprehensiveness and timeliness of the candidate templates stored in the local database are ensured.

[0124] It should be noted that in order to enable the project creator to more intuitively understand the updating of the project, the application can generate and output the file change information of the front-end project according to the project file directories before and after the updating of the front-end project. The file change information can be information recording the increase or deletion of the front-end project files in the project file directory of the project. Optionally, according to the project file directories before and after the updating of the front-end project, the project file directory before the updating of the front-end project is determined as the first project file directory, the project file directory after the updating of the front-end project is determined as the second project file directory, and the front-end project file names different between the first project file directory and the second project file directory are taken as the file change information of the front-end project. The advantage of this setting is that the project creator does not need to manually find the changed front-end project files one by one, and the updating of the front-end project is more intuitively displayed, so that the project creator can more quickly and accurately determine the change of the front-end project files and the updating of the front-end project.

[0125] In one embodiment, an optional method for project management is provided, which is applied to a server as an example. As shown in Figure 6 the method comprises the following steps:

[0126] S601 If there is a project creation requirement, obtain project description information through command line prompt information.

[0127] S602 According to the state of the offline mode switch recorded in the template configuration file, determine the current template download mode.

[0128] S603 According to the project description information, obtain the first project template from the candidate templates stored in the template download address corresponding to the current template download mode.

[0129] S604 According to the template file corresponding to the first project template, determine the front-end project file, and create the front-end project according to the front-end project file.

[0130] S605 According to the front-end project file, create the project file directory of the front-end project.

[0131] S606 According to the template information corresponding to the first project template, create the project configuration file of the front-end project.

[0132] S607 According to the project configuration file of the project, generate the association information of the front-end project and the template.

[0133] Among them, the association information is used to determine whether to perform a deletion operation on the template to be deleted when there is a template deletion requirement.

[0134] S608 If there is a project update requirement, obtain the project configuration file of the front-end project.

[0135] S609 According to the template identifier of the first project template recorded in the project configuration file, obtain the second project template from the candidate templates stored in the template download address corresponding to the current template download mode.

[0136] S610 According to the template information corresponding to each second project template, determine the hash value, template version and template identifier corresponding to each second project template.

[0137] S611 Determine whether the first project template and the second project template with the same template identifier exist in the case of different hash values and / or template versions, if so, execute step S612, if not, execute step S615.

[0138] S612 If there is, and the template identifier with different template information belongs to an updatable identifier, update the project file directory and the project configuration file of the front-end project according to the second project template corresponding to the template identifier with different template information.

[0139] S613 updates the candidate template stored in the template download address corresponding to the offline download mode according to the second project template corresponding to the template information with different template identifiers.

[0140] S614 generates and outputs the file change information of the front-end project according to the project file directory before and after the front-end project is updated.

[0141] S615 stops updating the front-end project, the project file directory of the front-end project, and the project configuration file if the front-end project does not exist.

[0142] It should be noted that steps S601-S607 in this embodiment are the process of creating a front-end project, and steps S608-S615 are the process of updating the front-end project, wherein steps S601-S607, i.e., the process of creating a front-end project, and steps S608-S615, i.e., the process of updating the front-end project, can be executed separately, and steps S612 and S613 can be executed synchronously.

[0143] It should be understood that although each step in the flowchart involved in each embodiment described above is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless explicitly stated herein, the execution of these steps has no strict sequence limitation, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each embodiment described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.

[0144] Based on the same inventive concept, the embodiments of the present application also provide a front-end project management device for implementing the above-mentioned front-end project management method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, and therefore the specific limitations in one or more front-end project management device embodiments provided below can refer to the limitations of the front-end project management method described above, which will not be repeated here.

[0145] In one embodiment, as shown in Figure 7 a front-end project management device 1 is provided, comprising an information acquisition module 10, a template acquisition module 11, and a project creation module 12, wherein:

[0146] The information acquisition module 10 is configured to acquire project description information and a current template download mode if there is a need to create a front-end project.

[0147] The template acquisition module 11 is used to acquire the first project template from the candidate templates stored under the template download address corresponding to the current template download mode, based on the project description information; wherein, the candidate templates stored under the template download address include at least two candidate templates under front-end development frameworks.

[0148] Project creation module 12 is used to create a front-end project based on the first project template, as well as the project file directory and project configuration file of the front-end project.

[0149] In one embodiment, such as Figure 8 As shown, Figure 7 The project creation module 12 includes:

[0150] The file directory creation unit 120 is used to determine the front-end project file based on the template file corresponding to the first project template, and to create the front-end project based on the front-end project file.

[0151] File directory creation unit 121 is used to create the project file directory of the front-end project based on the front-end project files.

[0152] Configuration file creation unit 122 is used to create the project configuration file for the front-end project based on the template information corresponding to the first project template.

[0153] In one embodiment, Figure 8 The configuration file creation unit 122 is also used to create the project configuration file of the front-end project based on the hash value, template version and template identifier in the template information corresponding to the first project template.

[0154] In one embodiment, such as Figure 9 As shown, Figure 7 The information acquisition module 10 includes:

[0155] Information acquisition unit 100 is used to acquire project description information through command line prompts;

[0156] The mode determination unit 101 is used to determine the current template download mode based on the status of the offline mode switch recorded in the template configuration file.

[0157] In one embodiment, such as Figure 10 As shown, Figure 7 The front-end project management device 1 also includes:

[0158] Configuration file retrieval module 13 is used to retrieve the project configuration file of the front-end project if there is a need to update the project.

[0159] The second template determination module 14 is used to obtain the second project template from the candidate templates stored under the template download address corresponding to the current template download mode, based on the template identifier of the first project template recorded in the project configuration file.

[0160] Information judgment module 15 is used to determine whether there are differences in template information between the first project template and the second project template with the same template identifier;

[0161] The project update module 16 is used to update the front-end project, as well as the project file directory and project configuration file of the front-end project, according to the second project template corresponding to the different template identifiers in the template information if it exists.

[0162] In one embodiment, such as Figure 11 As shown, Figure 10 The information judgment module 15 includes:

[0163] The second template information determination unit 150 is used to determine the hash value, template version and template identifier corresponding to each second project template based on the template information corresponding to each second project template.

[0164] The template information judgment unit 151 is used to determine whether there are different hash values ​​and / or template versions between the first project template and the second project template with the same template identifier.

[0165] In one embodiment, Figure 10 The project update module 16 is also used to update the project file directory and project configuration file of the front-end project according to the second project template corresponding to the template identifier with different template information if there exists a template identifier with different template information.

[0166] In one embodiment, such as Figure 12 As shown, Figure 10 The front-end project management device 1 also includes:

[0167] The template update module 17 is used to update the candidate templates stored at the template download address corresponding to the offline download mode based on the second project template corresponding to the different template identifiers in the template information.

[0168] In one embodiment, such as Figure 13 As shown, Figure 10 The front-end project management device 1 also includes:

[0169] The change output module 18 is used to generate and output the file change information of the project based on the project file directory before and after the front-end project is updated.

[0170] In one embodiment, such as Figure 14 As shown,Figure 7 The project management apparatus 1 in the method further comprises:

[0171] The association information generation module 19 is configured to generate association information of the project and the template according to a project configuration file of the project, and the association information is used to determine whether to perform a deletion operation on the template to be deleted when there is a deletion requirement of the template.

[0172] The modules in the front-end project management apparatus can be realized by software, hardware or a combination thereof. The modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a memory in the computer device in software form, so as to be called and executed by the processor to perform operations corresponding to the modules.

[0173] In an embodiment, a computer device is provided, which can be a terminal, and an internal structure diagram of the computer device can be as shown in FIG. 1. The computer device comprises a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is configured to perform wired or wireless communication with an external terminal. The wireless communication can be achieved by WIFI, mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by the processor to implement a front-end project management method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad or mouse, etc. Figure 15

[0174] Those skilled in the art can understand that the structure shown in FIG. 1 is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. Specifically, the computer device can comprise more or fewer components than those shown in the figure, or some components can be combined, or have a different arrangement of components. Figure 15

[0175] In an embodiment, a computer device is provided, which comprises a memory and a processor, and the memory stores a computer program. When the processor executes the computer program, the following steps are implemented:

[0176] If there is a creation requirement of a front-end project, project description information and a current template download mode are obtained; ​​

[0177] According to the project description information, a first project template is obtained from candidate templates stored under a template download address corresponding to a current template download mode; wherein the candidate templates stored under the template download address include candidate templates under at least two front-end development frameworks;

[0178] According to the first project template, a front-end project, a project file directory of the front-end project, and a project configuration file of the front-end project are created.

[0179] In an embodiment, the processor, when executing the computer program, further implements the following steps:

[0180] According to the template file corresponding to the first project template, a front-end project file is determined, and a front-end project is created according to the front-end project file;

[0181] According to the front-end project file, a project file directory of the front-end project is created.

[0182] According to the template information corresponding to the first project template, a project configuration file of the front-end project is created.

[0183] In an embodiment, the processor, when executing the computer program, further implements the following steps:

[0184] According to the hash value, the template version, and the template identifier in the template information corresponding to the first project template, a project configuration file of the front-end project is created.

[0185] In an embodiment, the processor, when executing the computer program, further implements the following steps:

[0186] The project description information is obtained through command line prompt information;

[0187] According to the state of the offline mode switch recorded in the template configuration file, a current template download mode is determined.

[0188] In an embodiment, the processor, when executing the computer program, further implements the following steps:

[0189] If there is an update requirement for the front-end project, a project configuration file of the front-end project is obtained;

[0190] According to the template identifier of the first project template recorded in the project configuration file, a second project template is obtained from candidate templates stored under a template download address corresponding to a current template download mode;

[0191] It is judged whether the first project template and the second project template with the same template identifier exist in a case where the template information is different;

[0192] If the second project templates corresponding to the template information different from the template identifier exist, the front-end project, the project file directory of the front-end project and the project configuration file are updated according to the second project templates corresponding to the template information different from the template identifier.

[0193] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0194] According to the template information corresponding to each second project template, the hash value, the template version and the template identifier corresponding to each second project template are determined.

[0195] It is judged whether the first project template and the second project template with the same template identifier exist in the case of different hash values and / or template versions.

[0196] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0197] If the second project templates corresponding to the template information different from the template identifier exist, and the template identifier belongs to the updatable identifier, the project file directory of the front-end project and the project configuration file are updated according to the second project templates corresponding to the template information different from the template identifier.

[0198] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0199] According to the second project templates corresponding to the template information different from the template identifier, the candidate templates stored in the template download address corresponding to the offline download mode are updated.

[0200] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0201] According to the project file directory of the front-end project before and after the update, the file change information of the front-end project is generated and output.

[0202] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0203] According to the project configuration file of the front-end project, the association information between the project and the template is generated; the association information is used to determine whether to perform the deletion operation on the template to be deleted when the template deletion demand exists.

[0204] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:

[0205] If the creation demand of the front-end project exists, the project description information and the current template download mode are obtained.

[0206] According to the project description information, a first project template is obtained from candidate templates stored under a template download address corresponding to a current template download mode; wherein the candidate templates stored under the template download address include candidate templates under at least two front-end development frameworks;

[0207] According to the first project template, a front-end project is created, as well as a project file directory and a project configuration file of the front-end project.

[0208] In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the following steps:

[0209] If there is a need to create the front-end project, project description information and a current template download mode are obtained;

[0210] According to the project description information, a first project template is obtained from candidate templates stored under a template download address corresponding to a current template download mode; wherein the candidate templates stored under the template download address include candidate templates under at least two front-end development frameworks;

[0211] According to the first project template, a front-end project is created, as well as a project file directory and a project configuration file of the front-end project.

[0212] It should be noted that the data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties.

[0213] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0214] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.

[0215] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A front-end project management method, characterized in that, The method includes: If there is a need to create a front-end project, the project description information and the current template download mode are obtained. The current template download mode is determined based on the network conditions of the device where the package management tool is located. The current template download mode includes online template download mode or offline template download mode. The template download address corresponding to the online template download mode is the remote template database address, and the template download address corresponding to the offline template download mode is the local database address. Based on the project description information, the first project template is obtained from the candidate templates stored under the template download address corresponding to the current template download mode; wherein, the candidate templates stored under the template download address include at least two candidate templates under front-end development frameworks; Based on the first project template, create the front-end project, as well as the project file directory and project configuration file of the front-end project. The project configuration file records the hash value, template version and template identifier corresponding to the first project template. The method further includes: If there is a need to update the front-end project, then obtain the project configuration file of the front-end project; Based on the template identifier of the first project template recorded in the project configuration file, the second project template is obtained from the candidate templates stored under the template download address corresponding to the current template download mode; Based on the template information corresponding to each second project template, determine the hash value, template version, and template identifier corresponding to each second project template; Determine whether there are cases where the first and second project templates with the same template identifier have different hash values ​​and / or template versions; If a template identifier with different template information exists and is an updatable identifier, then the project file directory and project configuration file of the front-end project are updated according to the second project template corresponding to the template identifier with different template information.

2. The method according to claim 1, characterized in that, Based on the first project template, create the front-end project, as well as the project file directory and project configuration file of the front-end project, including: Based on the template file corresponding to the first project template, determine the front-end project file, and create the front-end project based on the front-end project file; Based on the aforementioned front-end project files, create the project file directory for the front-end project; Based on the template information corresponding to the first project template, create the project configuration file for the front-end project.

3. The method according to claim 2, characterized in that, The step of creating the project configuration file for the front-end project based on the template information corresponding to the first project template includes: Based on the hash value, template version, and template identifier in the template information corresponding to the first project template, create the project configuration file for the front-end project.

4. The method according to claim 1, characterized in that, The process of obtaining project description information and the current template download mode includes: Obtain project description information from command-line prompts; The current template download mode is determined based on the status of the offline mode switch recorded in the template configuration file.

5. The method according to claim 1, characterized in that, If the current template download mode is an online template download mode, then the method further includes: Based on the second project template corresponding to different template identifiers in the template information, update the candidate templates stored under the template download address corresponding to the offline download mode.

6. The method according to claim 1, characterized in that, The method further includes: Based on the project file directory before and after the front-end project update, generate and output the file change information of the front-end project.

7. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Based on the project configuration file of the front-end project, generate association information between the front-end project and the template; the association information is used to determine whether to perform a deletion operation on the template to be deleted when there is a need to delete the template.

8. A front-end project management device, wherein the front-end project management device is used to execute the front-end project management method according to any one of claims 1-7, characterized in that, The device includes: The information acquisition module is used to acquire project description information and the current template download mode if there is a project creation requirement. The template acquisition module is used to acquire a first project template from the candidate templates stored under the template download address corresponding to the current template download mode, based on the project description information; wherein, the candidate templates include candidate templates under at least two front-end development frameworks; The project creation module is used to create the project file directory and project configuration file of the project based on the first project template.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Template generation method and device, computer device and storage medium

    CN109766531A

  • Project framework generation method and device, computer device and storage medium

    CN109814854A

  • Business function acquisition method and device, electronic equipment and storage medium

    CN113239328A

  • Project engineering generation method and device, computer equipment and storage medium

    CN113408260A