CN111949312A - Data module packaging method and device, computer equipment and storage medium - Google Patents

Data module packaging method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111949312A
CN111949312A CN202010816367.6A CN202010816367A CN111949312A CN 111949312 A CN111949312 A CN 111949312A CN 202010816367 A CN202010816367 A CN 202010816367A CN 111949312 A CN111949312 A CN 111949312A
Authority
CN
China
Prior art keywords
data
size
modules
module
data module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010816367.6A
Other languages
Chinese (zh)
Other versions
CN111949312B (en
Inventor
吕益行
王家尧
张晋锋
吕灼恒
李斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongke Shuguang International Information Industry Co ltd
Zhongke Sugon Information Industry Chengdu Co ltd
Dawning Information Industry Beijing Co Ltd
Original Assignee
Zhongke Shuguang International Information Industry Co ltd
Dawning Information Industry Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongke Shuguang International Information Industry Co ltd, Dawning Information Industry Beijing Co Ltd filed Critical Zhongke Shuguang International Information Industry Co ltd
Priority to CN202010816367.6A priority Critical patent/CN111949312B/en
Publication of CN111949312A publication Critical patent/CN111949312A/en
Application granted granted Critical
Publication of CN111949312B publication Critical patent/CN111949312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the disclosure relates to a data module packaging method and device, computer equipment and a storage medium. The method includes the steps of obtaining a plurality of data modules corresponding to front-end projects and dependency relations among the data modules, splitting or combining the data modules according to attribute information of the data modules and the dependency relations among the data modules to obtain target data modules and the dependency relations among the target data modules, and finally packaging the target data modules according to the dependency relations among the target data modules. The target data module is obtained by preprocessing the original data module by combining the size and/or the number of the data modules and the dependency relationship among the data modules, so that the size and/or the number of the target data module is the optimal size/number required by later packaging, and the output efficiency of the packaged file when the packaged file is output to a front-end browser is improved.

Description

Data module packaging method and device, computer equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computer application, in particular to a data module packaging method and device, computer equipment and a storage medium.
Background
As the functions of the web application bearer become more complex, the front-end project of the web application becomes more and more huge, and the front-end project is usually divided into a plurality of data modules to improve the development efficiency of the front-end project in order to facilitate development and maintenance of the front-end project. However, the data modules cannot be directly output to the front-end browser of the web application, and after the compiling of each data module corresponding to the front-end project is completed, each data module needs to be packed to obtain a packed file which can be output to the front-end browser, and finally, the front-end browser displays a front-end project page based on the packed file.
At present, when packaging each data module, an existing packaging tool is generally adopted to directly package each acquired data module. However, if the front-end project is huge and the dependency relationship between the corresponding data modules is complicated, in the process of packaging the data modules by using the packaging tool, the problem that the packaging files are too large due to multiple packaging or the number of the packaging files generated by packaging is too large occurs, so that the output efficiency is extremely low when the packaging files are output to the front-end browser.
Disclosure of Invention
The embodiment of the disclosure provides a data module packaging method and device, a computer device and a storage medium, which can be used for improving the output efficiency of a front-end project of a web application when the front-end project is output to a front-end browser.
In a first aspect, an embodiment of the present disclosure provides a method for packaging a data module, where the method includes:
acquiring a plurality of data modules corresponding to a front-end project and a dependency relationship between the data modules;
preprocessing each data module according to the attribute information of each data module and the dependency relationship among the data modules to obtain each target data module and the dependency relationship among the target data modules; the preprocessing comprises splitting or merging each data module; the attribute information of the data modules comprises the size and/or the number of the data modules; the size represents the data size of the data module;
and packing the target data modules according to the dependency relationship among the target data modules.
In one embodiment, the attribute information includes a size of the data module, and the preprocessing of each data module according to the attribute information of each data module and a dependency relationship between each data module includes:
comparing the size of the data module with a preset size threshold;
if the size of the data module is larger than a preset size threshold, determining that the size type of the data module is a large-size data module, and preprocessing each large-size data module according to the dependency relationship among the data modules;
and if the size of the data module is smaller than or equal to the preset size threshold, determining the size type of the data module as a small-size data module, and preprocessing each small-size data module according to the dependency relationship among the small-size data modules.
In the above embodiment, the data modules are preprocessed by determining the size types of the data modules, so that the size of the preprocessed data module is the optimal size, and therefore the situation that the packed files packed by the data modules in the later period are too large due to the too large size of the data modules or the number of the packed files packed by the data modules in the later period is too large due to the too small size of the data modules can be avoided. Therefore, the method can ensure that the size and the number of the packed files after the computer equipment packs the module data at the later stage are also optimal.
In one embodiment, preprocessing each data module according to the size type of each data module and the dependency relationship between each data module includes:
determining a plurality of candidate small-size data modules with primary dependency relationships from all small-size data modules according to the dependency relationships among the small-size data modules;
and merging the plurality of candidate small-size data modules.
In the embodiment, because a plurality of candidate small-size data modules are combined, the number of the data modules is greatly reduced, and further, the number of the data modules is optimized, and the number of the packed files packed according to the data modules in the later period is optimized. Meanwhile, because the dependency among the candidate small-size data modules is a first-level dependency, the dependency among the module codes in the merged data module is simplified, so that the packaging times of the merged data module in the later period are reduced, and the packaging efficiency is improved.
In one embodiment, preprocessing each large-size data module according to the dependency relationship between the data modules includes:
determining the number of data modules having dependency relationship with each large-size data module according to the dependency relationship among the data modules;
and preprocessing each large-size data module according to the number.
In one embodiment, pre-processing each large-size data module according to quantity includes:
and if the number is smaller than the preset number threshold, splitting the large-size data module.
In the process of splitting the large-size data modules, the large-size data modules corresponding to the data modules with the number smaller than the preset number threshold are split, so that the dependency relationship between the split data modules is simpler, and the dependency relationship between the preprocessed data modules is simplified.
In one embodiment, preprocessing each data module according to the attribute information of each data module and the dependency relationship between each data module includes:
determining whether single dependency exists between every two data modules according to the dependency relationship between the data modules; the single dependency indicates that one data module in every two data modules refers to the other data module, and the other data module does not refer to the other data module;
every two data blocks with a single dependency are merged.
In the process of merging every two data modules with single dependency, because one data module does not refer to any other data module in every two data modules with single dependency and the two data modules still have a single reference relationship, the dependency relationship between module codes in the merged data module is simpler, and meanwhile, the dependency relationship between the merged data module and other data modules is simpler, so that the dependency relationship between the preprocessed data modules is greatly simplified.
In one embodiment, after merging every two data modules having a single dependency, the method further comprises:
judging whether the data module groups obtained after combination contain the same data modules or not;
if the same data module is contained, determining whether the same data module refers to other data modules according to the dependency relationship among the data modules;
and if the same data module does not refer to other data modules, splitting the same data module from the data module group.
In the above embodiment, since the same data module is directly split from the data module group by the computer device, there is no dependency relationship between the split data module and other data modules, and the dependency relationship between the preprocessed data modules is simplified.
In one embodiment, after obtaining the plurality of data modules corresponding to the front-end item and the dependency relationship between the plurality of data modules, the method further includes:
generating drawing data according to the data modules and the dependency relationship among the data modules; the drawing data comprises connection relations among nodes corresponding to the data modules;
drawing and displaying a relational graph according to the drawing data; the relationship graph is used for representing the dependency relationship among the data modules.
In the embodiment, because the relationship diagram can clearly show the dependency relationship among the data modules, an end user can check the page showing the relationship diagram through the browser, so that the dependency relationship among the data modules corresponding to the front-end project can be intuitively known, and the accuracy of analyzing the dependency relationship among the data modules by a front-end developer is improved.
In a second aspect, an embodiment of the present disclosure provides an apparatus for packaging data modules, where the apparatus includes:
the acquisition module is used for acquiring a plurality of data modules corresponding to the front-end project and the dependency relationship among the data modules;
the preprocessing module is used for preprocessing each data module according to the attribute information of each data module and the dependency relationship between the data modules to obtain each target data module and the dependency relationship between the target data modules; the preprocessing comprises splitting or merging each data module; the attribute information of the data module comprises the size and/or the number of the data module; the size represents a data size of the data module;
and the packaging module is used for packaging the target data modules according to the dependency relationship among the target data modules.
In a third aspect, an embodiment of the present disclosure provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method of the first aspect when executing the computer program.
In a fourth aspect, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method of the first aspect.
According to the data module packaging method, the data module packaging device, the computer equipment and the storage medium, the dependency relationship between the data modules and the plurality of data modules corresponding to the front-end project is obtained, the data modules are split or combined according to the attribute information of the data modules and the dependency relationship between the data modules, the dependency relationship between the target data modules and the target data modules is obtained, and finally the target data modules are packaged according to the dependency relationship between the target data modules. The target data module is a data module obtained by preprocessing the data module obtained firstly by the computer equipment, and the computer equipment preprocesses the original data module by combining the size and/or the number of the data module and the dependency relationship among the data modules, so that the size and/or the number of the target data module obtained after preprocessing is the optimal size/number required by later-stage packaging, and further the size and the number of the packaged file obtained after packaging each target data module in the later stage are also optimal, the output efficiency of the packaged file when the packaged file is output to the front-end browser is improved, and the resource request efficiency when a user accesses the front-end browser is also improved. In addition, because the computer device preprocesses the original data modules by analyzing the dependency relationship among the data modules, the dependency relationship among the target data modules obtained after preprocessing is simplified, so that the packaging times of the original data modules with complex dependency relationship are reduced when the target data modules with simplified dependency relationship are packaged in the later period, and the packaging efficiency of the computer device on the data modules is improved.
Drawings
FIG. 1 is a diagram illustrating an internal structure of a computer device according to an embodiment;
FIG. 2 is a flow diagram illustrating a method for packaging data modules according to one embodiment;
FIG. 3 is a flowchart illustrating an implementation manner of S102 in the embodiment of FIG. 2;
FIG. 4 is a flowchart illustrating an implementation manner of S102 in the embodiment of FIG. 2;
FIG. 5 is a flowchart illustrating an implementation manner of S202 in the embodiment of FIG. 3;
FIG. 6 is a schematic flow chart illustrating another implementation manner of S202 in the embodiment of FIG. 3;
FIG. 7 is a schematic flow chart illustrating another implementation manner of S102 in the embodiment of FIG. 2;
FIG. 8 is a flowchart illustrating a method for packaging data modules according to one embodiment;
FIG. 9 is a flowchart illustrating a method for packaging data modules according to one embodiment;
FIG. 10 is a flowchart illustrating a method for packaging data modules according to one embodiment;
FIG. 11 is a block diagram showing the construction of a packing apparatus for data modules in one embodiment;
FIG. 12 is a block diagram showing the construction of a packing apparatus for data modules in one embodiment;
FIG. 13 is a block diagram showing the construction of a packing apparatus for data modules in one embodiment;
FIG. 14 is a block diagram showing the construction of a packing means for data modules in one embodiment;
FIG. 15 is a block diagram showing the construction of a packing apparatus for data modules in one embodiment;
FIG. 16 is a block diagram showing the construction of a packing apparatus for data modules in one embodiment;
FIG. 17 is a block diagram showing the construction of a packing apparatus for data modules in one embodiment;
fig. 18 is a block diagram showing a configuration of a packing means of a data module in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clearly understood, the embodiments of the present disclosure are described in further detail below with reference to the accompanying drawings and the embodiments. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the disclosure and that no limitation to the embodiments of the disclosure is intended.
The method for packaging data modules provided by the present application can be applied to a computer device shown in fig. 1, where the computer device may be a server, the computer device may also be a terminal, and its internal structure diagram may be as shown in fig. 1. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of packaging data modules. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, as shown in fig. 2, a method for packaging a data module is provided, which is described by taking the method as an example for being applied to the computer device in fig. 1, and includes the following steps:
s101, acquiring a plurality of data modules corresponding to the front-end project and the dependency relationship among the data modules.
The data module is a source code corresponding to the development front-end project. There are references or referenced dependencies between data modules. Specifically, the computer device may obtain a plurality of data modules corresponding to the front-end project according to an editing instruction input by a front-end project developer, for example, the front-end project developer edits a source code about the front-end project on the computer device, where the source code may be divided into a plurality of code blocks having respective functions, and the plurality of code blocks correspond to the plurality of data modules respectively. Optionally, the computer device may also obtain a plurality of data modules corresponding to the front-end item in a downloading manner, and the manner of obtaining the data modules is not limited in this embodiment. When the computer device obtains a plurality of data modules corresponding to the front-end project, the computer device may analyze the dependency relationship between the data modules by using the existing dependency analysis tool or the existing dependency analysis function to obtain the dependency relationship between the data modules; optionally, the front-end developer analyzes the relationship between the data modules to obtain an analysis result, and then the computer device may also obtain the dependency relationship between the data modules according to the analysis result, which does not limit the manner of obtaining the dependency relationship between the data modules in this embodiment.
S102, preprocessing each data module according to the attribute information of each data module and the dependency relationship among the data modules to obtain each target data module and the dependency relationship among the target data modules; the preprocessing comprises splitting or merging each data module; the attribute information of the data modules comprises the size and/or the number of the data modules; the size represents the data size of the data module.
The target data module is a data module obtained by preprocessing a data module obtained by the computer equipment, and is an updated data module. Specifically, when the computer device acquires the dependency relationship between the data modules and the plurality of data modules corresponding to the front-end item based on the foregoing steps, the attribute information of each data module may be further acquired, and each data module may be preprocessed by comprehensively analyzing the attribute information of each data module and the dependency relationship between each data module, where the specific analysis and processing method includes, but is not limited to, the following several ways:
firstly, the computer equipment analyzes the size of each data module, determines a plurality of data modules with the size meeting the preset size requirement, further analyzes the dependency relationship among the data modules, and finally merges or splits the data modules according to the analysis result. The preset size requirement can be determined by the computer device according to the optimal size requirement of the data module in advance.
Secondly, the computer equipment analyzes the number of each data module, determines a plurality of data modules of which the number meets the requirement of the preset number, further analyzes the dependency relationship among the data modules, and finally merges or splits the data modules according to the analysis result. The preset quantity requirement can be determined by the computer device according to the optimal size requirement and/or the optimal quantity requirement of the data module in advance.
Thirdly, the computer equipment analyzes the size of each data module, determines a plurality of data modules with the size meeting the preset size requirement, further analyzes the number of the data modules meeting the preset size requirement, determines a plurality of data modules with the number meeting the preset number requirement, further analyzes the dependency relationship among the data modules with the number meeting the preset number requirement, and finally merges or splits the data modules according to the analysis result.
Fourthly, the computer equipment analyzes the number of the data modules, determines a plurality of data modules of which the number meets the requirement of the preset number, further analyzes the sizes of the data modules meeting the requirement of the preset number, determines a plurality of data modules of which the sizes meet the requirement of the preset size, further analyzes the dependency relationship among the data modules of which the sizes meet the requirement of the preset size, and finally merges or splits the data modules according to the analysis result.
In this embodiment, after the computer device preprocesses each data module by using the foregoing preprocessing methods, a preprocessed target data module can be obtained, and then the dependency relationship between each target data module can be analyzed by using a corresponding dependency analysis tool or a dependency analysis function method, so as to obtain the dependency relationship between each target data module.
S103, packaging the target data modules according to the dependency relationship among the target data modules.
Specifically, when the computer device obtains the dependency relationship between the target data modules and each target data module, the multiple target data modules may be packaged according to the dependency relationship between the target data modules by using an existing data module packager (e.g., a Webpack module packager) or by using another packaging method, so as to obtain a packaged file.
In the method for packaging the data modules, the computer equipment obtains the dependency relationship between a plurality of data modules corresponding to the front-end project and each data module, splits or merges the data modules according to the attribute information of each data module and the dependency relationship between the data modules to obtain the dependency relationship between each target data module and each target data module, and finally packages the target data modules according to the dependency relationship between the target data modules. The target data module is a data module obtained after the obtained data module is preprocessed by the computer device, and the computer device preprocesses the original data module by combining the size and/or the number of the data module and the dependency relationship among the data modules, so that the size and/or the number of the target data module obtained after preprocessing is the optimal size/or the number required by later-stage packaging, and further the size and the number of the packaged file obtained after packaging each target data module in the later stage are also optimal, the output efficiency of the packaged file when the packaged file is output to the front-end browser is improved, and the resource request efficiency when a user accesses the front-end browser is also improved. In addition, because the computer device preprocesses the original data modules by analyzing the dependency relationship among the data modules, the dependency relationship among the target data modules obtained after preprocessing is simplified, so that the packaging times of the original data modules with complex dependency relationship are reduced when the target data modules with simplified dependency relationship are packaged in the later period, and the packaging efficiency of the computer device on the data modules is improved.
In one embodiment, when the attribute information of the data module includes a size of the data module, as shown in fig. 3, the step S102 includes:
s201, determining the size type of each data module according to the size of each data module.
The size types of the data modules comprise a large-size data module and a small-size data module. The large-size data module is a data module with large data volume, and the small-size data module is a data module with small data volume. Specifically, when the computer device obtains a plurality of data modules, the size of each data module may be further determined according to the size of the data volume contained in each data module, and then whether each data module belongs to a large-size data module or a small-size data module is determined according to the size of each data module.
S202, preprocessing each data module according to the size type of each data module and the dependency relationship among the data modules.
After the computer device determines the size type of each data module, the computer device may further screen out data modules belonging to the same size type (for example, data modules of a large size type or data modules of a small size type), analyze the dependency relationship between the screened out data modules, or analyze the dependency relationship between the screened out data modules and other data modules, and perform preprocessing (for example, merging) on the data modules belonging to the same size type at the same time by using a corresponding preprocessing method, or perform respective preprocessing (for example, splitting) on the data modules belonging to the same size type.
In an embodiment, based on the foregoing embodiment, the present application provides an implementation manner of the foregoing S102, and as shown in fig. 4, the foregoing S102 "preprocesses each data module according to attribute information of each data module and a dependency relationship between each data module," includes:
s301, comparing the size of the data module with a preset size threshold, if the size of the data module is greater than the preset size threshold, executing step S302, and if the size of the data module is less than or equal to the preset size threshold, executing step S303.
The preset size threshold value can be determined by the computer device according to the requirement of the actual optimization data module in advance. Specifically, the present embodiment relates to a process of determining a size type of a data module by computer equipment, that is, after obtaining a size of each data module, comparing the size of each data module with a preset size threshold, and if the size of the data module is greater than the preset size threshold, indicating that a data volume contained in the data module is large, defining the data module as a large-size data module; and if the size of the data module is smaller than or equal to the preset size threshold, which indicates that the data volume contained in the data module is smaller, defining the data module as a small-size data module.
S302, determining the size type of the data module as a large-size data module, and preprocessing each large-size data module according to the dependency relationship among the data modules.
The present embodiment relates to a case where the computer device determines that the size of the data module is greater than a preset size threshold, in which case the computer device determines the size type of the data module as a large-size data module.
S303, determining the size type of the data module as a small-size data module, and preprocessing each small-size data module according to the dependency relationship among the small-size data modules.
The present embodiment relates to a case where the computer device determines that the size of the data module is less than or equal to a preset size threshold, in which case the computer device determines the size type of the data module as a small-sized data module.
According to the embodiment, the size type of each data module is determined, the data modules are preprocessed, the size of the preprocessed data module is the optimal size, the condition that the packed files packed by the data modules in the later period are too large due to the fact that the size of the data modules is too large can be avoided, or the number of the packed files packed by the data modules in the later period is too large due to the fact that the size of the data modules is too small can be avoided. Therefore, the method can ensure that the size and the number of the packed files after the computer equipment packs the module data at the later stage are also optimal.
In practical applications, when the determined size type of the data module is a small-size data module, the present application correspondingly provides an implementation manner of the foregoing S202, that is, an implementation manner of preprocessing the small-size data module, as shown in fig. 5, where "preprocessing each small-size data module according to a dependency relationship between each small-size data module" in the foregoing S303 includes:
s401, according to the dependency relationship among all the small-size data modules, determining a plurality of candidate small-size data modules with primary dependency relationship from all the small-size data modules.
The first-level dependency relationship refers to a direct reference relationship, for example, if the data module a references the data module B, and the data module B references the data module C, a first-level dependency relationship exists between the data module a and the data module B, and a first-level dependency relationship exists between the data module B and the data module C. Specifically, when the computer device screens out at least two small-size data modules from the plurality of data modules, the dependency relationship between the small-size data modules may be analyzed to see whether a small-size data module with a first-level dependency relationship exists in the at least two small-size data modules, and if so, the small-size data module with the first-level dependency relationship is screened out from the plurality of small-size data modules as a candidate small-size data module for later use.
S402, merging the candidate small-size data modules.
When the computer device screens out a plurality of candidate small-size data modules from the plurality of small-size data modules, the plurality of candidate small-size data modules can be merged. After a plurality of candidate small-size data modules are combined, the number of the data modules is greatly reduced, the number of the data modules is further optimized, and the number of the packed files packed according to the data modules in the later period is optimized. Meanwhile, because the dependency among the candidate small-size data modules is a first-level dependency, the dependency among the module codes in the merged data module is simplified, so that the packaging times of the merged data module in the later period are reduced, and the packaging efficiency is improved.
In practical applications, when the determined size type of the data module is a large-size data module, the present application correspondingly provides an implementation manner of the foregoing S202, that is, an implementation manner of preprocessing the large-size data module, as shown in fig. 6, where the foregoing S202 "preprocesses each large-size data module according to a dependency relationship between the data modules" includes:
s501, determining the number of data modules having dependency relationship with the large-size data modules according to the dependency relationship among the data modules.
Specifically, when the computer device screens out large-size data modules from the plurality of data modules, the number of data modules having a dependency relationship with each large-size data module may be further determined by checking the dependency relationship between the data modules. For example, if the data module a is a large-size data module, the computer device may check the number of data modules that the data module a references other modules and determine the number as the number of data modules that have a dependency relationship with the data module a, or the computer device may also check the number of data modules that reference the data module a and determine the number as the number of data modules that have a dependency relationship with the data module a, or the computer device may simultaneously determine the number of data modules that reference the data module a and the number of data modules that the data module a references other data modules as the number of data modules that have a dependency relationship with the data module a.
And S502, preprocessing each large-size data module according to the number.
After the computer equipment determines the number of data modules having dependency relationship with each large-size data module based on the steps, the large-size data modules with the number meeting the preset number requirement can be screened out from the large-size data modules according to the number, and then the screened large-size data modules are preprocessed.
Further, the step S502 "preprocessing each large-size data module according to the number" may specifically include: and if the number is smaller than the preset number threshold, splitting the large-size data module.
Wherein the preset quantity threshold value can be determined by the computer device in advance according to the size requirement of the optimization module data or the quantity requirement of the optimization module data. The embodiment relates to a specific implementation manner that the computer device preprocesses each large-size data module according to the number, that is, the computer device compares the number of data modules having a dependency relationship with the large-size data modules with a preset number threshold, and if the number is smaller than the preset number threshold, the corresponding large-size data modules corresponding to the number are split to obtain the data modules with proper sizes. In the process of splitting the large-size data modules, the large-size data modules corresponding to the data modules with the number smaller than the preset number threshold are split, so that the dependency relationship between the split data modules is simpler, and the dependency relationship between the preprocessed data modules is simplified.
In an application scenario, there is also a case that the number of data modules having a dependency relationship with a large-size data module is smaller than a preset number threshold, in this scenario, it is equivalent to that a complex dependency relationship exists between the large-size data module and other data modules, and the data modules are not conveniently split.
In an application, when there is a data module with uniqueness in a plurality of data modules acquired by a computer device, the present application correspondingly provides an implementation manner of the above S102, that is, an implementation manner of preprocessing the data module with uniqueness, as shown in fig. 7, where the above S102 "preprocesses each data module according to attribute information of each data module and a dependency relationship between each data module," includes:
s601, determining whether a single dependency exists between every two data modules according to the dependency relationship between the data modules; a single dependency indicates that one of every two data modules references the other data module, and the other data module does not reference the other data module.
Specifically, when the computer device obtains a plurality of data modules and the dependency relationship between the plurality of data modules, it may be determined whether each two data modules have a relationship of single dependency by analyzing the dependency relationship between the data modules, for example, if there is a data module a and a data module B, the data module a refers to the data module B, and the data module B does not refer to any other data module, it is determined that the data module a and the data module B have a relationship of single dependency.
And S602, merging every two data modules with single dependency.
After the computer device determines every two data modules with single dependency based on the previous steps, the two data modules with single dependency can be directly merged. In the process of merging every two data modules with single dependency, because one data module does not refer to any other data module in every two data modules with single dependency and the two data modules still have a single reference relationship, the dependency relationship between module codes in the merged data module is simpler, and meanwhile, the dependency relationship between the merged data module and other data modules is simpler, so that the dependency relationship between the preprocessed data modules is greatly simplified.
On the basis of the method described in the embodiment of fig. 7, the present application further provides a method for splitting and merging the obtained data module groups, as shown in fig. 8, where the method is performed after the above-mentioned S602, and the method includes:
and S701, judging whether the data module groups obtained after combination contain the same data modules.
After the computer device obtains the merged data module group based on the method described in the embodiment of fig. 7, it may further perform preprocessing on each data module group, specifically, the computer device may check the data modules included in each data module group, determine whether the same data module is included in each data module group, if the same data module is included, it indicates that there is a duplicate data module, and correspondingly split the data module group by using the corresponding processing method, if the same data module is not included, it indicates that there is no duplicate data module, and at this time, the data module group is not split. For example, if the data module group O1 includes a data module a and a data module B, and the data module group O2 includes a data module C and a data module B, the data module B is the same data module.
S702, if the same data module is contained, determining whether the same data module refers to other data modules according to the dependency relationship among the data modules.
In this embodiment, the computer device determines a scenario in which the data module group obtained by merging includes the same data module, and in this application scenario, the computer device determines whether the same data module refers to another data module by analyzing the dependency relationship between the same data module and another data module in the data module group, and if the same data module refers to another data module, it indicates that a complex dependency relationship exists between the data module group including the same data module and another data module, and the data module group cannot be split; if the same data module does not refer to other data modules, it is shown that the dependency relationship between the data module group containing the same data module and other data modules is very simple, or the data module group is relatively independent and has no dependency relationship with other data modules, so that the data module group can be split.
And S703, if the same data module does not refer to other data modules, splitting the same data module from the data module group.
In this scenario, the computer device directly splits the same data module from the data module group, so that there is no dependency relationship between the split data module and other data modules, and the dependency relationship between the preprocessed data modules is simplified. For example, the group of data modules O1 includes data module A and data module B, and data module A references data module B, the group of data modules O2 includes data module C and data module B, and data module C references data module B, the same data module B not only does not reference data module A and data module C, but also does not reference any other data module. Then the data module B can be detached from the data module group O1 and the data module group O2, respectively.
In practical applications, after the computer device obtains the dependency relationship between the data modules, the data module packaging method provided in the present application further provides a method for generating and displaying a corresponding relationship diagram according to the dependency relationship between the data modules, for example, after the computer device executes the step of S101 in the embodiment of fig. 2, as shown in fig. 9, the method in the embodiment of fig. 2 further includes the following steps:
s801, generating drawing data according to the data modules and the dependency relationship among the data modules; the drawing data comprises connection relations among nodes corresponding to the data modules.
When the computer device obtains the plurality of data modules corresponding to the front-end item and the dependency relationship between the data modules based on the steps in S101 of the embodiment in fig. 2, the dependency relationship between the data modules may be further presented in a manner of a relationship diagram. Specifically, the computer device may use an existing graph generation tool to generate the drawing data according to each data module and the dependency relationship between each data module, where the tool for generating and drawing the drawing data is not limited.
S802, drawing and displaying a relational graph according to the drawing data; the relationship graph is used for representing the dependency relationship among the data modules.
The relationship graph may include different types of diagrams such as a binary graph, a node graph, a tree graph, and the like, which is not limited herein. After the computer equipment generates the drawing data by using the corresponding graphic generation tool, a relational graph can be drawn and displayed in a front-end page by using the corresponding drawing tool (such as a visual library echarts tool) according to the drawing data, the dependency relationship among the data modules can be clearly shown by the relational graph, and a final user can check the page displayed with the relational graph through a browser, so that the dependency relationship among a plurality of data modules corresponding to a front-end project can be intuitively known, and the accuracy of analyzing the dependency relationship among the data modules by a front-end developer is improved.
In an embodiment, a specific implementation manner of S101 in the embodiment of fig. 2 is provided, for example, the step S101 "acquiring dependency relationships between a plurality of data modules and each data module corresponding to a front-end item" specifically includes: and analyzing the plurality of data modules corresponding to the front-end project by using a module dependence analysis function of the module packager to obtain the dependence relationship among the data modules.
The module packer is a tool for packing each module data to generate a packed file. The module dependency analysis function is used for analyzing each module data to obtain a dependency relationship between each data module, for example, if a Webpack packager is used to package each module data, an emit hook function of a compiler in the Webpack may be used to analyze a plurality of module data to obtain a dependency relationship between each module data. Because the Webpack packaging device is an existing relatively mature module packaging tool, the data module packaging method is simple and convenient when the module packaging tool is used for packaging each data module in the later period, and the popularization and application of the data module packaging method are improved.
In summary of all the above embodiments, the present application further provides a method for packaging a data module, as shown in fig. 10, the method includes:
s901, acquiring a plurality of data modules corresponding to the front-end project.
And S902, analyzing the plurality of data modules corresponding to the front-end project by using the module dependence analysis function of the module packager to obtain the dependence relationship among the data modules.
And S903, generating drawing data according to the data modules and the dependency relationship among the data modules.
And S904, drawing and displaying the relational graph according to the drawing data.
S905 compares the size of the data module with a preset size threshold, if the size of the data module is greater than the preset size threshold, then the size type of the data module is determined to be a large-size data module, and step S906 is performed, if the size of the data module is less than or equal to the preset size threshold, then the size type of the data module is determined to be a small-size data module, and steps S910 to S911 are performed.
S906, determining the number of data modules having dependency relationship with the large-size data modules according to the dependency relationship among the data modules.
S907, comparing the number with a preset number threshold, if the number is smaller than the preset number threshold, performing step S908, and if the number is greater than or equal to the preset number threshold, performing step S909.
And S908, splitting the large-size data module.
S909, no operation is performed.
S910, according to the dependency relationship among all the small-size data modules, determining a plurality of candidate small-size data modules with primary dependency relationship from all the small-size data modules.
And S911, merging the candidate small-size data modules.
S912, determining whether a single dependency exists between every two data modules according to the dependency relationship between the data modules; a single dependency indicates that one of every two data modules references the other data module, and the other data module does not reference the other data module.
And S913, combining every two data modules with single dependency to obtain a plurality of data module groups.
S914, determine whether the different data module groups contain the same data module, if so, execute step S915, and if not, execute step S917.
S915, determining whether the same data module refers to other data modules according to the dependency relationship between the data modules, if the same data module does not refer to other data modules, performing step S916, and if the same data module refers to other data modules, performing step S917.
S916, the same data module is separated from the data module group.
S917, no operation is performed.
S918, preprocessing each data module according to the method described in S905-S917 to obtain a plurality of target data modules.
And S919, analyzing the plurality of target data modules by using the module dependence analysis function of the module packer to obtain the dependence relationship among the target data modules.
S920, packing the target data modules according to the dependency relationship among the target data modules.
For a detailed description of each step described in this embodiment, refer to the description of the foregoing embodiments, which are not intended to be redundant. It should be noted that the above steps S912 to S917 may be executed before the computer device executes the above step S905, or may be executed after the computer device executes the above steps S905 to S911 and obtains the merged and/or split data modules, and then the steps S912 to S917 are executed, that is, the computer device may first preprocess each data module according to the method described in S905 to S911, then preprocess each preprocessed data module according to the method described in S912 to S917, and finally obtain the dependency relationship between the preprocessed target data modules and the target data modules. Optionally, the computer device may also pre-process each data module according to the method described in S912-S917, then pre-process each pre-processed data module according to the method described in S905-S911, and finally obtain the dependency relationship between the pre-processed target data modules and each target data module.
It should be understood that although the various steps in the flow charts of fig. 2-10 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-10 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 11, there is provided a packing apparatus of a data module, including: an obtaining module 11, a preprocessing module 12 and a packing module 13, wherein:
the obtaining module 11 is configured to obtain a plurality of data modules corresponding to the front-end item and a dependency relationship between the data modules.
The preprocessing module 12 is configured to preprocess the data modules according to the attribute information of the data modules and the dependency relationship between the data modules, so as to obtain target data modules and the dependency relationship between the target data modules; the preprocessing comprises splitting or merging each data module; the attribute information of the data module comprises the size and/or the number of the data module; the size represents a data size of the data module.
And the packing module 13 is configured to pack the target data modules according to the dependency relationship between the target data modules.
In an embodiment, the attribute information includes a size of the data module, as shown in fig. 12, the preprocessing module 12 includes:
a first determining unit 121, configured to determine a size type of each data module according to a size of each data module;
the preprocessing unit 122 is configured to preprocess each data module according to a size type of each data module and a dependency relationship between the data modules.
In one embodiment, as shown in fig. 13, the first determining unit 121 includes:
a comparison subunit 1211, configured to compare the size of the data module with a preset size threshold;
a first determining subunit 1212, configured to determine, when the size of the data module is greater than the preset size threshold, that the size type of the data module is a large-size data module;
a second determining subunit 1213, configured to determine that the size type of the data module is a small-size data module if the size of the data module is less than or equal to the preset size threshold.
In one embodiment, as shown in fig. 14, the preprocessing unit 122 includes:
a third determining subunit 1221, configured to determine, according to the dependency relationship among the small-size data modules, multiple candidate small-size data modules having a primary dependency relationship from all small-size data modules;
a merging subunit 1222, configured to merge a plurality of candidate small-size data modules.
In one embodiment, as shown in fig. 15, the preprocessing unit 122 includes:
a fourth determining subunit 1223, configured to determine, according to a dependency relationship between the data modules, the number of data modules having a dependency relationship with the large-size data modules;
a processing subunit 1224, configured to perform preprocessing on each of the large-size data modules according to the number.
In an embodiment, the processing subunit 1224 is specifically configured to split the large-size data module when the number is smaller than a preset number threshold.
In one embodiment, as shown in fig. 16, the preprocessing module 12 includes:
a second determining unit 123, configured to determine whether there is a single dependency between every two data modules according to a dependency relationship between the data modules; the single dependency represents that one data module in each two data modules refers to the other data module, and the other data module does not refer to the other data module;
a merging unit 124, configured to merge every two data modules having the single dependency.
In one embodiment, as shown in fig. 17, after the preprocessing module 12, the apparatus further includes:
a judgment processing unit 125, configured to judge whether the data module groups obtained after merging include the same data module; if the same data module is contained, determining whether the same data module refers to other data modules according to the dependency relationship among the data modules; and if the same data module does not refer to other data modules, splitting the same data module from the data module group.
In an embodiment, as shown in fig. 18, after the obtaining module 11, the apparatus further includes:
a generating module 14, configured to generate drawing data according to each data module and a dependency relationship between the data modules; the drawing data comprises connection relations among nodes corresponding to the data modules;
the drawing module 15 is used for drawing and displaying a relational graph according to the drawing data; the relationship graph is used for representing the dependency relationship between the data modules.
In an embodiment, the obtaining module 11 is specifically configured to analyze, by using a module dependency analysis function of a module packager, a plurality of data modules corresponding to the front-end item, so as to obtain a dependency relationship between the data modules.
For the specific definition of the data module packaging device, reference may be made to the above definition of the data module packaging method, which is not described herein again. The modules in the data module packaging device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in a computer device, and can also be stored in a memory in an electronic device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a plurality of data modules corresponding to a front-end project and a dependency relationship between the data modules;
preprocessing each data module according to the attribute information of each data module and the dependency relationship between the data modules to obtain each target data module and the dependency relationship between the target data modules; the preprocessing comprises splitting or merging each data module; the attribute information of the data module comprises the size and/or the number of the data module; the size represents a data size of the data module;
and packaging the target data modules according to the dependency relationship among the target data modules.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a plurality of data modules corresponding to a front-end project and a dependency relationship between the data modules;
preprocessing each data module according to the attribute information of each data module and the dependency relationship between the data modules to obtain each target data module and the dependency relationship between the target data modules; the preprocessing comprises splitting or merging each data module; the attribute information of the data module comprises the size and/or the number of the data module; the size represents a data size of the data module;
and packaging the target data modules according to the dependency relationship among the target data modules.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A method for packaging data modules, the method comprising:
acquiring a plurality of data modules corresponding to a front-end project and a dependency relationship between the data modules;
preprocessing each data module according to the attribute information of each data module and the dependency relationship between the data modules to obtain each target data module and the dependency relationship between the target data modules; the preprocessing comprises splitting or merging each data module; the attribute information of the data module comprises the size and/or the number of the data module; the size represents a data size of the data module;
and packaging the target data modules according to the dependency relationship among the target data modules.
2. The method of claim 1, wherein the attribute information includes a size of the data module, and wherein preprocessing each of the data modules according to the attribute information of each of the data modules and a dependency relationship between each of the data modules includes:
comparing the size of the data module with a preset size threshold;
if the size of the data module is larger than the preset size threshold, determining that the size type of the data module is a large-size data module, and preprocessing each large-size data module according to the dependency relationship among the data modules;
and if the size of the data module is smaller than or equal to the preset size threshold, determining that the size type of the data module is a small-size data module, and preprocessing each small-size data module according to the dependency relationship among the small-size data modules.
3. The method of claim 2, wherein preprocessing each of the small-size data modules according to the dependency relationship between the small-size data modules comprises:
determining a plurality of candidate small-size data modules with primary dependency relationships from all small-size data modules according to the dependency relationships among the small-size data modules;
and merging a plurality of candidate small-size data modules.
4. The method of claim 2, wherein preprocessing each of the large-size data blocks according to dependencies between the data blocks comprises:
determining the number of data modules having a dependency relationship with each large-size data module according to the dependency relationship among the data modules;
and preprocessing each large-size data module according to the number.
5. The method of claim 4, wherein pre-processing each of the large-size data blocks according to the number comprises:
and splitting the large-size data module if the number is smaller than a preset number threshold.
6. The method according to claim 1, wherein the preprocessing each of the data modules according to the attribute information of each of the data modules and the dependency relationship between the data modules comprises:
determining whether a single dependency exists between every two data modules according to the dependency relationship between the data modules; the single dependency represents that one data module in each two data modules refers to the other data module, and the other data module does not refer to the other data module;
merging every two data modules having the single dependency.
7. The method of claim 6, wherein after merging each two data modules having the single dependency, the method further comprises:
judging whether the data module groups obtained after combination contain the same data modules or not;
if the same data module is contained, determining whether the same data module refers to other data modules according to the dependency relationship among the data modules;
and if the same data module does not refer to other data modules, splitting the same data module from the data module group.
8. The method according to claim 1, wherein after obtaining the plurality of data modules corresponding to the front-end item and the dependency relationship between the plurality of data modules, the method further comprises:
generating drawing data according to the data modules and the dependency relationship among the data modules; the drawing data comprises connection relations among nodes corresponding to the data modules;
drawing and displaying a relational graph according to the drawing data; the relationship graph is used for representing the dependency relationship between the data modules.
9. An apparatus for packaging data modules, the apparatus comprising:
the acquisition module is used for acquiring a plurality of data modules corresponding to the front-end project and the dependency relationship among the data modules;
the preprocessing module is used for preprocessing each data module according to the attribute information of each data module and the dependency relationship between the data modules to obtain each target data module and the dependency relationship between the target data modules; the preprocessing comprises splitting or merging each data module; the attribute information of the data module comprises the size and/or the number of the data module; the size represents a data size of the data module;
and the packaging module is used for packaging the target data modules according to the dependency relationship among the target data modules.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 8 are implemented by the processor when executing the computer program.
11. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method of any one of claims 1 to 8.
CN202010816367.6A 2020-08-14 2020-08-14 Packaging method and device for data module, computer equipment and storage medium Active CN111949312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010816367.6A CN111949312B (en) 2020-08-14 2020-08-14 Packaging method and device for data module, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010816367.6A CN111949312B (en) 2020-08-14 2020-08-14 Packaging method and device for data module, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111949312A true CN111949312A (en) 2020-11-17
CN111949312B CN111949312B (en) 2024-02-09

Family

ID=73342199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010816367.6A Active CN111949312B (en) 2020-08-14 2020-08-14 Packaging method and device for data module, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111949312B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822514A (en) * 2020-12-30 2021-05-18 北京大学 Video stream packet transmission method, system, terminal and medium based on dependency relationship
CN117369865A (en) * 2023-12-07 2024-01-09 麒麟软件有限公司 GNU linux universal application program packaging method and graphical application packer

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10222353A (en) * 1997-01-31 1998-08-21 Hitachi Ltd Method for generating program
JP2015135535A (en) * 2014-01-16 2015-07-27 株式会社 日立産業制御ソリューションズ File processor and file processing method
US20150363195A1 (en) * 2014-06-16 2015-12-17 npm, Inc. Software package management
US20170090889A1 (en) * 2015-09-30 2017-03-30 Semmle Limited Hierarchical dependency analysis of source code
CN106874394A (en) * 2017-01-13 2017-06-20 百度在线网络技术(北京)有限公司 A kind of method and apparatus of file packing pretreatment
CN106959997A (en) * 2017-02-04 2017-07-18 深圳市中博科创信息技术有限公司 Document handling method and device based on cluster file system
CN107679177A (en) * 2017-09-29 2018-02-09 郑州云海信息技术有限公司 A kind of small documents storage optimization method based on HDFS, device, equipment
CN109145236A (en) * 2017-06-28 2019-01-04 艺龙网信息技术(北京)有限公司 Page file processing method, apparatus and system
CN109816527A (en) * 2019-01-25 2019-05-28 网联清算有限公司 Reconciliation document handling method, device, computer equipment and storage medium
CN109857385A (en) * 2018-12-24 2019-06-07 四川长虹电器股份有限公司 Application file packaging method, installation method and starting method
CN110636111A (en) * 2019-08-22 2019-12-31 北京达佳互联信息技术有限公司 Resource packaging method and device, electronic equipment and storage medium
CN110795143A (en) * 2019-10-22 2020-02-14 中国工商银行股份有限公司 Method, apparatus, computing device, and medium for processing functional module
CN110908707A (en) * 2019-11-28 2020-03-24 米哈游科技(上海)有限公司 Resource packaging method, device, server and storage medium
CN110908697A (en) * 2019-11-28 2020-03-24 米哈游科技(上海)有限公司 Resource packaging method, device, server and storage medium
CN111399863A (en) * 2020-03-13 2020-07-10 深圳前海微众银行股份有限公司 Dependent file packaging method, device, equipment and computer readable storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10222353A (en) * 1997-01-31 1998-08-21 Hitachi Ltd Method for generating program
JP2015135535A (en) * 2014-01-16 2015-07-27 株式会社 日立産業制御ソリューションズ File processor and file processing method
US20150363195A1 (en) * 2014-06-16 2015-12-17 npm, Inc. Software package management
US20170090889A1 (en) * 2015-09-30 2017-03-30 Semmle Limited Hierarchical dependency analysis of source code
CN106874394A (en) * 2017-01-13 2017-06-20 百度在线网络技术(北京)有限公司 A kind of method and apparatus of file packing pretreatment
CN106959997A (en) * 2017-02-04 2017-07-18 深圳市中博科创信息技术有限公司 Document handling method and device based on cluster file system
CN109145236A (en) * 2017-06-28 2019-01-04 艺龙网信息技术(北京)有限公司 Page file processing method, apparatus and system
CN107679177A (en) * 2017-09-29 2018-02-09 郑州云海信息技术有限公司 A kind of small documents storage optimization method based on HDFS, device, equipment
CN109857385A (en) * 2018-12-24 2019-06-07 四川长虹电器股份有限公司 Application file packaging method, installation method and starting method
CN109816527A (en) * 2019-01-25 2019-05-28 网联清算有限公司 Reconciliation document handling method, device, computer equipment and storage medium
CN110636111A (en) * 2019-08-22 2019-12-31 北京达佳互联信息技术有限公司 Resource packaging method and device, electronic equipment and storage medium
CN110795143A (en) * 2019-10-22 2020-02-14 中国工商银行股份有限公司 Method, apparatus, computing device, and medium for processing functional module
CN110908707A (en) * 2019-11-28 2020-03-24 米哈游科技(上海)有限公司 Resource packaging method, device, server and storage medium
CN110908697A (en) * 2019-11-28 2020-03-24 米哈游科技(上海)有限公司 Resource packaging method, device, server and storage medium
CN111399863A (en) * 2020-03-13 2020-07-10 深圳前海微众银行股份有限公司 Dependent file packaging method, device, equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
前端瓶子君: "五种可视化方案分析webpack打包瓶颈", Retrieved from the Internet <URL:《https://juejin.cn/post/6844904056985485320》> *
小小MAC: "在翻译中学习Webpack-SpIitChunksPlugin", Retrieved from the Internet <URL:《https://juejin.cn/post/6844903956620165133》> *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822514A (en) * 2020-12-30 2021-05-18 北京大学 Video stream packet transmission method, system, terminal and medium based on dependency relationship
CN117369865A (en) * 2023-12-07 2024-01-09 麒麟软件有限公司 GNU linux universal application program packaging method and graphical application packer
CN117369865B (en) * 2023-12-07 2024-04-05 麒麟软件有限公司 GNU linux universal application program packaging method and graphical application packer

Also Published As

Publication number Publication date
CN111949312B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
US11036480B2 (en) General machine learning model, and model file generation and parsing method
EP2788867B1 (en) Automatic modularization of source code
CN111949312B (en) Packaging method and device for data module, computer equipment and storage medium
CN109491664B (en) iOS application program generation method, device, equipment and storage medium
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
CN115599386A (en) Code generation method, device, equipment and storage medium
CN109634611B (en) Mobile terminal three-dimensional model ply file analysis and display method based on OpenGL
US11366704B2 (en) Configurable analytics for microservices performance analysis
CN116560621A (en) Baseboard management controller chip adapting method, system, equipment and medium
US9811448B2 (en) Event-driven software testing
CN114675978A (en) Operation framework of algorithm application element, data processing method, equipment and storage medium
CN114138379A (en) Task execution method, device and computer readable storage medium
CN112685023A (en) Front-end development processing method, device, equipment and storage medium based on basic library
CN112181370A (en) Data interaction relation generation method, computer equipment and storage medium
CN117453548B (en) Code module information determining method, apparatus, computer device and storage medium
CN116755714B (en) Method, device, equipment and storage medium for operating deep neural network model
CN113656520B (en) Spatial analysis method, spatial analysis device, computer equipment and storage medium
CN114327435A (en) Technical document generation method and device and computer readable storage medium
CN115658797A (en) Data processing method, device and storage medium
CN118519781A (en) Resource allocation method, apparatus, device, storage medium and program product
CN116302026A (en) Intelligent refreshing method and device for application program, computer equipment and storage medium
CN117608573A (en) Development method, device, equipment and medium of user interface UI
CN116991846A (en) Data flow graph generation method, terminal equipment and storage medium
CN114661301A (en) Graphics processing unit compiling method, device, compiling acceleration library and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211011

Address after: Building 36, yard 8, Dongbeiwang West Road, Haidian District, Beijing 100089

Applicant after: Dawning Information Industry (Beijing) Co.,Ltd.

Applicant after: Zhongke Shuguang International Information Industry Co.,Ltd.

Applicant after: ZHONGKE SUGON INFORMATION INDUSTRY CHENGDU Co.,Ltd.

Address before: Building 36, yard 8, Dongbeiwang West Road, Haidian District, Beijing 100089

Applicant before: Dawning Information Industry (Beijing) Co.,Ltd.

Applicant before: Zhongke Shuguang International Information Industry Co.,Ltd.

GR01 Patent grant
GR01 Patent grant