CN109783130A - A kind of packaging method and server of front end project - Google Patents
A kind of packaging method and server of front end project Download PDFInfo
- Publication number
- CN109783130A CN109783130A CN201811545713.0A CN201811545713A CN109783130A CN 109783130 A CN109783130 A CN 109783130A CN 201811545713 A CN201811545713 A CN 201811545713A CN 109783130 A CN109783130 A CN 109783130A
- Authority
- CN
- China
- Prior art keywords
- file
- folder
- component
- project
- server
- 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.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present application discloses the packaging method and server of a kind of front end project, this method comprises: when project folder changes, server scans the folder of the component file in the project folder to obtain the entry file in the folder of the component file in the project folder, and the project folder is pressed from both sides comprising multiple component files;The server generates the first file according to the entry file of various components file in the multiple component file folder, and first file includes the list of the entry file of the various components file;The server is packaged the front end project according to first file.Using the embodiment of the present application, it is able to solve the poor problem of the scalability of front end project.
Description
Technical field
This application involves network technique field more particularly to a kind of packaging methods and server of front end project.
Background technique
With the rapid development of Internet, front end exploitation becomes more and more important and complexity.In the prior art, research staff
Entire front end destination code unification can be packaged after writing the program code of front end project to client, then will beat
The entire front end project wrapped is saved in server, when the page for thering is client request to load the front end project, server
Client is sent by packed front end project again and is used for the loaded and displayed page, this is from program code is write to being packaged again to adding
The whole process for carrying the display page seems complex cumbersome.In addition, when needs are modified the code in the front end project
When, it needs entire project is locally downloading, builds environment again just and may be implemented the change to project, this mistake entirely changed
Journey needs to spend a large amount of energy and time cost, causes the scalability of front end project poor.How front end project is enhanced
Scalability is that research staff has been devoted to solve the problems, such as a long time.
Summary of the invention
The embodiment of the present application provides a kind of front end project packaging method and server, it is intended to which solving entire front end project can
The problem of scalability difference.
In a first aspect, the embodiment of the present application provides a kind of front end project packaging method, this method comprises:
When project folder changes, it is described to obtain that server scans the folder of the component file in the project folder
The entry file in component file folder in project folder, wherein the project folder is pressed from both sides comprising multiple component files, often
A component file presss from both sides the entry file for storing a component and one component of the front end project;One group
The entry file of part is used to provide call entry for one component;
The server generates the first text according to the entry file of various components file in the multiple component file folder
Part, first file include the list of the entry file of the various components file;
The server is packaged the front end project according to first file.
Using the embodiment of the present application, when the project folder of front end project changes, that is, need to update the item file
When folder namely needs to update the front end project, it is only necessary to the various components file in the project folder after scanning the variation
Folder obtains the module inlet file in various components file, further according to one map paths of these module inlet file generateds
File, then being repacked according to the map paths file can be fast when entire front end project needs loading page for client
Speed load uses, to greatly strengthen the scalability of front end project.
With reference to first aspect, described when project folder occurs in the first possible embodiment of first aspect
Variation includes:
When appearance increases, modifies and delete one of component file folder or a variety of situations newly in the project folder.
The possible embodiment of with reference to first aspect the first, in second of possible embodiment of first aspect
In, the server scans the folder of the component file in the project folder to obtain all components text in the project folder
Before entry file in part folder, further includes:
Project folder described in the server monitoring is to judge whether the project folder changes.
The possible embodiment of second with reference to first aspect, in the third possible embodiment of first aspect
In, each component file folder is also used to store the dependent file of one component, if the dependence text of one component
Part while the still dependent file of other assemblies, then the server is used for the storage of the dependent file by one component
Realize the other assemblies to the calling of the dependent file of one component in path.
The mutual reuse that dependent file between component may be implemented using the embodiment of the present application, when being able to solve packaging file
The problem of repetition is packaged identical dependent file, the repetition for avoiding relying on file are packaged, the front end project committed memory after packing
Less, the page load when loading velocity faster.
With reference to first aspect, the possible embodiment of the first of first aspect, second of possible reality of first aspect
Any one of the third the possible embodiment for applying mode and first aspect, in the 4th kind of possible implementation of first aspect
In mode, the server generates the first text according to the entry file of various components file in the multiple component file folder
Part, comprising:
The entry file of various components file in the multiple component file folder is written described first by the server
File.
Second aspect, the embodiment of the present application provide a kind of server, which includes:
Scanning element, for changing when project folder, scan the component file folder in the project folder with
Obtain the entry file in the project folder in all components file, wherein the project folder includes more
A component file folder, each component file press from both sides the entrance for storing a component and one component of the front end project
File;The entry file of one component is used to provide call entry for one component;
Generation unit, for generating first according to the entry file of various components file in the multiple component file folder
File, first file include the list of the entry file of the various components file;
Packaged unit, for being packaged the front end project according to first file.
Using the embodiment of the present application, when the project folder of front end project changes, that is, need to update the item file
When folder namely needs to update the front end project, it is only necessary to the various components file in the project folder after scanning the variation
Folder obtains the module inlet file in various components file, further according to one map paths of these module inlet file generateds
File, then being repacked according to the map paths file can be fast when entire front end project needs loading page for client
Speed load uses, to greatly strengthen the scalability of front end project.
It is described when project folder occurs in the first possible embodiment of second aspect in conjunction with second aspect
Variation includes:
When appearance increases, modifies and delete one of component file folder or a variety of situations newly in the project folder.
In conjunction with the first possible embodiment of second aspect, in second of possible embodiment of second aspect
In, it further include monitoring unit, for scanning the folder of the component file in the project folder in the scanning element to obtain
Before stating the entry file in project folder in all components file, the project folder is monitored to judge the project
Whether file changes.
In conjunction with second of possible embodiment of second aspect, in the third possible embodiment of second aspect
In, each component file folder is also used to store the dependent file of one component, the server further include:
Call unit, for one component dependent file simultaneously or other assemblies dependent file the case where
Under, realize the other assemblies to the dependence text of one component by the storage path of the dependent file of one component
The calling of part.
The mutual reuse that dependent file between component may be implemented using the embodiment of the present application, when being able to solve packaging file
The repetition of the problem of repetition is packaged identical dependent file, the dependent file avoided is packaged, the front end project committed memory after packing
Less, the page load when loading velocity faster.
The first possible embodiment, second of possible reality of second aspect in conjunction with second aspect, second aspect
Any one of the third the possible embodiment for applying mode and second aspect, in the 4th kind of possible implementation of second aspect
In mode, the generation unit, for being generated according to the entry file of various components file in the multiple component file folder
First file, specifically:
For first file to be written in the entry file of various components file in the multiple component file folder.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer storage medium
It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor
It states processor and executes method described in above-mentioned first aspect.
Fourth aspect, the embodiment of the present application provide a kind of server, including processor, communication interface and memory, institute
It states processor, communication interface and memory to be connected with each other, wherein the memory is for storing application code, the place
Reason device is configured for calling the application code, executes method described in above-mentioned first aspect.
In conclusion when the project folder of front end project changes, that is, needing to update should using the embodiment of the present application
When project folder namely needs to update the front end project, it is only necessary to each group in the project folder after scanning the variation
Part file obtains the module inlet file in various components file, further according to one road of these module inlet file generateds
Diameter mapped file, when then repacking entire front end project according to the map paths file and needing loading page for client
Use can be quickly loaded, to greatly strengthen the scalability of front end project.
Detailed description of the invention
Attached drawing needed in the embodiment of the present application will be described below.
Fig. 1 is a kind of flow diagram of front end project packaging method provided by the embodiments of the present application;
Fig. 2A and Fig. 2 B is the schematic diagram of item file in a kind of front end project packaging method provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of server provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of property server provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand the present invention program, below in conjunction with attached in the embodiment of the present application
Figure, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this Shen
Please a part embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present application.
With the fast development of internet, the function of front end webpage is stronger and stronger, and the content of webpage is more and more abundant, table
The mode of existing content is also more and more various, so front-end code just becomes increasingly complex, dependent file is also more and more, for simplification
The complexity of exploitation, it can be small file complicated meticulous procedure that there have been modularizations and modularization;In addition, browsing
Device can identify that the file of display is script JavaScript file, but there have been a variety of in order to simplify the complexity of exploitation
The front end development language of expansion, browser are unable to these extension language of Direct Recognition.In conclusion in order to simplify the complexity of exploitation
Although the methods of the modularization that degree is proposed, modularization and Expansion development language substantially increase development efficiency,
It generally requires to carry out additional processing by the file that these methods are developed browser could be allowed to identify, this just needs front end to be packaged
The front end project of completion is packaged into the file that browser can identify by the participation of tool.But how to be packaged to guarantee
It is that research staff has been devoted to solve for a long time that the scalability of front end project, which relatively enables to loading velocity comparatively fast again by force,
Problem.
The embodiment of the present application provides a kind of front end project packaging method and server, it is intended to which solving entire front end project can
The problem of scalability difference.
It is described in detail separately below.
A kind of front end project packaging method is provided below, refering to fig. 1 a kind of shown flow chart of front end project packaging method,
Specific method and step is as follows:
Step 101 changes when project folder, server scan the folder of the component file in the project folder with
The entry file in the component file folder in the project folder is obtained, the project folder includes multiple component files
Folder.
Specifically, project folder stores the component file folder of entire front end project, usually there is a large amount of component file
Folder stores the entry file of corresponding component He the component in each component file folder, if component there are dependent file,
So the also corresponding dependent file for storing component, the dependent file of component can be one, be also possible in component file folder
It is multiple.The title of component file folder can be identical with the title of component, such as the entitled http of some component, then storage should
The title of the file of http component is also possible to http.Component is actually the various pieces of front end display interface, for example, one
A web interface, navigation bar can be a component, answer area can be a component, editing area can be a component, page
Foot is also possible to component etc., and a complete page is actually to be collectively formed by many components.
In order to be best understood from project folder how storage assembly for storing, can refer to Fig. 2A and Fig. 2 B, Fig. 2A and Fig. 2 B institute
Multiple component file folders, including component file folder 201 and component file folder 202 are stored in the project folder 200 shown, each
Corresponding component, entry file are all stored in component file folder, such as are stored component 201 and first in component file folder and entered
Mouth file, component file folder 202 store component 202 and second entrance file.In alternatively possible embodiment, component
The dependent file of the component in component file folder is also stored in file, such as in Fig. 2 B, store in component file folder 201
Multiple dependent files such as the dependent file of component 201, including the first dependent file, the second dependent file;Component file folder 202
Multiple dependent files such as the middle dependent file, including N+1 dependent file, N+2 dependent file for storing component 202, certainly
Component file folder in may also only exist a dependent file, this mainly as the case may be depending on, herein with no restrictions.
In a particular embodiment, when the component file folder in project folder changes or project folder goes out
All components file when now updating, in server meeting scan item file, in order to obtain in project folder
Module inlet file in all components file.
It is described to include: when variation occurs in project folder in a kind of wherein possible embodiment
When appearance increases, modifies and delete one of component file folder or a variety of situations newly in the project folder.
In a particular embodiment, the case where occurring newly-increased component file folder in project folder includes: front end project needs
Increase one or more components newly, thus the corresponding component file folder that increases is used to store this for needing to increase newly in project folder
One or more components.When occurring newly-increased component file folder in project folder, server, which can scan, has increased component file folder newly
Project folder, and obtain all in the module inlet file and original project folder in newly-increased component file folder
Module inlet file in component file folder.Alternatively, when occurring newly-increased component file folder in project folder, server can be scanned
It has increased the project folder of component file folder newly, and has obtained the module inlet file in newly-increased component file folder, this has been increased newly
Component file folder in module inlet file be added to be stored in advance or cache store all components entry file text
In part folder.
The case where component file folder in project folder is modified includes: that the one or more components of front end project need
Improve or the dependent file of component needs update etc..In this case, server also can scan components file repair
The module inlet of all components file in project folder and the modified project folder of securing component file after changing
File.Alternatively, in project folder component file folder occur modification in the case where, server also can scan components file repair
The module inlet file for the component file folder that project folder and acquisition after changing have modified, then by the component having modified text
The module inlet file of part folder is updated into the file for the storage all components entry file for being stored in advance or having cached.
When occurring the case where deleting component file folder in project folder, likewise, component file is deleted in server scanning
Project folder after folder obtains the group of remaining all components file in the project folder after deleting component file folder
Part entry file.Alternatively, the project folder after component file folder is deleted in server scanning, more according to remaining component file folder
Module inlet file in the file for the storage all components entry file for being newly stored in advance or having cached.
In project folder while the case where the newly-increased component file folder of appearance and modification component file press from both sides, or work as project
The case where newly-increased component file of appearance simultaneously presss from both sides and deletes component file folder in file, or work as in project folder to go out simultaneously
The case where now modification component file folder and deletion component file press from both sides, or work as and occur increasing component file newly simultaneously in project folder
When the case where folder, modification component file folder and deletion component file folder, server can all rescan the project after there is variation
File, and obtain the module inlet file of all components file in the project folder after there is variation.Alternatively, server
Module inlet after rescaning, in the corresponding file for updating the storage all components entry file for being stored in advance or having cached
File.
Further, it is specially server scanning all components text that server, which obtains the entry file of all components file,
Part folder extracts the module inlet file in each component file folder.
In a kind of wherein possible embodiment, the server scans the folder of the component file in the project folder
Before obtaining the entry file in the project folder in all components file, further includes:
Project folder described in the server monitoring is to judge whether the project folder changes.
Specifically, the case where server meeting dynamic or real time monitoring project folder, once discovery project folder occurs
Variation, server will project folders after scan variations.
Step 102, the server are raw according to the entry file of various components file in the multiple component file folder
At the first file.
In a particular embodiment, after server extracts the module inlet file in each component file folder, according to these
The first file of module inlet file generated, this first file includes the module inlet file of all components file, practical
Upper first file is a map paths file, for providing the map paths of various components for subsequent packing.
In a kind of wherein possible embodiment, the server generates the first file according to the entry file can be with
It is that the server will form a map paths file in all module inlet files the first files of write-in extracted.
Step 103, the server are packaged the front end project according to first file.
Specifically, the server is packaged entire front end project according to the map paths file of generation by strapping tool,
File after packing is all the file that suffix is .js, this class file can be identified by browser;In addition if the front end project
In have a case where file is multiple components common dependent file, then this can be total to by server during packing
Same dependent file, which individually extracts, to be stored in a shared space in order to which various components are called, and is also possible to
The common dependent file is packaged and generates a .js file in order to which various components are called by server.Strapping tool can
To be the strapping tools such as webpack, gulp, Rollup or Parcel.
In a kind of wherein possible embodiment, the component file folder in project folder also stores component file folder
The dependent file of interior corresponding component, the dependent file are exactly that corresponding component realizes the file relied on required for display in front end, this
A little dependent files are also possible to another component, and here it is the common dependences between component.If a file is simultaneously multiple
The dependent file of component, then the reuse that can realize dependent file by the storage path of a file.
Specifically, if some file (for ease of description, which is referred to as file destination) is stored in project text
Part press from both sides in first assembly file, stored in the first assembly file first assembly, first assembly dependent file and
The entry file of the first assembly, then file destination is the dependent file of the first assembly, if the file destination or item
The dependent file of the second component in mesh file in the second component file folder, then the second component can be in its entry file
It is called by the store path of file destination to realize the reuse of file destination;Specifically, assuming first group
The filename of part is http, and the filename of file destination is a, then the second component can be written in its entry file
Sentence as " importhttp/a " realizes the reuse of file destination, and does not have to file destination duplication storage to second again
In component file folder, which reduces same file multiplicatings to be stored in a project, reduces entire front end
Purpose capacity, the file method for reusing after packing in this way, due to the project capacity after being packaged when front end needs to load project
It is smaller, thus loading velocity is improved.
In conclusion when the project folder of front end project changes, that is, needing to update should using the embodiment of the present application
When project folder namely needs to update the front end project, it is only necessary to each group in the project folder after scanning the variation
Part file obtains the module inlet file in various components file, further according to one road of these module inlet file generateds
Diameter mapped file, when then repacking entire front end project according to the map paths file and needing loading page for client
Use can be quickly loaded, to greatly strengthen the scalability of front end project.
For the ease of better implementing the above scheme of the application, the embodiment of the present application also correspondence provides a kind of service
Device 3 is described in detail with reference to the accompanying drawing:
Fig. 3 show a kind of structural schematic diagram of server 300, and the server 300 includes: scanning element 301, generates
Unit 302 and packaged unit 303, in which:
Scanning element 301 scans the component file folder in the project folder for changing when project folder
To obtain the entry file in the project folder in all components file, wherein the project folder includes
Multiple component file folders, each component file folder is for storing a component of the front end project and entering for one component
Mouth file;The entry file of one component is used to provide call entry for one component;
Generation unit 302, for being generated according to the entry file of various components file in the multiple component file folder
First file, first file include the list of the entry file of the various components file;
Packaged unit 303, for being packaged the front end project according to first file.
It is described to include: when variation occurs in project folder in a kind of wherein possible embodiment
When appearance increases, modifies and delete one of component file folder or a variety of situations newly in the project folder.
In a kind of wherein possible embodiment, server 300 further includes monitoring unit, and the monitoring unit is used for
The scanning element scans the folder of the component file in the project folder to obtain all components text in the project folder
Before entry file in part folder, the project folder is monitored to judge whether the project folder changes.
In a kind of wherein possible embodiment, each component file folder is also used to store one component
Dependent file, server 300 further include call unit, for the dependent file while or other assemblies in one component
Dependent file in the case where, realize the other assemblies to described by the storage path of the dependent file of one component
The calling of the dependent file of one component.
In a kind of wherein possible embodiment, generation unit 302, for according to each in the multiple component file folder
The entry file of a component file folder generates the first file, specifically:
For first file to be written in the entry file of various components file in the multiple component file folder.
In server 300 shown in Fig. 3 the specific implementation of each unit and beneficial effect can correspond to referring to Fig.1 shown in
Corresponding description in embodiment of the method, details are not described herein again.
Fig. 4 is referred to, Fig. 4 is a kind of server 400 provided by the embodiments of the present application, which includes processor
401, memory 402 and communication interface 403, the processor 401, memory 402 and communication interface 403 pass through 404 phase of bus
It connects.
Memory 402 include but is not limited to be random access memory (random access memory, RAM), it is read-only
Memory (read-only memory, ROM), Erasable Programmable Read Only Memory EPROM (erasable programmable
Read only memory, EPROM) or portable read-only memory (compact disc read-only memory, CD-
ROM), storage of the memory 402 for dependent instruction and data.Communication interface 403 is for sending and receiving data.
Processor 401 can be one or more central processing units (central processing unit, CPU), locate
In the case that reason device 401 is a CPU, which can be monokaryon CPU, be also possible to multi-core CPU.
Processor 401 in the server 400 for reading the program code stored in the memory 402, execute with
Lower operation:
When project folder changes, processor 401 scans the folder of the component file in the project folder to obtain
The entry file in component file folder in the project folder, wherein the project folder includes multiple component files
Folder, each component file press from both sides the entry file for storing a component and one component of the front end project;It is described
The entry file of one component is used to provide call entry for one component;
Processor 401 generates the first text according to the entry file of various components file in the multiple component file folder
Part, first file include the list of the entry file of the various components file;
Processor 401 is packaged the front end project according to first file.
It is described to include: when variation occurs in project folder in a kind of wherein possible embodiment
When appearance increases, modifies and delete one of component file folder or a variety of situations newly in the project folder.
In a kind of wherein possible embodiment, processor 401 scans the folder of the component file in the project folder
Before obtaining the entry file in the project folder in all components file, further includes:
Processor 401 monitors the project folder to judge whether the project folder changes.
In a kind of wherein possible embodiment, each component file folder is also used to store one component
Dependent file, if still the dependent file of other assemblies, processor 401 are used to lead to the dependent file of one component simultaneously
Realize the other assemblies to the dependent file of one component in the storage path for crossing the dependent file of one component
It calls.
In a kind of wherein possible embodiment, processor 401 is according to various components in the multiple component file folder
The entry file of file generates the first file, comprising:
Processor 401 is literary by the entry file write-in described first of various components file in the multiple component file folder
Part.
It should be noted that the realization of each operation can also correspond to referring to Fig.1 shown in embodiment of the method accordingly retouch
It states.
In conclusion when the project folder of front end project changes, that is, needing to update should using the embodiment of the present application
When project folder namely needs to update the front end project, it is only necessary to each group in the project folder after scanning the variation
Part file obtains the module inlet file in various components file, further according to one road of these module inlet file generateds
Diameter mapped file, when then repacking entire front end project according to the map paths file and needing loading page for client
Use can be quickly loaded, to greatly strengthen the scalability of front end project.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer storage medium is stored with meter
Calculation machine program, the computer program include program instruction, when described program instruction is executed by processor, side shown in FIG. 1
Method process is achieved.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, the process
Relevant hardware can be instructed to complete by computer program, which can be stored in computer-readable storage medium, should
Program is when being executed, it may include such as the process of above-mentioned each method embodiment.And storage medium above-mentioned includes: ROM or deposits at random
Store up the medium of the various program storage codes such as memory body RAM, magnetic or disk.
In several embodiments provided by the present invention, it should be understood that disclosed server and method can pass through
Other modes are realized.For example, server example described above is only schematical, for example, the unit is drawn
Point, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of packaging method of front end project characterized by comprising
When project folder changes, server scans the folder of the component file in the project folder to obtain the project
The entry file in component file folder in file, wherein the project folder is pressed from both sides comprising multiple component files, and each group
Part file is used to store the entry file of a component and one component of the front end project;One component
Entry file is used to provide call entry for one component;
The server generates the first file, institute according to the entry file of various components file in the multiple component file folder
State the list that the first file includes the entry file of the various components file;
The server is packaged the front end project according to first file.
2. method according to claim 1, which is characterized in that described to include: when variation occurs in project folder
When appearance increases, modifies and delete one of component file folder or a variety of situations newly in the project folder.
3. method according to claim 2, which is characterized in that the server scans the text of the component in the project folder
Before part folder is to obtain the entry file in the project folder in all components file, further includes:
Project folder described in the server monitoring is to judge whether the project folder changes.
4. method according to claim 3, which is characterized in that each component file folder is also used to store one group
The dependent file of part, if the dependent file of one component while the still dependent file of other assemblies, the server
Realize dependence of the other assemblies to one component in storage path for the dependent file by one component
The calling of file.
5. any one of -4 the method according to claim 1, which is characterized in that the server is according to the multiple component file
The entry file of various components file generates the first file in folder, comprising:
First file is written in the entry file of various components file in the multiple component file folder by the server.
6. a kind of server characterized by comprising
Scanning element, for changing when project folder, the component file scanned in the project folder is pressed from both sides to obtain
Entry file in the project folder in all components file, wherein the project folder includes multiple groups
Part file, each component file folder is for storing a component of the front end project and the entrance text of one component
Part;The entry file of one component is used to provide call entry for one component;
Generation unit, for generating the first text according to the entry file of various components file in the multiple component file folder
Part, first file include the list of the entry file of the various components file;
Packaged unit, for being packaged the front end project according to first file.
7. server according to claim 6, which is characterized in that described to include: when variation occurs in project folder
When one of newly-increased, modification and deletion component file folder or a variety of situations occurs in the project folder.
8. server according to claim 7, which is characterized in that further include:
Monitoring unit, for scanning the folder of the component file in the project folder in the scanning element to obtain the project
Before entry file in file in all components file, the project folder is monitored to judge the project folder
Whether change.
9. server according to claim 8, which is characterized in that each component file folder is also used to store one
The dependent file of component, the server further include:
Call unit, for the dependent file of one component simultaneously or other assemblies dependent file in the case where,
Realize the other assemblies to the dependent file of one component by the storage path of the dependent file of one component
Calling.
10. according to any one of the claim 6-9 server, which is characterized in that the generation unit, for according to described more
The entry file of various components file generates the first file in a component file folder, specifically:
For first file to be written in the entry file of various components file in the multiple component file folder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811545713.0A CN109783130A (en) | 2018-12-14 | 2018-12-14 | A kind of packaging method and server of front end project |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811545713.0A CN109783130A (en) | 2018-12-14 | 2018-12-14 | A kind of packaging method and server of front end project |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109783130A true CN109783130A (en) | 2019-05-21 |
Family
ID=66497184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811545713.0A Pending CN109783130A (en) | 2018-12-14 | 2018-12-14 | A kind of packaging method and server of front end project |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109783130A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110659253A (en) * | 2019-09-03 | 2020-01-07 | 北京达佳互联信息技术有限公司 | File packaging method and device, electronic equipment and medium |
CN110704096A (en) * | 2019-09-12 | 2020-01-17 | 北京达佳互联信息技术有限公司 | Packaging method and device of front-end item, storage medium and electronic equipment |
CN111694596A (en) * | 2020-05-27 | 2020-09-22 | 五八有限公司 | Packing method and packing device for entry paths in webpack environment |
CN112148342A (en) * | 2019-06-27 | 2020-12-29 | 北京达佳互联信息技术有限公司 | Component configuration method and device, electronic equipment and storage medium |
CN112732328A (en) * | 2020-12-30 | 2021-04-30 | 望海康信(北京)科技股份公司 | WebPack packaging system, webpack packaging method, corresponding equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050114630A1 (en) * | 2003-11-24 | 2005-05-26 | International Business Machines (Ibm) Corporation | Web application development tool |
CN105511868A (en) * | 2015-11-30 | 2016-04-20 | 深圳联友科技有限公司 | IOS application program packing method |
CN106126432A (en) * | 2016-09-18 | 2016-11-16 | 网易(杭州)网络有限公司 | Development project is revised method of testing and the device of content |
CN107729041A (en) * | 2017-07-26 | 2018-02-23 | 上海壹账通金融科技有限公司 | The hot update method of application program, device, terminal and storage medium |
CN108965295A (en) * | 2018-07-17 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of compressing file merging method and relevant apparatus |
-
2018
- 2018-12-14 CN CN201811545713.0A patent/CN109783130A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050114630A1 (en) * | 2003-11-24 | 2005-05-26 | International Business Machines (Ibm) Corporation | Web application development tool |
CN105511868A (en) * | 2015-11-30 | 2016-04-20 | 深圳联友科技有限公司 | IOS application program packing method |
CN106126432A (en) * | 2016-09-18 | 2016-11-16 | 网易(杭州)网络有限公司 | Development project is revised method of testing and the device of content |
CN107729041A (en) * | 2017-07-26 | 2018-02-23 | 上海壹账通金融科技有限公司 | The hot update method of application program, device, terminal and storage medium |
CN108965295A (en) * | 2018-07-17 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of compressing file merging method and relevant apparatus |
Non-Patent Citations (4)
Title |
---|
_BLEACH: "详解webpack+es6+angular1.x项目构建", 《HTTPS://WWW.JB51.NET/ARTICLE/112646.HTM》 * |
ZEGENDARY: "在多个文件中import同一个文件,webpack会多次打包吗", 《HTTPS://SEGMENTFAULT.COM/A/1190000008521430》 * |
敲代码的卡卡罗特: "webpack的使用", 《HTTPS://WWW.CNBLOGS.COM/CODER-LZH/P/9694443.HTML》 * |
新蕾的梦幻: "vue组件之间的引用", 《 HTTPS://WWW.CNBLOGS.COM/CHENGYALIN/P/9069359.HTML》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112148342A (en) * | 2019-06-27 | 2020-12-29 | 北京达佳互联信息技术有限公司 | Component configuration method and device, electronic equipment and storage medium |
CN110659253A (en) * | 2019-09-03 | 2020-01-07 | 北京达佳互联信息技术有限公司 | File packaging method and device, electronic equipment and medium |
CN110704096A (en) * | 2019-09-12 | 2020-01-17 | 北京达佳互联信息技术有限公司 | Packaging method and device of front-end item, storage medium and electronic equipment |
CN111694596A (en) * | 2020-05-27 | 2020-09-22 | 五八有限公司 | Packing method and packing device for entry paths in webpack environment |
CN112732328A (en) * | 2020-12-30 | 2021-04-30 | 望海康信(北京)科技股份公司 | WebPack packaging system, webpack packaging method, corresponding equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109783130A (en) | A kind of packaging method and server of front end project | |
KR101908162B1 (en) | Live browser tooling in an integrated development environment | |
US9952835B2 (en) | Generation of hybrid enterprise mobile applications in cloud environment | |
US10447764B2 (en) | Mapping selections between a browser and the original fetched file from a web server | |
CN109885324A (en) | A kind of processing method, device, terminal and the storage medium of application program installation kit | |
CN106021257A (en) | Method, device, and system for crawler to capture data supporting online programming | |
US20140025684A1 (en) | Indexing and searching a data collection | |
US8812683B2 (en) | Service scripting framework | |
CN107291913B (en) | Hypertext markup language webpage loading method and device | |
CN104601691A (en) | Method and system for increasing loading speed of Web site resource | |
CN102141991A (en) | Method and system for web server | |
CN106796525A (en) | On-demand loading dynamic script language codes are used with reducing internal memory | |
US11301539B2 (en) | Just-in-time front end template generation using logical document object models | |
JP2013516701A (en) | Efficient invariant syntactic representation with gradual change | |
CN114138776A (en) | Method, system, apparatus and medium for graph structure and graph attribute separation design | |
CN104423982A (en) | Request processing method and device | |
CN109145236A (en) | Page file processing method, apparatus and system | |
KR101287371B1 (en) | Method and Device for Collecting Web Contents and Computer-readable Recording Medium for the same | |
CN105718279B (en) | Generation method and device based on Firefox OS application | |
CN106502757A (en) | A kind of plug-in management method and device | |
CN112667593B (en) | Method and device for ETL (extract transform and load) process to execute hbase fast loading | |
CN106156291A (en) | The caching method of static resource and system thereof based on Localstroage | |
CN102236679A (en) | Method and device for outputting workflow based on browser page | |
CN106293862B (en) | A kind of analysis method and device of expandable mark language XML data | |
CN107643892B (en) | Interface processing method, device, storage medium and processor |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190521 |