CN107273140B - Scaffold manages method, apparatus and electronic equipment - Google Patents
Scaffold manages method, apparatus and electronic equipment Download PDFInfo
- Publication number
- CN107273140B CN107273140B CN201710547621.5A CN201710547621A CN107273140B CN 107273140 B CN107273140 B CN 107273140B CN 201710547621 A CN201710547621 A CN 201710547621A CN 107273140 B CN107273140 B CN 107273140B
- Authority
- CN
- China
- Prior art keywords
- scaffold
- template
- git
- warehouses
- ware
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/22—Procedural
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/72—Code refactoring
Abstract
An embodiment of the present invention provides a kind of scaffold management method, apparatus and electronic equipments, are applied to the user terminal being connect with server communication, which prestores the warehouses Git for including multiple scaffold templates.The method includes:Multiple scaffold templates are obtained from the warehouses Git of server, and are preserved to local to generate ware-house here;Scaffold module corresponding with pending scaffold template name is obtained from the warehouses Git or ware-house here, as specified scaffold template;Decompression acquisition decompressing files is carried out to specified scaffold template and is stored to local folders;Scaffold code in decompressing files is configured, required scaffold file is generated.Scaffold Managed Solution provided by the invention, it saves the processing time of whole process and reduces system processing load, required scaffold file can be quickly and easily generated, extra operation is not necessarily to for user and developer, is a kind of easily management tool.
Description
Technical field
The present invention relates to field of computer technology, manage method, apparatus in particular to a kind of scaffold and electronics is set
It is standby.
Background technology
Git is a distributed version control system increased income, and can be handled effectively, at high speed from very little to very greatly
Item version management.Scaffold can provide the basic framework at initial stage for project, and development environment etc. facilitates and quickly developed,
Save the time.In the prior art, exploitation is being carried out to scaffold and in use, its operation is relatively complicated, and very not in terms of chase after
The operation history of track scaffold.Therefore, how to realize that simple, efficiently scaffold configures and using particularly significant.
Invention content
In view of this, the purpose of the present invention is to provide a kind of scaffold management method, apparatus and electronic equipment, to solve
The above problem.
The embodiment of the present invention provides a kind of scaffold management method, is applied to the user terminal being connect with server communication, institute
It states server and prestores the warehouses Git for including multiple scaffold templates, the method includes:
Multiple scaffold templates are obtained from the warehouses Git of the server, and are preserved to local to generate ware-house here;
Scaffold mould corresponding with pending scaffold template name is obtained from the warehouses Git or the ware-house here
Block, as specified scaffold template;
Decompression acquisition decompressing files is carried out to the specified scaffold template and is stored to local folders;
Scaffold code in the decompressing files is configured, required scaffold file is generated.
Further, described to be obtained from the warehouses Git or the ware-house here and pending scaffold template name
Before the step of corresponding scaffold module, the method further includes:
Inquiry instruction is received, judges whether the inquiry instruction is consistent with preset instructions, if the inquiry instruction and institute
It states that preset instructions are consistent, then inquires to obtain all scaffold Template Informations in the warehouses Git according to the inquiry instruction.
Further, the specified scaffold template is obtained by following steps:
It inquires and whether there is scaffold template corresponding with the pending scaffold template name in the ware-house here;
If in the presence of scaffold corresponding with the pending scaffold template name is extracted from the ware-house here
Template, if being not present, is downloaded from the warehouses Git and is obtained and the pending foot hand as specified scaffold template
The corresponding scaffold template of frame template name, as specified scaffold template.
Further, exist in inquiry obtains the ware-house here corresponding with the pending scaffold template name
After scaffold template, the method further includes:
Judge whether current system mode is off-line mode, if off-line mode, then executes and carried from the ware-house here
Take out scaffold template corresponding with the pending scaffold template name the step of, if not off-line mode, then execution from
The step of obtaining scaffold template corresponding with the pending scaffold template name is downloaded in the warehouses Git.
Further, the scaffold code in the decompressing files configures, and generates required scaffold text
The step of part, including:
The scaffold code in the decompressing files is configured according to the table that custom-configures of acquisition, is generated required
Scaffold file;
The table that custom-configures is obtained by following steps:
Specified configuration information is arranged simultaneously to show, for selection by the user;
It receives selection result input by user, and generates and corresponding with the selection result custom-configure table.
Another embodiment of the present invention also provides a kind of scaffold managing device, is applied to the user being connect with server communication
End, the server prestore the warehouses Git for including multiple scaffold templates, and the scaffold managing device includes:
First acquisition module for obtaining multiple scaffold templates from the warehouses Git of the server, and is preserved to this
Ground is to generate ware-house here;
Second acquisition module, for being obtained from the warehouses Git or the ware-house here and pending scaffold mould
The corresponding scaffold module of plate name, as specified scaffold template;
Decompression module, for carrying out decompression acquisition decompressing files to the specified scaffold template and storing to local file
Folder;
Configuration module generates required scaffold text for being configured to the scaffold code in the decompressing files
Part.
Further, the scaffold managing device further includes receiving module, judgment module and the first enquiry module;
The receiving module is for receiving inquiry instruction;
The judgment module is for judging whether the inquiry instruction is consistent with preset instructions;
First enquiry module is used for when the inquiry instruction is consistent with the preset instructions, according to the inquiry
Instructions query obtains all scaffold Template Informations in the warehouses Git.
Further, the scaffold managing device further includes the second enquiry module, extraction module and download module;
Second enquiry module whether there is and the pending scaffold mould for inquiring in the ware-house here
The corresponding scaffold template of plate name;
The extraction module is used to exist in the ware-house here corresponding with the pending scaffold template name
When scaffold template, scaffold mould corresponding with the pending scaffold template name is extracted from the ware-house here
Plate, as specified scaffold template;
The download module is used to be not present in the ware-house here corresponding with the pending scaffold template name
Scaffold template when, from the warehouses Git download obtain scaffold corresponding with the pending scaffold template name
Template, as specified scaffold template.
Another embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment is connect with server communication, described
Server prestores the warehouses Git for including multiple scaffold templates, and the electronic equipment includes:
Memory;
Processor;And
Scaffold managing device, the scaffold managing device be installed in the memory and include it is one or more by
The software function module that the processor executes.
Another embodiment of the present invention also provides a kind of storage medium, is stored thereon with computer program, the computer journey
The step of above-mentioned scaffold management method is realized when sequence is executed by processor.
A kind of scaffold management method, apparatus of offer of the embodiment of the present invention and electronic equipment, by multiple feet needed for project
In the unified storage to the long-range warehouses Git of hand cradle template, and extract from the warehouses Git multiple scaffold templates preserve to local with
Generate ware-house here.The specified scaffold template needed for user is obtained from ware-house here or the long-range warehouses Git, to acquisition
Specified scaffold template is decompressed to obtain decompressing files, and is made by oneself with what user demand matched by interactive query acquisition
Adopted allocation list custom-configures table according to this and is configured to the scaffold code in decompressing files, ultimately generates required foot
Hand cradle file.Scaffold Managed Solution provided by the invention saves the processing time of whole process and reduces system processing
Burden, can quickly and easily generate required scaffold file, and extra behaviour is not necessarily to for user and developer
Make, is a kind of easily management tool.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate
Appended attached drawing, is described in detail below.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of application scenarios schematic diagram for scaffold management method that present pre-ferred embodiments provide.
Fig. 2 is the schematic block diagram for the user terminal that present pre-ferred embodiments provide.
Fig. 3 is a kind of flow chart for scaffold management method that present pre-ferred embodiments provide.
Fig. 4 is another flow chart for the scaffold management method that present pre-ferred embodiments provide.
Fig. 5 is another flow chart for the scaffold management method that present pre-ferred embodiments provide.
Fig. 6 is the functional block diagram for the scaffold managing device that present pre-ferred embodiments provide.
Fig. 7 is another functional block diagram for the scaffold managing device that present pre-ferred embodiments provide.
Fig. 8 is another functional block diagram for the scaffold managing device that present pre-ferred embodiments provide.
Fig. 9 is another functional block diagram for the scaffold managing device that present pre-ferred embodiments provide.
Icon:100- user terminals;110- scaffold managing devices;The first acquisition modules of 111-;The second acquisition modules of 112-;
113- decompression modules;114- configuration modules;115- receiving modules;116- judgment modules;The first enquiry modules of 117-;118- second
Enquiry module;119- extraction modules;1110- download modules;1111- setup modules;1112- generation modules;120- processors;
130- memories;200- servers.
Specific implementation mode
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below
Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing
The every other embodiment obtained under the premise of going out creative work, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.Meanwhile the present invention's
In description unless specifically defined or limited otherwise, term " installation ", " setting ", " connection " shall be understood in a broad sense, for example, can
To be to be fixedly connected, may be a detachable connection, or be integrally connected;It can be mechanical connection, can also be electrical connection;It can
Can also can be indirectly connected through an intermediary the connection inside two elements to be to be connected directly.For this field
For those of ordinary skill, the concrete meaning of above-mentioned term in the present invention can be understood with concrete condition.
Referring to Fig. 1, being a kind of application scenarios schematic diagram of scaffold management method provided in an embodiment of the present invention.This
Scape includes user terminal 100 and server 200.The user terminal 100 is communicated to connect by network and the server 200, with into
Row data communication or interaction.Wherein, the user terminal 100 can be multiple (one is only shown in figure), multiple user terminals
100 are communicated to connect by network and the server 200.The user terminal 100 can be but not limited to PC, tablet electricity
Brain, smart mobile phone, mobile internet surfing equipment etc..The server 200 can be network server, database server, Ke Yishi
Individual server can also be server cluster etc..
Referring to Fig. 2, for the schematic block diagram of electronic equipment provided in an embodiment of the present invention.In the present embodiment,
The electronic equipment can be above-mentioned user terminal 100, and the user terminal 100 includes scaffold managing device 110, processor
120 and memory 130.Wherein, electric connection direct or indirect between the memory 130 and the processor 120, with reality
The transmission or interaction of existing data.The scaffold managing device 110 can be stored including at least one in the form of software or firmware
In the memory 130 or the software function module that is solidificated in the operating system of the user terminal 100.The processor
120 for executing the executable module stored in the memory 130, for example, the scaffold managing device 110 include it is soft
Part function module or computer program.
Referring to Fig. 3, being a kind of scaffold management method applied to above-mentioned user terminal 100 provided in an embodiment of the present invention
Flow chart.It should be noted that method provided by the invention is not limitation with Fig. 3 and particular order as described below.Below
Each step shown in Fig. 3 will be described in detail.
Step S101, obtains multiple scaffold templates from the warehouses Git of the server 200, and preserve to local with
Generate ware-house here.
In the present embodiment, the user terminal 100 is communicated to connect with the server 200, and pre- in the server 200
There are the warehouses Git for including multiple scaffold templates.It should be appreciated that the scaffold template in the warehouses Git is a plurality of clients
100 push to the summation of the scaffold template in server 200, for example, what all teams of the same project were pushed
The summation of scaffold template.
It in the present embodiment, can be first for the ease of subsequently carrying out the work such as scaffold template configuration using off-line mode
Multiple scaffold templates are first pulled from the warehouses Git of the server 200, and are preserved to local to generate ware-house here.It answers
Work as understanding, is the part scaffold template in the warehouses Git from the multiple scaffold templates obtained in server 200, such as before
The used scaffold template of institute.
Optionally, in the present embodiment, it is to be developed based on nodeJS, nodeJS can be simulated and be sent out acquisition and ask
It asks, then the operations such as can be downloaded.There have been the library much increased income in the communities nodeJS, and can directly invoke one of them just
Row is realized the content copy in the warehouses Git to locally.
Optionally, in the specific implementation, user can get current all available scaffold moulds by query actions
Plate.In the present embodiment, the scaffold management method is further comprising the steps of:
Inquiry instruction is received, judges whether the inquiry instruction is consistent with preset instructions, if the inquiry instruction and institute
It states that preset instructions are consistent, then inquires to obtain all scaffold Template Informations in the warehouses Git according to the inquiry instruction.
Optionally, the user terminal 100 is after receiving inquiry instruction input by user, it is necessary first to which inspection, which receives, looks into
Ask whether instruction is that preset instructions are consistent, such as can will be set as odin list for the preset instructions of inquiry, if then receiving
The inquiry instruction input by user arrived is odin list, then inquiry obtains all available scaffolds in the presently described warehouses Git
Template Information, and user is fed back to, so that user knows current all available scaffold templates.If the user's input received
Inquiry instruction it is inconsistent with pre-set commands, then do not respond.
Step S103 is obtained corresponding with pending scaffold template name from the warehouses Git or the ware-house here
Scaffold module, as specified scaffold template.
User can select corresponding foot hand after knowing current all available scaffold Template Informations according to self-demand
Frame template is subsequently to handle it.That is, user can input pending scaffold template name, user terminal 100 is according to connecing
It is corresponding that the acquisition instruction received obtains the scaffold template name pending with this from the long-range warehouses Git either ware-house here
Scaffold template, as specified scaffold template.
Optionally, referring to Fig. 4, in the present embodiment, the specified scaffold template can be obtained by following steps:
Step S201 is inquired and be whether there is foot corresponding with the pending scaffold template name in the ware-house here
Hand cradle template, and if it exists, then execute following steps S203, if being not present, execute following steps S205.
Step S203 extracts scaffold corresponding with the pending scaffold template name from the ware-house here
Template, as specified scaffold template.
Step S205 is downloaded from the warehouses Git and is obtained foot hand corresponding with the pending scaffold template name
Frame template, as specified scaffold template.
It should be appreciated that the scaffold template in the ware-house here of user terminal 100 is the scaffold template in the long-range warehouses Git
A part.What user was known after input inquiry instruction is current all available scaffold templates, i.e., the current warehouses Git
In all scaffold templates.It is likely to be present in ware-house here according to the selected specified scaffold template of the information user,
It is also possible in ware-house here and being not present, exist only in the long-range warehouses Git.
In the present embodiment, in order to save processing time and reduce system burden, user terminal 100 is input by user in acquisition
When pending scaffold template name, such as input instruction odin gen+ scaffold template names, it can inquire in ware-house here first
With the presence or absence of scaffold template corresponding with the scaffold template name, if there are the scaffold templates, directly from ware-house here
In extract the scaffold template, as specified scaffold template.
Certainly, if scaffold mould corresponding with the pending scaffold template name is currently not present in ware-house here
Plate can only then go to download from the long-range warehouses Git to obtain the scaffold template.
It in the present embodiment, can when ware-house here has scaffold template required accordingly using a querying flow
It is directly obtained from ware-house here, then the long-range warehouses Git need not can every time be gone to download corresponding required scaffold template, it can
It saves processing time as much as possible and reduces the processing load of system.
When it is implemented, when carrying out the acquisition of scaffold template, it should also be taken into account that current network state and user demand,
Optionally, in the present embodiment, the scaffold management method is further comprising the steps of:
Judge whether current system mode is off-line mode, if off-line mode, then executes and carried from the ware-house here
Take out scaffold template corresponding with the pending scaffold template name the step of, if not off-line mode, then execution from
The step of obtaining scaffold template corresponding with the pending scaffold template name is downloaded in the warehouses Git.
Step S105 carries out decompression acquisition decompressing files to the specified scaffold template and stores to local folders.
In the present embodiment, accessed specified scaffold template is a compressed package files, so needing to be solved
It compresses and is stored in local personal portfolio, subsequently to use.If for example, the text of the project storage file currently carried out
Part presss from both sides entitled .odin-template, naturally it is also possible to be user-defined file, not make in the present embodiment specific
Limitation.The compressed package of the specified scaffold template is unziped under corresponding folder, for example, the mould of the specified scaffold template
The entitled test of plate.A test file will be generated so in .odin-template, after decompression, this is stored in the inside
All scaffold codes of specified scaffold template.
Step S107 configures the scaffold code in the decompressing files, generates required scaffold file.
Optionally, when using scaffold, in addition to some basic specifications, content sanctified by usage need not be changed
Except, it is also necessary to carry out a degree of customizable setup.For the demand, different management tools is using different
Logic.It is that formula is interacted to user and is putd question to, allows user's selected section before masterplate starts download such as in yeoman
Content.In the present embodiment, then it is to complete to be handed over again later after scaffold code is downloaded to local, and in decompression
Mutual formula is putd question to, and custom-configures table with get user, table is custom-configured to the scaffold generation in decompressing files according to this
Code is configured, and required scaffold file is generated.
Optionally, referring to Fig. 5, in the present embodiment, the table that custom-configures is obtained by following steps:
Step S301 is arranged specified configuration information and shows, for selection by the user.
Step S303, receives selection result input by user, and generates self-defined match corresponding with the selection result
Set table.
Optionally, the scaffold management method that the present embodiment is provided is developed based on nodeJS, existing in nodeJS
Library, can be used for accurately manipulating file and file content.In the present embodiment, for interacting asking for formula enquirement with user
Topic logic is preset with prescribed form in the decompressing files, specified multiple configuration informations can be arranged simultaneously according to the preset format
Displaying, for selection by the user.For example, the prescribed form can be to set configuration information to whether need format as A, user
When in use, corresponding selection can be made according to the configuration information and in conjunction with self-demand, such as may be selected to need A,
Either A is not needed.Result generation according to the user's choice custom-configures table accordingly, and custom-configures table pair according to this
Scaffold code in decompressing files is configured, and the scaffold file to match with user demand and selection content is generated.Example
Such as, if being selected as user needs A, the content of A will be included in the scaffold file of subsequent production accordingly.
In the present embodiment, it is putd question to by interactive and is interacted with user, can be obtained and user's selection result phase
That matches custom-configures table.The catalogue screening of decompressing files and file can be defined by custom-configuring table according to this, and to solution
Scaffold code in pressure file is accurately controlled, and the scaffold file needed for generating finally is replicated.In the present embodiment, it opens
Originator can follow the preset rules format of the problems in decompressing files logic, easily develop the foot that the user of polymorphic type is applicable in
Hand cradle so that scaffold function is more flexible.
In the present embodiment, by the way that all scaffold templates in project are uniformly stored in the long-range warehouses Git,
Scaffold user when in use, only need to would know that current all available by the inquiry instruction that input is consistent with preset instructions
Scaffold Template Information.And the pending scaffold template name needed for input, you can obtain required scaffold template, and right
It carries out quickly generating required scaffold file after a series of processing.The whole process for scaffold user
It is very convenient and quick, do not need any extra operation.
In addition, for scaffold developer, since Git itself is a Version Control platform, in this implementation
Scaffold code trustship is carried out using Git in example, any burden will not be caused to scaffold developer.Secondly, in development process
In do not need new learning cost, also not extra operation.And after carrying out version iteration, it is no longer necessary to synchronize and be distributed to
Npm platforms.Also, since Git itself is a version control system, so that the scaffold management in the present embodiment
Device 110 has the function of the operation history of tracking scaffold.
Referring to Fig. 6, being a kind of functional block diagram of scaffold managing device 110 provided in an embodiment of the present invention.Institute
It includes the first acquisition module 111, the second acquisition module 112, decompression module 113 and configuration mould to state scaffold managing device 110
Block 114.
First acquisition module 111 is used to obtain multiple scaffold templates from the warehouses Git of the server 200,
And it preserves to local to generate ware-house here.Specifically, which can be used for executing step shown in Fig. 3
S101, specific operating method can refer to the detailed description of step S101.
Second acquisition module 112 from the warehouses Git or the ware-house here for obtaining and pending foot
The corresponding scaffold module of hand cradle template name, as specified scaffold template.Specifically, which can be used for
Step S103 shown in Fig. 3 is executed, specific operating method can refer to the detailed description of step S103.
The decompression module 113 is used to carry out decompression acquisition decompressing files to the specified scaffold template and store to this
Ground file.Specifically, which can be used for executing step S105 shown in Fig. 3, and specific operating method can join
Examine the detailed description of step S105.
The configuration module 114 generates required foot for being configured to the scaffold code in the decompressing files
Hand cradle file.Specifically, which can be used for executing step S107 shown in Fig. 3, and specific operating method can join
Examine the detailed description of step S107.
Referring to Fig. 7, in the present embodiment, the scaffold managing device 110 further includes receiving module 115, judges mould
Block 116 and the first enquiry module 117.
The receiving module 115 is for receiving inquiry instruction.The judgment module 116 is for judging that the inquiry instruction is
It is no consistent with preset instructions.First enquiry module 117 is used for consistent with the preset instructions in the inquiry instruction
When, inquire to obtain all scaffold Template Informations in the warehouses Git according to the inquiry instruction.
Optionally, referring to Fig. 8, in the present embodiment, the scaffold managing device 110 further includes the second enquiry module
118, extraction module 119 and download module 1110.
Second enquiry module 118 whether there is and the pending scaffold for inquiring in the ware-house here
The corresponding scaffold template of template name.Specifically, which can be used for executing step S201 shown in Fig. 4,
Specific operating method can refer to the detailed description of step S201.
The extraction module 119 is used to exist in the ware-house here corresponding with the pending scaffold template name
Scaffold template when, scaffold mould corresponding with the pending scaffold template name is extracted from the ware-house here
Plate, as specified scaffold template.Specifically, which can be used for executing step S203 shown in Fig. 4, specifically
Operating method can refer to the detailed description of step S203.
The download module 1110 is used to be not present and the pending scaffold template name in the ware-house here
When corresponding scaffold template, is downloaded from the warehouses Git and obtain foot corresponding with the pending scaffold template name
Hand cradle template, as specified scaffold template.Specifically, which can be used for executing step shown in Fig. 4
S205, specific operating method can refer to the detailed description of step S205.
Optionally, in the present embodiment, the scaffold code in decompressing files is carried out according to the table that custom-configures of acquisition
Configuration, generates required scaffold file.Optionally, referring to Fig. 9, the scaffold managing device 110 further includes setting mould
Block 1111 and generation module 1112.
1111 user setting specified configuration information of the setup module simultaneously shows, for selection by the user.Specifically, the setting
Module 1111 can be used for executing step S301 shown in Fig. 5, and specific operating method can refer to the detailed description of step S301.
The generation module 1112 generates corresponding with the selection result for receiving selection result input by user
Custom-configure table.Specifically, which can be used for executing step S303 shown in Fig. 5, specific to operate
Method can refer to the detailed description of step S303.
In addition, another preferred embodiment of the present invention also provides a kind of storage medium, it is stored thereon with computer program, it is described
Computer program realizes the step of above-mentioned scaffold management method when being executed by processor 120.
In conclusion scaffold management method, apparatus provided by the invention and electronic equipment, by multiple feet needed for project
In the unified storage to the long-range warehouses Git of hand cradle template, and extract from the warehouses Git multiple scaffold templates preserve to local with
Generate ware-house here.For the specified scaffold template needed for user, ware-house here is inquired first, if existing in ware-house here,
It then directly extracts from ware-house here, if being not present, then is downloaded from the long-range warehouses Git.To the specified scaffold downloaded
Template is decompressed to obtain decompressing files, and custom-configures table by what interactive query acquisition and user demand matched,
Table is custom-configured according to this to configure the scaffold code in decompressing files, ultimately generates required scaffold file.
Scaffold Managed Solution provided by the invention saves the processing time of whole process and reduces system processing load, can be square
Just, quickly generate required scaffold file, extra operation be not necessarily to for user and developer, be it is a kind of just
Prompt management tool.
Further, which is previously provided with operating specification, can to inquiry instruction input by user into
Row verification obtains current all available scaffolds if inquiry instruction is consistent with preset instructions according to inquiry instruction inquiry
Template Information is known for user.
In embodiment provided herein, it should be understood that disclosed device and method, it can also be by other
Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown
Architectural framework in the cards, function and the behaviour of devices in accordance with embodiments of the present invention, method and computer program product
Make.In this regard, each box in flowchart or block diagram can represent a part for a module, section or code, institute
The part for stating module, section or code includes one or more executable instructions for implementing the specified logical function.
It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be to be different from attached drawing
The sequence marked occurs.For example, two continuous boxes can essentially be basically executed in parallel, they sometimes can also be by
Opposite sequence executes, this is depended on the functions involved.It is also noted that each box in block diagram and or flow chart,
And the combination of the box in block diagram and or flow chart, function or the dedicated of action as defined in executing can be used to be based on hardware
System realize, or can realize using a combination of dedicated hardware and computer instructions.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or equipment including a series of elements includes not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or equipment institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including institute
State in the process, method, article or equipment of element that there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and is explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of scaffold management method, the scaffold can provide the basic framework at initial stage for project development, which is characterized in that
Applied to the user terminal being connect with server communication, the server prestores the warehouses Git for including multiple scaffold templates, institute
The method of stating includes:
Multiple scaffold templates are obtained from the warehouses Git of the server, and are preserved to local to generate ware-house here;
Scaffold template corresponding with pending scaffold template name is obtained from the warehouses Git or the ware-house here,
As specified scaffold template;
Decompression acquisition decompressing files is carried out to the specified scaffold template and is stored to local folders;
Scaffold code in the decompressing files is configured, required scaffold file is generated.
2. scaffold management method according to claim 1, which is characterized in that described from the warehouses Git or described
Before the step of obtaining scaffold template corresponding with pending scaffold template name in ground warehouse, the method further includes:
Receive inquiry instruction, judge whether the inquiry instruction consistent with preset instructions, if the inquiry instruction with it is described pre-
If instruction is consistent, then inquire to obtain all scaffold Template Informations in the warehouses Git according to the inquiry instruction.
3. scaffold management method according to claim 1, which is characterized in that the specified scaffold template passes through following
Step obtains:
It inquires and whether there is scaffold template corresponding with the pending scaffold template name in the ware-house here;
If in the presence of scaffold mould corresponding with the pending scaffold template name is extracted from the ware-house here
Plate, if being not present, is downloaded from the warehouses Git and is obtained and the pending scaffold as specified scaffold template
The corresponding scaffold template of template name, as specified scaffold template.
4. scaffold management method according to claim 3, which is characterized in that obtain depositing in the ware-house here in inquiry
After scaffold template corresponding with the pending scaffold template name, the method further includes:
Judge whether current system mode is off-line mode, if off-line mode, then executes and extracted from the ware-house here
The step of scaffold template corresponding with the pending scaffold template name, then executes if not off-line mode from described
The step of obtaining scaffold template corresponding with the pending scaffold template name is downloaded in the warehouses Git.
5. scaffold management method according to claim 1, which is characterized in that the foot hand in the decompressing files
Frame code is configured, the step of generating required scaffold file, including:
The scaffold code in the decompressing files is configured according to the table that custom-configures of acquisition, generates required foot hand
Frame file;
The table that custom-configures is obtained by following steps:
Specified configuration information is arranged simultaneously to show, for selection by the user;
It receives selection result input by user, and generates and corresponding with the selection result custom-configure table.
6. a kind of scaffold managing device, the scaffold can provide the basic framework at initial stage for project development, which is characterized in that
Applied to the user terminal being connect with server communication, the server prestores the warehouses Git for including multiple scaffold templates, institute
Stating scaffold managing device includes:
First acquisition module, for obtaining multiple scaffold templates from the warehouses Git of the server, and preserve to local with
Generate ware-house here;
Second acquisition module, for being obtained from the warehouses Git or the ware-house here and pending scaffold template name
Corresponding scaffold template, as specified scaffold template;
Decompression module, for carrying out decompression acquisition decompressing files to the specified scaffold template and storing to local folders;
Configuration module generates required scaffold file for being configured to the scaffold code in the decompressing files.
7. scaffold managing device according to claim 6, which is characterized in that the scaffold managing device further includes connecing
Receive module, judgment module and the first enquiry module;
The receiving module is for receiving inquiry instruction;
The judgment module is for judging whether the inquiry instruction is consistent with preset instructions;
First enquiry module is used for when the inquiry instruction is consistent with the preset instructions, according to the inquiry instruction
Inquiry obtains all scaffold Template Informations in the warehouses Git.
8. scaffold managing device according to claim 6, which is characterized in that the scaffold managing device further includes
Two enquiry modules, extraction module and download module;
Second enquiry module whether there is and the pending scaffold template name for inquiring in the ware-house here
Corresponding scaffold template;
The extraction module is used to have foot hand corresponding with the pending scaffold template name in the ware-house here
When frame template, scaffold template corresponding with the pending scaffold template name is extracted from the ware-house here, is made
To specify scaffold template;
The download module is used to that foot corresponding with the pending scaffold template name to be not present in the ware-house here
When hand cradle template, is downloaded from the warehouses Git and obtains scaffold template corresponding with the pending scaffold template name,
As specified scaffold template.
9. a kind of electronic equipment, which is characterized in that the electronic equipment is connect with server communication, and the server prestores packet
The warehouses Git of multiple scaffold templates are included, the electronic equipment includes:
Memory;
Processor;And
Scaffold managing device, the scaffold can provide the basic framework at initial stage, the scaffold management dress for project development
It sets and is installed in the memory and includes one or more software function modules executed by the processor, the scaffold
Managing device includes:
First acquisition module, for obtaining multiple scaffold templates from the warehouses Git of the server, and preserve to local with
Generate ware-house here;
Second acquisition module, for being obtained from the warehouses Git or the ware-house here and pending scaffold template name
Corresponding scaffold template, as specified scaffold template;
Decompression module, for carrying out decompression acquisition decompressing files to the specified scaffold template and storing to local folders;
Configuration module generates required scaffold file for being configured to the scaffold code in the decompressing files.
10. a kind of storage medium, which is characterized in that be stored thereon with computer program, the computer program is held by processor
The step of scaffold management method described in claim 1-5 any one is realized when row.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710547621.5A CN107273140B (en) | 2017-07-06 | 2017-07-06 | Scaffold manages method, apparatus and electronic equipment |
PCT/CN2018/071608 WO2019007016A1 (en) | 2017-07-06 | 2018-01-05 | Scaffolding management method and apparatus, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710547621.5A CN107273140B (en) | 2017-07-06 | 2017-07-06 | Scaffold manages method, apparatus and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107273140A CN107273140A (en) | 2017-10-20 |
CN107273140B true CN107273140B (en) | 2018-09-21 |
Family
ID=60071826
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710547621.5A Active CN107273140B (en) | 2017-07-06 | 2017-07-06 | Scaffold manages method, apparatus and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107273140B (en) |
WO (1) | WO2019007016A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273140B (en) * | 2017-07-06 | 2018-09-21 | 武汉斗鱼网络科技有限公司 | Scaffold manages method, apparatus and electronic equipment |
CN108182056A (en) * | 2017-12-28 | 2018-06-19 | 天脉聚源(北京)科技有限公司 | The method and device of the frame of multiple Webpages is configured in a kind of intelligence |
CN110580152B (en) * | 2018-06-07 | 2023-05-12 | 北京怡合春天科技有限公司 | Front-end automatic scaffold |
CN109343835A (en) * | 2018-08-28 | 2019-02-15 | 苏州浪潮智能软件有限公司 | A kind of rapid build business scaffold code instrumentation based on template |
CN109683887B (en) * | 2018-12-17 | 2022-04-26 | 杭州玳数科技有限公司 | Construction method and device supporting multi-scheme user-defined web project |
CN112015375A (en) * | 2020-08-21 | 2020-12-01 | 广州欢网科技有限责任公司 | Background management system creating method and device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461743A (en) * | 2014-12-17 | 2015-03-25 | 用友软件股份有限公司 | Device and method for automatically generating resources and configuration |
CN105989098A (en) * | 2015-02-12 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Method for generating icon pack, server, method and system for processing icon |
CN106095408A (en) * | 2016-05-31 | 2016-11-09 | 浙江网新恒天软件有限公司 | A kind of system and method for data monitoring and Code automatic build and deployment |
CN106095442A (en) * | 2016-06-13 | 2016-11-09 | 福州智永信息科技有限公司 | Automatic high speed contract-out party's method based on web |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120072138A (en) * | 2010-12-23 | 2012-07-03 | 한국전자통신연구원 | Apparatus and method for providing custom software, and method for software customization |
CA2919533A1 (en) * | 2012-08-01 | 2014-02-06 | Sherpa Technologies Inc. | System and method for managing versions of program assets |
CN106843869B (en) * | 2017-01-16 | 2020-04-14 | 百融云创科技股份有限公司 | Front-end development engineering system and method |
CN107273140B (en) * | 2017-07-06 | 2018-09-21 | 武汉斗鱼网络科技有限公司 | Scaffold manages method, apparatus and electronic equipment |
-
2017
- 2017-07-06 CN CN201710547621.5A patent/CN107273140B/en active Active
-
2018
- 2018-01-05 WO PCT/CN2018/071608 patent/WO2019007016A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461743A (en) * | 2014-12-17 | 2015-03-25 | 用友软件股份有限公司 | Device and method for automatically generating resources and configuration |
CN105989098A (en) * | 2015-02-12 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Method for generating icon pack, server, method and system for processing icon |
CN106095408A (en) * | 2016-05-31 | 2016-11-09 | 浙江网新恒天软件有限公司 | A kind of system and method for data monitoring and Code automatic build and deployment |
CN106095442A (en) * | 2016-06-13 | 2016-11-09 | 福州智永信息科技有限公司 | Automatic high speed contract-out party's method based on web |
Also Published As
Publication number | Publication date |
---|---|
WO2019007016A1 (en) | 2019-01-10 |
CN107273140A (en) | 2017-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107273140B (en) | Scaffold manages method, apparatus and electronic equipment | |
CN106406844B (en) | Method and device for realizing public number menu of communication interaction platform | |
CN110119294A (en) | The generation method of menu page, apparatus and system | |
CN108762767B (en) | Application publishing method, device and computer readable storage medium | |
CN110321544B (en) | Method and device for generating information | |
CN106843976A (en) | Method and apparatus for generating image file | |
CN105022832A (en) | Method for safely downloading APP (application), mobile terminal and download server | |
CN105302925A (en) | Method and device for pushing voice search data | |
CN114785685A (en) | Software differential upgrading method and device, electronic equipment and readable storage medium | |
CN112685055A (en) | Cluster construction method and device | |
CN110083366B (en) | Application running environment generation method and device, computing equipment and storage medium | |
CN109391658B (en) | Account data synchronization method and equipment, storage medium and terminal thereof | |
CN112990455A (en) | Network model issuing method and device, storage medium and electronic equipment | |
CN108334547A (en) | Data share exchange System and method for based on big data | |
CN111045928A (en) | Interface data testing method, device, terminal and storage medium | |
CN116089739A (en) | Message pushing method, device, electronic equipment and storage medium | |
CN111488286B (en) | Method and device for independently developing Android modules | |
US10289788B1 (en) | System and method for suggesting components associated with an electronic design | |
CN114328686A (en) | Data docking method and related equipment | |
CN109359384B (en) | Method and device for calling silk-screen mark into printed circuit board | |
CN112380031A (en) | Method and device for pushing messages in real time in cross-application mode and computing equipment | |
Michahelles et al. | Toward a web of systems | |
CN107273398A (en) | Man-machine interface system and the method for operating it | |
CN109189370B (en) | Software component generation method, device, equipment and computer readable storage medium | |
CN111913721A (en) | Automatic deployment method, device, equipment 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |