CN109739478A - Front end project automated construction method, device, storage medium and electronic equipment - Google Patents

Front end project automated construction method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN109739478A
CN109739478A CN201811582913.3A CN201811582913A CN109739478A CN 109739478 A CN109739478 A CN 109739478A CN 201811582913 A CN201811582913 A CN 201811582913A CN 109739478 A CN109739478 A CN 109739478A
Authority
CN
China
Prior art keywords
code
building
answer
file
end project
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811582913.3A
Other languages
Chinese (zh)
Other versions
CN109739478B (en
Inventor
杨泽伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201811582913.3A priority Critical patent/CN109739478B/en
Publication of CN109739478A publication Critical patent/CN109739478A/en
Application granted granted Critical
Publication of CN109739478B publication Critical patent/CN109739478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of front end project automated construction method, front end project automation construction device, computer readable storage medium and electronic equipments, this method comprises: according to interactive question and answer as a result, generating configuration file;Code is generated according to the configuration file to rely on;Service code is obtained, the service code is handled according to code dependence, to complete the automation building to the front end project.Technical solution of the present invention can not only realize the automated execution of front end project build process, and can be improved the building speed of front end project and the development efficiency of developer.

Description

Front end project automated construction method, device, storage medium and electronic equipment
Technical field
The present invention relates to front end development technique field, in particular to a kind of front end project automated construction method, preceding End project automates construction device, computer readable storage medium and electronic equipment.
Background technique
With the fast development of front-end technology, the service logic and interaction effect of front end project become increasingly complex, meanwhile, it is preceding End project form and module become diversification, and front end project needs constantly to carry out maintenance and iteration, so that the management difficulty of project Increase with development difficulty.Thus, how to simplify front end development procedure, realize the automation building of front end project, becomes relevant people Member's focus of attention problem.
In the prior art, the developer of front end project will not only be absorbed in the volume of exploitation service code in the process of development Write, meanwhile, will also by writing building code to guarantee the normal operation of building process, thus, development procedure is cumbersome, efficiency compared with It is low.
Therefore, the efficiency of project automated construction method in front end in the prior art is to be improved.
It should be noted that information is only used for reinforcing the reason to background of the invention disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of front end project automated construction method, front end project automation structure Device, storage medium and electronic equipment are built, and then front end project in the prior art is overcome to automate at least to a certain extent Construction method building process very complicated, the lower defect of efficiency.
Other characteristics and advantages of the invention will be apparent from by the following detailed description, or partially by the present invention Practice and acquistion.
According to a first aspect of the embodiments of the present invention, a kind of front end project automated construction method is provided, comprising: according to Interactive question and answer are as a result, generate configuration file;It is constructed according to the configuration file and generates code dependence;Obtain service code, root The service code is handled according to code dependence, to complete the automation building to the front end project.
In some embodiments of the invention, aforementioned schemes are based on, it is described to configure text as a result, generating according to interactive question and answer Part, comprising: according to the first interactive question and answer as a result, determining building frame;Based on the building frame, asked according to the second interactive mode It answers as a result, determining building template;Based on the building template, configuration file is generated.
In some embodiments of the invention, aforementioned schemes are based on, the building frame is based on, is asked according to the second interactive mode It answers as a result, determining building template, comprising: according to the building frame, determine the framing dependence of the building frame;In the frame Under frame relies on, according to the described second interactive question and answer as a result, determining the building template.
In some embodiments of the invention, aforementioned schemes are based on, it is described that code dependence is generated according to the configuration file, Include: that dependence separation is carried out to the configuration file based on package manager, obtains building code and rely on.
In some embodiments of the invention, aforementioned schemes are based on, it is described to be relied on according to the code to the business generation Code is handled, comprising: is relied on according to the code, is split to the service code, generates divided code;To described point It cuts the corresponding module file of code to merge, generates and merge code file;The merging code file is compressed, is generated Output code file.
In some embodiments of the invention, aforementioned schemes are based on, the method also includes: according to third interactive mode question and answer As a result, determining configuration surroundings.
In some embodiments of the invention, aforementioned schemes are based on, determine the configuration surroundings for exploitation environment, the side Method further include: when getting new service code, detect whether the code dependence constructs completion;When the code relies on structure Completion is built, then automation building, output building result are carried out again to the new service code.
In some embodiments of the invention, aforementioned schemes are based on, determine the configuration surroundings for test environment or production Environment, the method also includes: according to the 4th interactive question and answer result, it is determined whether be packaged the output code file defeated Out.
According to a second aspect of the embodiments of the present invention, a kind of front end project automation construction device is provided, comprising: configuration Module is used for according to interactive question and answer as a result, generating configuration file;Module is constructed, for generating generation according to the configuration file Code relies on;Processing module is handled the service code according to code dependence, for obtaining service code with complete The automation building in pairs.
According to a third aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, meter is stored thereon with Calculation machine program realizes the front end project automation as described in first aspect in above-described embodiment when described program is executed by processor Construction method.
According to a fourth aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising: one or more processors; Storage device, for storing one or more programs, when one or more of programs are held by one or more of processors When row, so that one or more of processors realize that the front end project as described in first aspect in above-described embodiment automates structure Construction method.
Technical solution provided in an embodiment of the present invention can include the following benefits:
In the technical solution provided by some embodiments of the present invention, on the one hand, by according to interactive question and answer as a result, Configuration file is generated, can be improved the formation speed of configuration file;Further, according to the configuration file generate code according to Rely, so that developer need to only be absorbed in the writing of service code, without expending energy in project build process, simplifies Development procedure alleviates project development difficulty;On the other hand, service code is obtained, is relied on according to the code to the business Code is handled, and to complete the automation building to the front end project, the error rate of code execution can be reduced, to have Effect promotes the development efficiency of developer.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 diagrammatically illustrates the front end project automated construction method flow chart of embodiment according to the present invention;
Fig. 2 diagrammatically illustrates front end project automated construction method flow chart according to another embodiment of the present invention;
Fig. 3 diagrammatically illustrates the front end project automated construction method flow chart of another embodiment according to the present invention;
Fig. 4 diagrammatically illustrates front end project automated construction method flow chart according to still another embodiment of the invention;
Fig. 5 diagrammatically illustrates the front end project automation construction device block diagram of embodiment according to the present invention;
Fig. 6 shows the structural schematic diagram for being suitable for the computer system for the electronic equipment for being used to realize the embodiment of the present invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However, It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step, It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
In the prior art, the developer of front end project will not only be absorbed in the volume of exploitation service code in the process of development It writes, meanwhile, also to guarantee the normal operation of construction step by writing building code, thus, complex steps, developer's Error rate is higher, efficiency is lower, and project overall operation performance is poor.Therefore, it is automated using front end project in the prior art Construction method can not effectively construct front end project, and efficiency is to be improved.
In the present embodiment, a kind of front end project automated construction method is provided firstly, at least to a certain extent gram The front end project automated construction method building process very complicated provided in the prior art, the lower defect of efficiency are provided.
Fig. 1 diagrammatically illustrates project automated construction method flow chart in front end according to an embodiment of the invention, The executing subject of the front end project automated construction method can be the server that automation building is carried out to front end project.
With reference to Fig. 1, project automated construction method in front end according to an embodiment of the invention the following steps are included:
Step S110, according to interactive question and answer as a result, generating configuration file;
Step S120 generates code according to the configuration file and relies on;
Step S130 obtains service code, is handled according to code dependence the service code, with completion pair The automation of the front end project constructs.
In technical solution provided by embodiment shown in Fig. 1, on the one hand, by according to interactive question and answer as a result, generate Configuration file can be improved the formation speed of configuration file;Further, code is generated according to the configuration file to rely on, make The writing that developer need to only be absorbed in service code is obtained, without expending energy in project build process, simplifies exploitation Step alleviates project development difficulty;On the other hand, service code is obtained, is relied on according to the code to the service code It is handled, to complete the automation building to the front end project, the error rate of code execution can be reduced, to effectively mention Rise the development efficiency of developer.
The specific implementation process of each step in Fig. 1 is described in detail below:
In step s 110, according to interactive question and answer as a result, generating configuration file.
In the exemplary embodiment, interactive question and answer are that there are interactive between a kind of developer and server Information processing manner, treatment process can be developer and be connected to by server input information and operational order, server After immediately treat, and pass through terminal device and show interactive question and answer result;It can also be that server is shown by terminal device to work as Preceding selectable interactive question and answer, developer are clicked or are touched to determine interactive question and answer result.The tool of interactive question and answer Body embodiment can sets itself according to the actual situation, belong to the scope of protection of the present invention.The processing mode of interactive question and answer, Have the advantages that it is flexible, intuitive, convenient for control, the development time can be saved, improve the development efficiency of developer.
It in the exemplary embodiment, can be according to the interactive question and answer with developer as a result, generating configuration file.
In the exemplary embodiment, it is automatic to diagrammatically illustrate front end project according to another embodiment of the present invention by Fig. 2 Change construction method flow chart, specifically illustrates according to interactive question and answer as a result, the flow chart of configuration file is generated, below in conjunction with Fig. 2 Step S110 is explained.
In step s 201, according to the first interactive question and answer as a result, determining building frame.
In the exemplary embodiment, building frame refers to the frame for simplifying webpage design, for example, jquery, Extjs, bootstrap etc. encapsulate some specific functions, such as html (HyperText Markup in these frames Language, referred to as: html, hypertext markup language) document function, beautiful various controls (button, list etc.), use The aesthetics that building frame can reduce the interface development period, improve interface.
In the exemplary embodiment, at least integrated Angular frame of the present invention, React frame and Vue frame, exploitation Person can be carried out the dependence of selection corresponding frame by the order of the first interactive question and answer and be installed automatically, and installing can after relying on Directly to use, is relied on if you need to which other third parties are added, can voluntarily install, pass through ESM (ECMA Script Module, ES Standard module has versatility and facilitates third party's module compatible and be packaged) import use.Angular frame is to be based on The Javascript frame of TypeScript (Javascript superset), React frame are for for constructing user interface The library JavaScript, Vue are a intuitive for constructing, quick and modularization interactive interface MVVM (Model-View- ViewModel, referred to as: MVVM) frame.
In step S202, it is based on the building frame, according to the second interactive question and answer as a result, determining building template.
In the exemplary embodiment, it after determining building frame, needs according to the second interactive question and answer as a result, determining Construct template.
In the exemplary embodiment, it is automatic to diagrammatically illustrate front end project according to yet another embodiment of the invention by Fig. 3 Change construction method flow chart, specifically illustrates based on the building frame, according to the second interactive question and answer as a result, determining building template Flow chart, step S202 is explained below in conjunction with Fig. 3.
In step S301, according to the building frame, framing dependence is determined.
In the exemplary embodiment, after determining building frame, need to further determine that above-mentioned building frame is corresponding Framing dependence, that is, determine the relevant building code of building frame.
In step s 302, under the framing dependence, according to the described second interactive question and answer as a result, determining the building Template.
In the exemplary embodiment, it after determining framing dependence according to building frame, needs to rely in said frame Under, according to the second interactive question and answer as a result, determining building template.
In the exemplary embodiment, the essence for constructing template is can to use building template with the character string of transfer function After function can be put into the object full of data, it is reduced to a completely new character string.At least integrated SPA of the present invention (Single Page Application, single-page application, abbreviation: SPA), MPA (Multi-page Application, multipage Face application, referred to as: MPA) and PWA (Progressive Web Application, gradual website application, referred to as: PWA) three Kind template.
In the exemplary embodiment, after determining building template, it is also necessary to according to third interactive mode question and answer as a result, really Determine configuration surroundings, configuration surroundings can be exploitation environment, test environment or production environment;It develops environment and is used for building process, i.e., Obtain the process before output code file.Test environment or production environment when front end project build is completed for arriving After output code file, output code file can be tested or be issued in test environment or production environment and be answered With.
In step S203, it is based on the building template, generates configuration file.
In the exemplary embodiment, configuration file selects building frame, building mould during corresponding to front end project build The composition file of corresponding building code when plate, also comprising building code relies on, service code relies on and it in configuration file The third party that its developer voluntarily imports as needed relies on.After above-mentioned determining building frame and building template, open Hair personnel can to other templates in project, such as: project directory template, page routing template, condition managing template and frame Frame component template makes appropriate choice collocation, to generate the configuration file that developer wants.
In the step s 120, code is generated according to the configuration file to rely on.
In the exemplary embodiment, after obtaining configuration file, need that (npm packet is based on npm package manager The module management of NodeJS) dependence for including in configuration file is separated, it is relied on generating building code, service code Rely on and other third parties rely on, building code rely on can be used for building code treatment process in, service code according to Relying can be used in the treatment process to service code, and other exploitations that third party's dependence can be used for developer need process In.
In step s 130, service code is obtained, the service code is handled according to code dependence, with complete The automation building of the pairs of front end project.
In the exemplary embodiment, after generating code and relying on, available service code, in turn, according to above-mentioned Service code dependence in code dependence handles service code.
In the exemplary embodiment, Fig. 4 diagrammatically illustrate another embodiment according to the present invention front end project it is automatic Change construction method flow chart, specifically illustrates and the flow chart handled the service code is relied on according to the code, below Step S130 is explained in conjunction with Fig. 4.
It in step S401, is relied on according to the code, the service code is split, generate divided code.
In the exemplary embodiment, it needs that first service code is verified and converted.Carry out code check be in order to While Validation Code inputs correctness, the code writing style and logic for solving developer write that style is inconsistent to be showed As.At least integrated Stylelint (CSS verification) and Eslint (JS verification) calibration tool of the present invention can by code check While checking code correctness, achieve the effect that Unicode style and guarantee code uniformity, convenient for developer and The some code errors of Shi Gaizheng, and quickly start with and understand code.
In the exemplary embodiment, after verifying to service code, in view of the exploitation of nowadays front end, there are many generations Code standard of compiling and grammer standard, and most standard can not directly be run under most of browser, therefore, the present invention At least integrated Sass (CSS pretreatment), Babel (JS compiling) and TypeScript (JS extension), can be the industry after verification Business code is converted into the service code that current browser can be parsed, be identified.By code conversion, so that the structure one of service code Mesh is clear, and the maintainability of service code is enhanced.
In the exemplary embodiment, corresponding to the service code after verification, conversion, based on different type of codes pair It answers different codes to rely on, can be relied on according to service code and it is split, generate divided code.The purpose of code division Be that the multiple business code that will include in service code separates, such as: may include inside service code HTML code, CSS code and JS code;Illustratively, segmentation or asynchronous segmentation can be synchronized to service code, service code point It is segmented into corresponding HTML module file, CSS module file and JS module file.
In step S402, the corresponding module file of the divided code is merged, generates and merges code file.
In the exemplary embodiment, the corresponding module file of divided code is merged, generates and merges code file, Corresponding HTML module file, CSS module file and JS module file are merged, generates and merges code file.It is logical It crosses and module file is merged, facilitate the request for allowing HTML entry file to reduce dependent file in subsequent code process Number, is allowed to load less file, to improve loading velocity and rendering speed, to improve runnability.
In step S403, the merging code file is compressed, generates output code file.
In the exemplary embodiment, after obtaining merging code file, the volume of this document is larger, if directly right It carries out packing output, then, the debugging code that developer writes in the process of development and other generations write unintentionally Code can be all packaged into, excessive so as to cause output code document memory occupancy volume, and system performance reduces.Thus, this Invention at least integrated Purifycss (CSS compression), Uglifyjs (JS compression), Imagemin (compression of images), Fontspider (font data compression) and Gzip (abbreviation of GNUzip, the compressing file for unix system) compression, can adjust according to actual needs With one or more of compression methods, compression merges image and font, removes useless and duplicate code, is reduced with reaching The volume and resources occupation amount of output code file, the file for maximizing output minimum volume improve front end project operation performance Technical effect.
In the exemplary embodiment, it in exploitation environment, when getting new service code again, needs to detect generation Code relies on whether construct completion;It completes, then the new service code got is automated again when code relies on building Building, output building is as a result, obtain output code file.
It in the exemplary embodiment, can be according to third interactive mode question and answer result after obtaining output code file Determine whether to switch to configuration surroundings to test environment or production environment, after entering test environment or production environment, Ke Yiyu Developer carries out the 4th interactive question and answer, obtains the 4th interactive question and answer as a result, to determine whether the output code that will be obtained File, which is packaged, to be exported and issues.Thus, it is possible to the release quickly of output code file be realized, to simplify publication process.
The device of the invention embodiment introduced below can be used for executing the above-mentioned front end project automation building of the present invention Method.
Fig. 5 diagrammatically illustrates front end project automation construction device block diagram according to an embodiment of the invention, should Project automation construction device in front end can be set in the server for carrying out automation building to front end project.
Referring to Figure 5, front end project according to an embodiment of the invention automates construction device block diagram 500, packet Include following module: configuration module 501, building module 502 and processing module 503 are illustrated in detailed below:
Configuration module 501 is used for according to interactive question and answer as a result, generating configuration file.
In the exemplary embodiment, configuration module is used for according to the first interactive question and answer as a result, determining building frame;Base In the building frame, according to the second interactive question and answer as a result, determining building template;Based on the building template, configuration is generated File.
Module 502 is constructed, is relied on for generating code according to the configuration file.
In the exemplary embodiment, building module is used to rely on to the configuration file based on package manager and divide From acquisition code relies on.
Processing module 503 is handled the service code according to code dependence for obtaining service code, To complete the automation building to the front end project.
In the exemplary embodiment, processing module is used to be relied on according to the code, divides the service code It cuts, generates divided code;The corresponding module file of the divided code is merged, generates and merges code file;To described Merge code file to be compressed, generates output code file.To complete the automation building to the front end project.
Due to example embodiments of the present invention front end project automation construction device each functional module and it is above-mentioned before The step of example embodiment of end project automated construction method, is corresponding, therefore for undisclosed in apparatus of the present invention embodiment Details please refers to the embodiment of the above-mentioned front end project automated construction method of the present invention.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the electronic equipment for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.The computer system 600 of electronic equipment shown in Fig. 6 is only an example, should not be to the embodiment of the present invention Function and use scope bring any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, it is also stored with various programs and data needed for system operatio.CPU 601, ROM 602 and RAM 603 is connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to bus 604。
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, according to an embodiment of the invention, may be implemented as computer above with reference to the process of flow chart description Software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 are mounted.When the computer program is executed by central processing unit (CPU) 601, executes and limited in the system of the application Above-mentioned function.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium can be for example but not limited to Electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.It is computer-readable The more specific example of storage medium can include but is not limited to: have electrical connection, the portable computing of one or more conducting wires Machine disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM Or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned Any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage program it is tangible Medium, the program can be commanded execution system, device or device use or in connection.And in the present invention, Computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying Computer-readable program code.The data-signal of this propagation can take various forms, and including but not limited to electromagnetism is believed Number, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable storage medium Any computer-readable medium other than matter, the computer-readable medium can be sent, propagated or transmitted for being held by instruction Row system, device or device use or program in connection.The program code for including on computer-readable medium It can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. or above-mentioned any conjunction Suitable combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part realizes that described unit also can be set in the processor.Wherein, the title of these units is in certain situation Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer readable storage medium, the computer-readable storage mediums Matter can be included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without the supplying electricity In sub- equipment.Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by one When a electronic equipment executes, so that the electronic equipment realizes that above-mentioned front end project as described in the examples such as automates building side Method.
For example, the electronic equipment may be implemented as shown in Figure 1: step S110, according to interactive question and answer as a result, Generate configuration file;Step S120 generates code according to the configuration file and relies on;Step S130 obtains service code, according to The code dependence handles the service code, to complete the automation building to the front end project.
For another example, each step as shown in any figure of Fig. 2-4 may be implemented in the electronic equipment.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, embodiment according to the present invention, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, touch control terminal or network equipment etc.) executes embodiment according to the present invention Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (11)

1. a kind of front end project automated construction method characterized by comprising
According to interactive question and answer as a result, generating configuration file;
Code is generated according to the configuration file to rely on;
Service code is obtained, the service code is handled according to code dependence, to complete to the front end project Automation building.
2. the method according to claim 1, wherein it is described according to interactive question and answer as a result, generate configuration file, Include:
According to the first interactive question and answer as a result, determining building frame;
Based on the building frame, according to the second interactive question and answer as a result, determining building template;
Based on the building template, configuration file is generated.
3. according to the method described in claim 2, it is characterized in that, the building frame is based on, according to the second interactive question and answer As a result, determining building template, comprising:
According to the building frame, framing dependence is determined;
Under the framing dependence, according to the described second interactive question and answer as a result, determining the building template.
4. method according to claim 1 or 2, which is characterized in that it is described that code dependence is generated according to the configuration file, Include:
Dependence separation is carried out to the configuration file based on package manager, code is obtained and relies on.
5. method according to claim 1 or 2, which is characterized in that described to be relied on according to the code to the business generation Code is handled, comprising:
It is relied on according to the code, the service code is split, generate divided code;
The corresponding module file of the divided code is merged, generates and merges code file;
The merging code file is compressed, output code file is generated.
6. the method according to claim 1, wherein the method also includes:
According to third interactive mode question and answer as a result, determining configuration surroundings.
7. according to the method described in claim 6, it is characterized in that, determining that the configuration surroundings are exploitation environment, the method Further include:
When getting new service code, detect whether the code dependence constructs completion;
It is completed when the code relies on building, then automation building, output building knot is carried out again to the new service code Fruit.
8. according to the method described in claim 6, it is characterized in that, determining that the configuration surroundings are test environment or production ring Border, the method also includes:
According to the 4th interactive question and answer result, it is determined whether be packaged the output code file and export.
9. a kind of front end project automates construction device characterized by comprising
Configuration module is used for according to interactive question and answer as a result, generating configuration file;
Module is constructed, is relied on for generating code according to the configuration file;
Processing module is handled the service code according to code dependence, for obtaining service code with completion pair The automation building.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed The method such as front end project described in any item of the claim 1 to 8 automation building is realized when device executes.
11. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs, when one or more of programs are by one or more of processing When device executes, so that one or more of processors are realized as front end project described in any item of the claim 1 to 8 is automatic Change the method for building.
CN201811582913.3A 2018-12-24 2018-12-24 Front-end project automatic construction method and device, storage medium and electronic equipment Active CN109739478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811582913.3A CN109739478B (en) 2018-12-24 2018-12-24 Front-end project automatic construction method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811582913.3A CN109739478B (en) 2018-12-24 2018-12-24 Front-end project automatic construction method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109739478A true CN109739478A (en) 2019-05-10
CN109739478B CN109739478B (en) 2022-12-06

Family

ID=66361032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811582913.3A Active CN109739478B (en) 2018-12-24 2018-12-24 Front-end project automatic construction method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN109739478B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647320A (en) * 2019-08-14 2020-01-03 平安普惠企业管理有限公司 Project framework construction method and device, computer equipment and storage medium
CN110659062A (en) * 2019-09-20 2020-01-07 贝壳技术有限公司 Front-end scaffold configuration method and device, readable storage medium and electronic equipment
CN110704101A (en) * 2019-09-06 2020-01-17 平安普惠企业管理有限公司 Code file construction method, device, equipment and computer readable storage medium
CN110879702A (en) * 2019-11-21 2020-03-13 大唐网络有限公司 Method for realizing visual speech configuration in intelligent voice outbound system
CN111273898A (en) * 2020-02-25 2020-06-12 安徽以萨数据技术有限公司 Web front-end code automatic construction method, system and storage medium
CN111562940A (en) * 2020-04-26 2020-08-21 北京金堤科技有限公司 Project data construction method and device
CN112099794A (en) * 2020-09-28 2020-12-18 中国银行股份有限公司 Front-end project construction method and device
CN112162742A (en) * 2020-08-21 2021-01-01 长沙市到家悠享网络科技有限公司 Code deployment method, device and equipment
CN112199080A (en) * 2020-09-28 2021-01-08 上海上讯信息技术股份有限公司 Webpack construction method and equipment for vuejs project
CN112346888A (en) * 2020-11-04 2021-02-09 网易(杭州)网络有限公司 Data communication method and device based on software application and server equipment
CN113254019A (en) * 2020-02-10 2021-08-13 北京沃东天骏信息技术有限公司 Method and device for registering front-end data stream state file
CN113312056A (en) * 2021-06-16 2021-08-27 浪潮云信息技术股份公司 Internationalization implementation method of angular large-scale integration project, electronic device and storage medium
CN113608746A (en) * 2021-08-16 2021-11-05 北京字节跳动网络技术有限公司 Code conversion processing method and device, computer equipment and storage medium
CN114995801A (en) * 2022-05-18 2022-09-02 北京寄云鼎城科技有限公司 Visual application development method and system based on Internet of things platform
US11681772B2 (en) 2021-08-13 2023-06-20 Capital One Services, Llc Systems, methods, and media enabling streamlined user experiences across progressive web applications

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050027871A1 (en) * 2003-06-05 2005-02-03 William Bradley Interoperable systems and methods for peer-to-peer service orchestration
US20060068791A1 (en) * 2004-09-27 2006-03-30 Bengt Lindoff Derivation of optimal antenna weights during soft handover
CN102637157A (en) * 2011-02-15 2012-08-15 郑磊 DTSOC (digital template system on chip)
CN103391213A (en) * 2012-05-11 2013-11-13 中兴通讯股份有限公司 Application deployment method, CPE (Customer Premises Equipment) and application deployment system
CN104536744A (en) * 2014-12-19 2015-04-22 微梦创科网络科技(中国)有限公司 Method and server for automatically building and deploying codes
CN105956830A (en) * 2016-05-11 2016-09-21 中煤电气有限公司 J2EE framework based enterprise-level visualization application development platform
CN106502663A (en) * 2016-10-17 2017-03-15 成都知道创宇信息技术有限公司 A kind of front end project skeleton generating method
CN106843869A (en) * 2017-01-16 2017-06-13 百融(北京)金融信息服务股份有限公司 A kind of front end Development Engineering system and method
CN107423053A (en) * 2017-06-15 2017-12-01 东莞理工学院 The webization model encapsulation and distributed approach of a kind of remote sensing image processing
CN108038241A (en) * 2018-03-01 2018-05-15 上海品顺信息科技有限公司 Integrated WEB visual workflows method, apparatus, readable storage medium storing program for executing and system
CN108268283A (en) * 2016-12-31 2018-07-10 英特尔公司 For operating the computing engines framework data parallel to be supported to recycle using yojan

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050027871A1 (en) * 2003-06-05 2005-02-03 William Bradley Interoperable systems and methods for peer-to-peer service orchestration
US20060068791A1 (en) * 2004-09-27 2006-03-30 Bengt Lindoff Derivation of optimal antenna weights during soft handover
CN102637157A (en) * 2011-02-15 2012-08-15 郑磊 DTSOC (digital template system on chip)
CN103391213A (en) * 2012-05-11 2013-11-13 中兴通讯股份有限公司 Application deployment method, CPE (Customer Premises Equipment) and application deployment system
CN104536744A (en) * 2014-12-19 2015-04-22 微梦创科网络科技(中国)有限公司 Method and server for automatically building and deploying codes
CN105956830A (en) * 2016-05-11 2016-09-21 中煤电气有限公司 J2EE framework based enterprise-level visualization application development platform
CN106502663A (en) * 2016-10-17 2017-03-15 成都知道创宇信息技术有限公司 A kind of front end project skeleton generating method
CN108268283A (en) * 2016-12-31 2018-07-10 英特尔公司 For operating the computing engines framework data parallel to be supported to recycle using yojan
CN106843869A (en) * 2017-01-16 2017-06-13 百融(北京)金融信息服务股份有限公司 A kind of front end Development Engineering system and method
CN107423053A (en) * 2017-06-15 2017-12-01 东莞理工学院 The webization model encapsulation and distributed approach of a kind of remote sensing image processing
CN108038241A (en) * 2018-03-01 2018-05-15 上海品顺信息科技有限公司 Integrated WEB visual workflows method, apparatus, readable storage medium storing program for executing and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
N. ZHANG 等: "Research of web front-end engineering solution in public cultural service project", 《2017 IEEE/ACIS 16TH INTERNATIONAL CONFERENCE ON COMPUTER AND INFORMATION SCIENCE (ICIS)》 *
葛美红 等: "编译前端分析自动构件化代码可靠性加强方法", 《计算机科学与探索》 *

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647320A (en) * 2019-08-14 2020-01-03 平安普惠企业管理有限公司 Project framework construction method and device, computer equipment and storage medium
CN110704101A (en) * 2019-09-06 2020-01-17 平安普惠企业管理有限公司 Code file construction method, device, equipment and computer readable storage medium
CN110659062A (en) * 2019-09-20 2020-01-07 贝壳技术有限公司 Front-end scaffold configuration method and device, readable storage medium and electronic equipment
CN110659062B (en) * 2019-09-20 2023-09-29 贝壳技术有限公司 Front-end scaffold configuration method and device, readable storage medium and electronic equipment
CN110879702A (en) * 2019-11-21 2020-03-13 大唐网络有限公司 Method for realizing visual speech configuration in intelligent voice outbound system
CN113254019A (en) * 2020-02-10 2021-08-13 北京沃东天骏信息技术有限公司 Method and device for registering front-end data stream state file
CN111273898A (en) * 2020-02-25 2020-06-12 安徽以萨数据技术有限公司 Web front-end code automatic construction method, system and storage medium
CN111273898B (en) * 2020-02-25 2024-03-19 安徽以萨数据技术有限公司 Automatic construction method, system and storage medium for web front-end code
CN111562940A (en) * 2020-04-26 2020-08-21 北京金堤科技有限公司 Project data construction method and device
CN111562940B (en) * 2020-04-26 2024-02-27 北京金堤科技有限公司 Project data construction method and device
CN112162742A (en) * 2020-08-21 2021-01-01 长沙市到家悠享网络科技有限公司 Code deployment method, device and equipment
CN112199080A (en) * 2020-09-28 2021-01-08 上海上讯信息技术股份有限公司 Webpack construction method and equipment for vuejs project
CN112199080B (en) * 2020-09-28 2023-02-17 上海上讯信息技术股份有限公司 Webpack construction method and equipment for vuejs project
CN112099794A (en) * 2020-09-28 2020-12-18 中国银行股份有限公司 Front-end project construction method and device
CN112346888A (en) * 2020-11-04 2021-02-09 网易(杭州)网络有限公司 Data communication method and device based on software application and server equipment
CN113312056A (en) * 2021-06-16 2021-08-27 浪潮云信息技术股份公司 Internationalization implementation method of angular large-scale integration project, electronic device and storage medium
CN113312056B (en) * 2021-06-16 2022-04-19 浪潮云信息技术股份公司 Internationalization implementation method of angular large-scale integration project, electronic device and storage medium
US11681772B2 (en) 2021-08-13 2023-06-20 Capital One Services, Llc Systems, methods, and media enabling streamlined user experiences across progressive web applications
CN113608746A (en) * 2021-08-16 2021-11-05 北京字节跳动网络技术有限公司 Code conversion processing method and device, computer equipment and storage medium
CN113608746B (en) * 2021-08-16 2023-10-27 北京字节跳动网络技术有限公司 Code conversion processing method, device, computer equipment and storage medium
CN114995801A (en) * 2022-05-18 2022-09-02 北京寄云鼎城科技有限公司 Visual application development method and system based on Internet of things platform

Also Published As

Publication number Publication date
CN109739478B (en) 2022-12-06

Similar Documents

Publication Publication Date Title
CN109739478A (en) Front end project automated construction method, device, storage medium and electronic equipment
CN109446099A (en) Automatic test cases generation method, device, medium and electronic equipment
US20180196643A1 (en) Generating web api specification from online documentation
CN109271403A (en) A kind of operating method of data query, device, medium and electronic equipment
CN110109979A (en) A kind of allocation list radio button method and apparatus
CN110531962A (en) Development process method, equipment and the computer readable storage medium of small routine
CN110377289A (en) A kind of data analysis method, device, medium and electronic equipment
CN111176629A (en) Application development method and device
CN108984202B (en) Electronic resource sharing method and device and storage medium
CN110263287A (en) Page rendering method and apparatus
CN110858172A (en) Automatic test code generation method and device
CN110059011A (en) Interface test method, device, medium and electronic equipment
CN114996619A (en) Page display method and device, computer equipment and storage medium
CN110489087A (en) A kind of method, apparatus, medium and electronic equipment generating fractal structure
CN109582317A (en) Method and apparatus for debugging boarding application
CN113268260A (en) Routing method and device for web front end
CN110489159A (en) Installation kit compressing method and data analysis method, device, medium and equipment
CN110489165A (en) Obtain method, apparatus, medium and the equipment of call stack stack frame command offsets
CN110213105A (en) It is a kind of cross-platform micro- using creation method
CN110020349A (en) The method and device of page rendering
CN107347093A (en) Collocation method and device for distributed server system
CN111078228A (en) Method and device for converting webpage into small program, server and storage medium
CN114217789A (en) Function component expansion method, device, equipment, storage medium and program product
CN109299124A (en) Method and apparatus for more new model
CN108959294A (en) A kind of method and apparatus accessing search engine

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