CN109445835A - Method, terminal device and the computer readable storage medium of building project frame - Google Patents

Method, terminal device and the computer readable storage medium of building project frame Download PDF

Info

Publication number
CN109445835A
CN109445835A CN201811017036.5A CN201811017036A CN109445835A CN 109445835 A CN109445835 A CN 109445835A CN 201811017036 A CN201811017036 A CN 201811017036A CN 109445835 A CN109445835 A CN 109445835A
Authority
CN
China
Prior art keywords
project
file
executable instruction
preset
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811017036.5A
Other languages
Chinese (zh)
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201811017036.5A priority Critical patent/CN109445835A/en
Publication of CN109445835A publication Critical patent/CN109445835A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The present invention is suitable for field of computer technology, provides method, terminal device and the computer readable storage medium of a kind of building project frame, comprising: obtain and parse the executable instruction that user inputs in Command Line Interface;If the executable instruction is used to indicate the project example of the first preset kind of creation, the configuration file for describing default additional function is obtained;Wherein, the project example of first preset kind supports the default additional function;The configuration file is loaded onto preset term scaffold template, new project scaffold template is obtained;The frame of the project example is constructed based on the new project scaffold template, so that user is when the project of additional function is preset in development support, without being modified manually to the preset term scaffold template for constructing project frame, project development efficiency is improved, project development difficulty is reduced.

Description

Method, terminal device and the computer readable storage medium of building project frame
Technical field
The invention belongs to field of computer technology more particularly to a kind of method, terminal device and the meters of building project frame Calculation machine readable storage medium storing program for executing.
Background technique
When carrying out project development, it usually needs consider building, the deployment of project source code and the heat of project of project frame The things such as load.If each project will developer manually complete these work, will be greatly reduced project exploitation effect Rate, therefore, in order to improve project development efficiency, developer would generally be helped through using some project scaffold tools State thing.For example, the exploitation for webpage (Web) project, developer would generally use the Scaffolder under Vue.js frame Tool Vue-cli carrys out the frame of rapid build Web project, however, existing scaffold tool Vue-cli does not support gradual net Some functions of page application program (Progressive Web App, PWA).If the project currently developed needs support PWM's Certain functions then need user to change the frame of scaffold tool Vue-cli manually, add corresponding function.And in user hand During the frame of dynamic change scaffold tool, it can be potentially encountered many loopholes and need to repair, it is very inconvenient, cause exploitation to be imitated Rate reduces, and for the developer for being unfamiliar with PWM technology, and the frame of modification scaffold tool is very difficult thing Feelings.
Summary of the invention
It can in view of this, the embodiment of the invention provides method, terminal device and the computers of a kind of building project frame Storage medium is read, to solve the problems, such as that development efficiency present in existing project development method is low, development difficulty is big.
The first aspect of the embodiment of the present invention provides a kind of method of building project frame, comprising:
Obtain and parse the executable instruction that user inputs in Command Line Interface;
If the executable instruction is used to indicate the project example of the first preset kind of creation, obtain for describing to preset The configuration file of additional function;Wherein, the project example of first preset kind supports the default additional function;
The configuration file is loaded onto preset term scaffold template, new project scaffold template is obtained;
The frame of the project example is constructed based on the new project scaffold template.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program Realize following steps:
Obtain and parse the executable instruction that user inputs in Command Line Interface;
If the executable instruction is used to indicate the project example of the first preset kind of creation, obtain for describing to preset The configuration file of additional function;Wherein, the project example of first preset kind supports the default additional function;
The configuration file is loaded onto preset term scaffold template, new project scaffold template is obtained;
The frame of the project example is constructed based on the new project scaffold template.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes following steps when being executed by processor:
Obtain and parse the executable instruction that user inputs in Command Line Interface;
If the executable instruction is used to indicate the project example of the first preset kind of creation, obtain for describing to preset The configuration file of additional function;Wherein, the project example of first preset kind supports the default additional function;
The configuration file is loaded onto preset term scaffold template, new project scaffold template is obtained;
The frame of the project example is constructed based on the new project scaffold template.
Implement method, terminal device and the computer-readable storage of a kind of building project frame provided in an embodiment of the present invention Medium has the advantages that
It, only need to be in order line when user needs to create the project example for supporting the first preset kind of default additional function Interface input is used to indicate the executable instruction of the project example of the first preset kind of creation, and terminal device can be held based on this The automatic configuration file obtained for describing default additional function of row instruction, and the configuration file is loaded onto preset term foot hand Frame template constructs the frame for supporting the project example of default additional function based on the project scaffold template for being loaded with configuration file Frame, so that user improves project development efficiency, reduce without being modified manually to preset term scaffold template Project development difficulty.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation flow chart of the method for building project frame that first embodiment of the invention provides;
Fig. 2 is the specific implementation flow of S12 in a kind of method for building project frame that first embodiment of the invention provides Figure;
Fig. 3 is a kind of implementation flow chart of the method for building project frame that second embodiment of the invention provides;
Fig. 4 is a kind of implementation flow chart of the method for building project frame that third embodiment of the invention provides;
Fig. 5 is a kind of structural block diagram of terminal device provided in an embodiment of the present invention;
Fig. 6 be another embodiment of the present invention provides a kind of terminal device structural block diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Referring to Fig. 1, Fig. 1 is a kind of implementation process of the method for building project frame that first embodiment of the invention provides Figure.In the present embodiment, the executing subject for constructing the method for project frame is terminal device.Terminal device includes but is not limited to intelligence Mobile phone, tablet computer or desktop computer.The method of building project frame as shown in Figure 1 the following steps are included:
S11: obtaining and parses the executable instruction that user inputs in Command Line Interface.
Command Line Interface refers to the Command Line Interface of project scaffold tool.Command Line Interface is used to input for user executable Instruction, the instruction that executable instruction, which refers to, can be identified by computer (such as terminal device), execute and generate respective action.Project foot hand For frame tool for providing project scaffold template, project scaffold template is the project template for having complete file structure, It is used to provide the basic framework of project.It should be noted that project described in the embodiment of the present invention refers to development project.
When user needs to create new project, or needs to be updated the frame of the project created, Ke Yi The Command Line Interface input of project scaffold tool is for creating the executable instruction of new project example or for having created Project example the executable instruction that is updated of frame, held with the executable instruction that instruction terminal equipment is inputted based on user Row operation related with project accordingly.
If terminal device detects that user inputs executable instruction in the Command Line Interface of project scaffold tool and triggers Enter key then obtains the executable instruction of user's input, and parses to the executable instruction of user's input.Specifically, eventually The executable instruction that end equipment can input user based on preset syntax rule parses.Wherein, preset grammer rule It is then terminal device redaction rule corresponding with the instruction that can be identified by terminal device that user makes an appointment.
S12: it if the executable instruction is used to indicate the project example of the first preset kind of creation, obtains for describing The configuration file of default additional function.
In the embodiment of the present invention, terminal device to user after the executable instruction that Command Line Interface inputs parses, If detecting, user is used to indicate the project example of the first preset kind of creation in the executable instruction that Command Line Interface inputs, Obtain the configuration file for describing default additional function.Wherein, the project example of the first preset kind is default to be provided simultaneously with The project example of function and default additional function that project scaffold template provides.Default additional function is preset term scaffold The function that template is not supported.Preset term scaffold template is project scaffold template provided by project scaffold tool.
As an embodiment of the present invention, the project example of the first preset kind can be using Vue.js as project frame, with Module packing device (webpack) is the project example for having default additional function constructed by project build tool.Wherein, it presets Additional function be Vue.js scaffold tool do not support but gradual Web page application program (Progressive Web App, PWA the function of) being supported.For example, default additional function can include but is not limited to browser rs cache operating function, add website Add to the functions such as desktop.
In practical applications, the executable instruction for being used to indicate the project example of the first preset kind of creation specifically can be with Are as follows: Vue-cli-pwa init webpack pwa.If i.e. terminal device detects that user holds what Command Line Interface inputted Row instruction is Vue-cli-pwa init webpack pwa, then is identified as the project reality that user needs to create the first preset kind Example, at this point, terminal device obtains the configuration file for describing default additional function.
Configuration file for describing default additional function includes at least: function describes file, property description file and shape State describes file.Wherein, function describes file for describing the specific implementation of default additional function, in practical application, function Can describe file can be the JS file write by literal translation formula scripting language (JavaScript).Property description file is for retouching State the attribute of default additional function, the attribute of default additional function includes but is not limited to: the title of default additional function, preset it is attached Add the version number etc. of function.State description files are used to describe the use state of default additional function, and use state includes opening State and closed state;When the use state of default additional function is open state, additional function is preset in the project support, when pre- If the use state of additional function is in off state, project does not support default additional function.It should be noted that default additional The use state of function can be configured according to actual needs by user.
Illustratively, if the function that the scaffold tool that default additional function is Vue.js is not supported but PWA is supported, such as clear Look at device caching function, then function describes file for describing the specific implementation of browser rs cache operating function, browsing The specific implementation of device caching function are as follows: the content of caching is directly returned, request can be completed moment;Attribute is retouched File is stated for describing title, version number of browser rs cache operating function etc.;State description files are slow for describing browser The use state for depositing operating function, when use state is to open, project support browser rs cache operating function;Work as use state When to close, project does not support browser rs cache operating function.
As an embodiment of the present invention, S12 can specifically include following steps:
If the executable instruction is used to indicate the project example of the first preset kind of creation, and the executable instruction Historical reception number is 0, then obtains the configuration file for describing default additional function.
In the embodiment of the present invention, the historical reception number of executable instruction receives this at this for identifying terminal device Before executable instruction, the number of the executable instruction is received.If the historical reception number of executable instruction is 0, illustrate Terminal device never received the executable instruction before this;If the historical reception number of executable instruction is greater than 0, illustrate end End equipment at least received the primary executable instruction before this.After terminal device receives every time and executes executable instruction, all can The historical reception number of the executable instruction is added 1, the initial value of the historical reception number of executable instruction is 0.
In the embodiment of the present invention, if terminal detects that user is used to indicate wound in the executable instruction that Command Line Interface inputs The project example of the first preset kind is built, then obtains the executable instruction for being used to indicate the project example of the first preset kind of creation Historical reception number, if be used to indicate creation the first preset kind project example executable instruction historical reception number It is 0, then illustrates that terminal device never receives the executable instruction before this, at this point, terminal device acquisition is attached for describing to preset Add the configuration file of function, and executes S13~S14.
As another embodiment of the present invention, if being used to indicate the executable instruction of the project example of the first preset kind of creation Historical reception number be greater than 0, then illustrate that terminal device received the executable instruction before this, at this point, the direct base of terminal device The project example of the first preset kind is constructed in the project scaffold template for being loaded with configuration file before this, in this way, terminal is set It is standby without receive every time be used to indicate the first preset kind of creation project example it is executable when, be carried out load configuration text Step of the part into preset term scaffold template improves project example frame to save the system resource of terminal device The building efficiency of frame.
S13: the configuration file is loaded onto preset term scaffold template, obtains new project scaffold template.
In the embodiment of the present invention, after terminal device gets the configuration file for describing default additional function, this is matched It sets file to be loaded onto preset term scaffold template, obtains new project scaffold template.
In the embodiment of the present invention, including at least following file in preset term scaffold template: build file, Config file, source (src) file and project home page (index.html) file.It wherein, include mould in build file The basic configuration file of block packing device, exploitation environment profile, production environment configuration file etc.;It is main in config file Including path port (i.e. proxy server) configuration file;Source folder is used for placing modules and entry file;Project home page text Part is used for configuration file entrance.
As an embodiment of the present invention, terminal device can be added configuration file by S131~S132 as shown in Figure 2 It is loaded onto preset term scaffold template, details are as follows:
S131: addition is for introducing in the project home page file under the file structure of the preset term scaffold template The function describes the script tag of file and the document properties label for introducing the property description file.
S132: the function description is added in the source folder under the file structure of the preset term scaffold template File, the property description file and the state description files.
In the present embodiment, needing the configuration file for being used to describe default additional function being loaded onto preset term scaffold When in template, terminal device is first added in the project home page file under the file structure of preset term scaffold template for drawing Enter the script tag (script label) that the function in configuration file describes file, and addition for being introduced into configuration file The document properties label (meta label) of property description file.
Wherein, script tag is used to be directed toward external script files by the entry file in source file;Document properties label For describing the attribute of web document, the property description file outside the direction of the entry file in source file can be passed through.
Terminal device is in the file structure that script tag and document properties label are added to preset term scaffold template Under project home page file in after, add configuration file in the source folder under the file structure of preset term scaffold template In function file, property description file and state description files are described.Wherein, script tag direction-pointing function describes file;Text Shelves attribute tags are directed toward property description file.
S14: the frame of the project example is constructed based on the new project scaffold template.
After the configuration file for being used to describe default additional function is loaded onto preset term scaffold template by terminal device, The project example of the first preset kind is constructed based on new (being loaded with configuration file) project scaffold template.Specifically, Terminal can create the copy of new preset term scaffold template, by creation based on new preset term scaffold template The copy of new preset term scaffold template is determined as the frame of the project example of the first preset kind.
Above as can be seen that a kind of method of building project frame provided in this embodiment, detecting that user ordering When the executable instruction of row interface input is used to indicate the project example of the default additional function of creation support, obtain pre- for describing If the configuration file of additional function, which is loaded onto preset term scaffold template, obtains new project foot hand Frame template constructs the frame of project example based on new project scaffold template automatically, so that user is needing to create branch When holding the project example of default additional function, without being modified manually to default scaffold template, project development effect is improved Rate reduces project development difficulty.
Referring to Fig. 3, Fig. 3 is a kind of implementation process of the method for building project frame that second embodiment of the invention provides Figure.Relative to the corresponding embodiment of Fig. 1, a kind of method of building project frame provided in this embodiment, can be with after S11 Including S15, details are as follows:
S15: if the executable instruction is used to indicate the project example of the second preset kind of creation, it is based on preset term Scaffold template constructs the frame of the project example.
In the present embodiment, terminal device to user after the executable instruction that Command Line Interface inputs parses, if inspection The project example that user is used to indicate the second preset kind of creation in the executable instruction that Command Line Interface inputs is measured, then directly The project example of the second preset kind is constructed based on preset term scaffold template.
Wherein, the project example of the second preset kind is only to have the function that preset term scaffold template provides, without The project example for having other function.
As an embodiment of the present invention, preset term scaffold template can be base provided by Vue.js scaffold tool In the template of webpack, the project example of the second preset kind be can be using Vue.js as project frame, using webpack as item What mesh the build tool was created does not support the project of default additional function.
As an embodiment of the present invention, terminal device constructs the item of the second preset kind based on preset term scaffold template The frame of mesh example is specifically as follows: terminal device is based on preset term scaffold template, creates preset term scaffold template Copy, the copy of newly created preset term scaffold template is determined as to the frame of the project example of the second preset kind.
Above as can be seen that a kind of method of building project frame provided in this embodiment, detecting that user ordering The project that the executable instruction of row interface input is used to indicate the function that creation only has the offer of preset term scaffold template is real When example, it is directly based upon the frame of preset term scaffold template building project example, without user's manual creation item boxes Frame improves project development efficiency, reduces project development difficulty.
Referring to Fig. 4, Fig. 4 is a kind of implementation process of the method for building project frame that third embodiment of the invention provides Figure.Relative to the corresponding embodiment of Fig. 1, a kind of method of building project frame provided in this embodiment, can be with after S14 Including S16~S18, details are as follows:
S16: if detecting, user inputs executable instruction in the Command Line Interface, and the executable instruction is for referring to Show and the configuration file is updated, then extracts the more new information that the executable instruction carries.
S17: the configuration file is updated based on the more new information.
S18: the frame of the project example is reconstructed based on the updated configuration file.
Under normal conditions, default configuration is all made of for describing the configuration of the configuration file of default additional function.Configuration text The configuration of part refers to attribute and content of each file that configuration file is included etc..
In practical applications, user can according to actual needs be modified the configuration of configuration file.When user needs When being custom-configured to configuration file, it can be inputted in Command Line Interface executable for being updated to configuration file Instruction.Wherein, more new information is carried in the executable instruction for being updated to configuration file.More new packets include to be updated Configuration parameter and the corresponding updated value of configuration parameter to be updated.
If terminal device detects that user inputs executable instruction in Command Line Interface, and the executable instruction is used to indicate Configuration file is updated, then extracts configuration parameter to be updated and configuration parameter pair to be updated from the executable instruction The updated value answered, and based on the corresponding updated value of configuration parameter to be updated, to configuration parameter to be updated in configuration file into Row automatically updates.Specifically, if terminal device detects included configuration parameter to be updated in configuration file, with to more The updated value of new configuration parameter replaces its existing value;If terminal device detects in configuration file not comprising configuration to be updated Configuration parameter to be updated and the corresponding updated value of configuration parameter to be updated are then added in configuration file by parameter.
After terminal device is updated configuration file, based on updated configuration file to the project of the first preset kind The frame of example is reconstructed.
As an embodiment of the present invention, updated configuration file can be loaded onto preset term scaffold by terminal device In template, and based on the project scaffold template for being loaded with updated configuration file, the item of the first preset kind is rebuild The frame of mesh example.
As another embodiment of the present invention, terminal device can be pre- to first constructed using updated configuration file If the configuration file in the frame of the project example of type is covered or is replaced, and then realizes the project to the first preset kind The reconstruct of the frame of example.
Above as can be seen that a kind of method of building project frame provided in this embodiment, when user wants to having created The additional function of project example when being updated, need to only be inputted by Command Line Interface for being updated to configuration file Executable instruction, the more new information that terminal device can be carried based on executable instruction is updated configuration file, and is based on Updated configuration file is automatically reconstructed the frame of the project example created, without user manually to having constructed The frame of project example be modified, improve project development efficiency, reduce project development difficulty.
Referring to Fig. 5, Fig. 5 show be a kind of terminal device provided in an embodiment of the present invention structural block diagram.In the present embodiment Terminal device be terminal device.The each unit that the terminal device includes is each in the corresponding embodiment of Fig. 1 to Fig. 4 for executing Step.Referring specifically to the associated description in embodiment corresponding to Fig. 1 to Fig. 4 and Fig. 1 to Fig. 4.For ease of description, only Show part related to the present embodiment.Referring to Fig. 5, terminal device 500 include: resolution unit 51, first acquisition unit 52, Loading unit 53 and the first construction unit 54.Wherein:
Resolution unit 51 is for obtaining and parsing the executable instruction that user inputs in Command Line Interface.
If first acquisition unit 52 is used to indicate the project example of the first preset kind of creation for the executable instruction, Then obtain the configuration file for describing default additional function;Wherein, described in the project example of first preset kind is supported Default additional function.
Loading unit 53 obtains new project foot for the configuration file to be loaded onto preset term scaffold template Hand cradle template.
First construction unit 54 is used to construct the frame of the project example based on the new project scaffold template.
As an embodiment of the present invention, terminal device 500 further include: the second construction unit 55.
If the second construction unit 55 is used to indicate the project example of the second preset kind of creation for the executable instruction, The frame of the project example is then constructed based on preset term scaffold template;Wherein, the project of second preset kind is real Example does not support the default additional function.
As an embodiment of the present invention, terminal device 500 further include: extraction unit, updating unit and reconfiguration unit.Its In:
If extraction unit is for detecting that user inputs executable instruction, and the executable finger in the Command Line Interface Order, which is used to indicate, is updated the configuration file, then extracts the more new information that the executable instruction carries.
Updating unit is used to be updated the configuration file based on the more new information.
Reconfiguration unit is for being reconstructed the frame of the project example based on the updated configuration file.
As an embodiment of the present invention, loading unit 53 specifically includes: the first adding unit and the second adding unit.Its In:
First adding unit is used in the project home page file under the file structure of the preset term scaffold template It adds and describes the script tag of file and document properties mark for introducing the property description file for introducing the function Label.
Second adding unit in the source folder under the file structure of the preset term scaffold template for adding The function describes file, the property description file and the state description files.
As an embodiment of the present invention, first acquisition unit 52 is specifically used for: if the executable instruction is used to indicate wound The project example of the first preset kind is built, and the historical reception number of the executable instruction is 0, then obtains for describing to preset The configuration file of additional function.
Above as can be seen that a kind of terminal device provided in this embodiment is detecting what user inputted in Command Line Interface When executable instruction is used to indicate the project example of the default additional function of creation support, obtain for describing default additional function The configuration file is loaded onto preset term scaffold template by configuration file, obtains new project scaffold template, based on new Project scaffold template construct the frame of project example automatically so that user supports default additional function needing to create Project example when, without being modified manually to default scaffold template, improve project development efficiency, the project of reducing is opened Degree of raising difficult questions.
Fig. 6 be another embodiment of the present invention provides a kind of terminal device structural block diagram.As shown in fig. 6, the embodiment Terminal device 6 include: processor 60, memory 61 and be stored in the memory 61 and can be on the processor 60 The computer program 62 of operation, such as construct the program of the method for project frame.Processor 60 executes the computer program 62 Step in each embodiment of method of the above-mentioned each building project frame of Shi Shixian, such as S11 shown in FIG. 1 to S14.Alternatively, The processor 60 realizes the function of each unit in the corresponding embodiment of above-mentioned Fig. 5 when executing the computer program 62, for example, The function of unit 51 to 54 shown in fig. 5 does not repeat herein referring specifically to the associated description in the corresponding embodiment of Fig. 5.
Illustratively, the computer program 62 can be divided into one or more units, one or more of Unit is stored in the memory 61, and is executed by the processor 60, to complete the present invention.One or more of lists Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey Implementation procedure of the sequence 62 in the terminal device 6.For example, the computer program 62, which can be divided into request, receives list Member, the first communication unit, the second communication unit and first identifier unit, each unit concrete function are as described above.
The terminal device may include, but be not limited only to, processor 60, memory 61.Those skilled in the art can manage Solution, Fig. 6 is only the example of terminal device 6, does not constitute the restriction to terminal device 6, may include more or more than illustrating Few component perhaps combines certain components or different components, such as the terminal device can also be set including input and output Standby, network access equipment, bus etc..
Alleged processor 60 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 61 can be the internal storage unit of the terminal device 6, such as the hard disk or interior of terminal device 6 It deposits.The memory 61 is also possible to the External memory equipment of the terminal device 6, such as be equipped on the terminal device 6 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 61 can also both include the storage inside list of the terminal device 6 Member also includes External memory equipment.The memory 61 is for storing needed for the computer program and the terminal device Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of method of building project frame characterized by comprising
Obtain and parse the executable instruction that user inputs in Command Line Interface;
If the executable instruction is used to indicate the project example of the first preset kind of creation, obtain default additional for describing The configuration file of function;Wherein, the project example of first preset kind supports the default additional function;
The configuration file is loaded onto preset term scaffold template, new project scaffold template is obtained;
The frame of the project example is constructed based on the new project scaffold template.
2. the method for building project frame according to claim 1, which is characterized in that the acquisition simultaneously parses user and ordering After the executable instruction for enabling row interface input, further includes:
If the executable instruction is used to indicate the project example of the second preset kind of creation, it is based on preset term scaffold mould Plate constructs the frame of the project example;Wherein, the project example of second preset kind does not support the default additional function Energy.
3. the method for building project frame according to claim 1, which is characterized in that described based on the new project foot Hand cradle template constructs after the frame of the project example, further includes:
If detecting, user inputs executable instruction in the Command Line Interface, and the executable instruction is used to indicate to described Configuration file is updated, then extracts the more new information that the executable instruction carries;
The configuration file is updated based on the more new information;
The frame of the project example is reconstructed based on the updated configuration file.
4. the method for building project frame according to claim 1, which is characterized in that the configuration file includes that function is retouched State file, property description file and state description files;It is described that the configuration file is loaded onto preset term scaffold template In, obtain new project scaffold template, comprising:
Addition is for introducing the function in the project home page file under the file structure of the preset term scaffold template The script tag of file and the document properties label for introducing the property description file are described;
The function is added in the source folder under the file structure of the preset term scaffold template describes file, described Property description file and the state description files.
5. the method for building project frame according to claim 1-4, which is characterized in that if described hold Row instruction is used to indicate the project example of the first preset kind of creation, then obtains the configuration text for describing default additional function Part, comprising:
If the executable instruction is used to indicate the project example of the first preset kind of creation, and the history of the executable instruction Receive number is 0, then obtains the configuration file for describing default additional function.
6. a kind of terminal device, which is characterized in that the terminal device includes memory, processor and is stored in the storage In device and the computer program that can run on the processor, the processor are realized as follows when executing the computer program Step:
Obtain and parse the executable instruction that user inputs in Command Line Interface;
If the executable instruction is used to indicate the project example of the first preset kind of creation, obtain default additional for describing The configuration file of function;Wherein, the project example of first preset kind supports the default additional function;
The configuration file is loaded onto preset term scaffold template, new project scaffold template is obtained;
The frame of the project example is constructed based on the new project scaffold template.
7. terminal device according to claim 6, which is characterized in that the acquisition and to parse user defeated in Command Line Interface After the executable instruction entered, further includes:
If the executable instruction is used to indicate the project example of the second preset kind of creation, it is based on preset term scaffold mould Plate constructs the frame of the project example;Wherein, the project example of second preset kind does not support the default additional function Energy.
8. terminal device according to claim 6, which is characterized in that described based on the new project scaffold template structure It builds after the frame of the project example, further includes:
If detecting, user inputs executable instruction in the Command Line Interface, and the executable instruction is used to indicate to described Configuration file is updated, then extracts the more new information that the executable instruction carries;
The configuration file is updated based on the more new information;
The frame of the project example is reconstructed based on the updated configuration file.
9. terminal device according to claim 6, which is characterized in that the configuration file includes that function describes file, belongs to Property describes file and state description files;It is described that the configuration file is loaded onto preset term scaffold template, it obtains new Project scaffold template, comprising:
Addition is for introducing the function in the project home page file under the file structure of the preset term scaffold template The script tag of file and the document properties label for introducing the property description file are described;
The function is added in the source folder under the file structure of the preset term scaffold template describes file, described Property description file and the state description files.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201811017036.5A 2018-09-03 2018-09-03 Method, terminal device and the computer readable storage medium of building project frame Pending CN109445835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811017036.5A CN109445835A (en) 2018-09-03 2018-09-03 Method, terminal device and the computer readable storage medium of building project frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811017036.5A CN109445835A (en) 2018-09-03 2018-09-03 Method, terminal device and the computer readable storage medium of building project frame

Publications (1)

Publication Number Publication Date
CN109445835A true CN109445835A (en) 2019-03-08

Family

ID=65530807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811017036.5A Pending CN109445835A (en) 2018-09-03 2018-09-03 Method, terminal device and the computer readable storage medium of building project frame

Country Status (1)

Country Link
CN (1) CN109445835A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109659A (en) * 2019-04-28 2019-08-09 广东三维家信息科技有限公司 A kind of system that realizing front end applications scaffold and server
CN110377367A (en) * 2019-07-24 2019-10-25 广州虎牙科技有限公司 Arrrangement method, device, electric terminal and computer readable storage medium
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
CN111090453A (en) * 2019-11-15 2020-05-01 苏州浪潮智能科技有限公司 Equipment configuration method, equipment and storage medium
CN111522615A (en) * 2020-04-23 2020-08-11 平安国际智慧城市科技股份有限公司 Method, device and equipment for updating command line interface and storage medium
CN111666068A (en) * 2020-06-01 2020-09-15 北京软通智慧城市科技有限公司 Platform development framework, construction method, equipment and medium
CN111865634A (en) * 2019-04-29 2020-10-30 西门子(中国)有限公司 Method and device for generating configuration file of site in Internet of things system
CN111949262A (en) * 2020-08-14 2020-11-17 曙光信息产业(北京)有限公司 Front-end project construction method and device, computer equipment and storage medium
CN111966355A (en) * 2020-09-03 2020-11-20 平安国际智慧城市科技股份有限公司 Project operation method, device and equipment and computer storage medium
CN112015375A (en) * 2020-08-21 2020-12-01 广州欢网科技有限责任公司 Background management system creating method and device and electronic equipment
CN112306474A (en) * 2020-10-28 2021-02-02 科大国创云网科技有限公司 VUE project smooth upgrading method based on modular template
CN112579060A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Class library construction method and device, storage medium and electronic equipment
CN112799652A (en) * 2021-02-08 2021-05-14 北京乐学帮网络技术有限公司 Client construction method and device, electronic equipment and storage medium
CN113378091A (en) * 2021-06-08 2021-09-10 北京百度网讯科技有限公司 Visual project generation method and device, electronic equipment and storage medium
CN113467772A (en) * 2021-07-12 2021-10-01 工银科技有限公司 Project template generation method and device, electronic equipment and storage medium
CN113760356A (en) * 2021-09-10 2021-12-07 北京百度网讯科技有限公司 Differential configuration method, device, equipment and medium of program product
CN116069325A (en) * 2023-01-28 2023-05-05 深圳市明源云采购科技有限公司 Front-end project construction method, device, equipment and computer readable storage medium
CN116204199A (en) * 2022-12-27 2023-06-02 北京君航微金信息科技有限公司 Command line-based project management method, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030192030A1 (en) * 2002-04-04 2003-10-09 Hostettler Randy W. Universal script editor
CN106502663A (en) * 2016-10-17 2017-03-15 成都知道创宇信息技术有限公司 A kind of front end project skeleton generating method
CN107329806A (en) * 2017-07-24 2017-11-07 郑州云海信息技术有限公司 A kind of development environment construction method and device
CN108196825A (en) * 2017-12-28 2018-06-22 新华三大数据技术有限公司 The construction method and system of software project

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030192030A1 (en) * 2002-04-04 2003-10-09 Hostettler Randy W. Universal script editor
CN106502663A (en) * 2016-10-17 2017-03-15 成都知道创宇信息技术有限公司 A kind of front end project skeleton generating method
CN107329806A (en) * 2017-07-24 2017-11-07 郑州云海信息技术有限公司 A kind of development environment construction method and device
CN108196825A (en) * 2017-12-28 2018-06-22 新华三大数据技术有限公司 The construction method and system of software project

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109659A (en) * 2019-04-28 2019-08-09 广东三维家信息科技有限公司 A kind of system that realizing front end applications scaffold and server
CN111865634B (en) * 2019-04-29 2022-03-11 西门子(中国)有限公司 Method and device for generating configuration file of site in Internet of things system
CN111865634A (en) * 2019-04-29 2020-10-30 西门子(中国)有限公司 Method and device for generating configuration file of site in Internet of things system
CN110377367B (en) * 2019-07-24 2022-05-03 广州虎牙科技有限公司 Component configuration method and device, electronic terminal and computer readable storage medium
CN110377367A (en) * 2019-07-24 2019-10-25 广州虎牙科技有限公司 Arrrangement method, device, electric terminal and computer readable storage medium
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
CN110659062B (en) * 2019-09-20 2023-09-29 贝壳技术有限公司 Front-end scaffold configuration method and device, readable storage medium and electronic equipment
CN112579060A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Class library construction method and device, storage medium and electronic equipment
CN111090453A (en) * 2019-11-15 2020-05-01 苏州浪潮智能科技有限公司 Equipment configuration method, equipment and storage medium
CN111522615B (en) * 2020-04-23 2023-08-15 深圳赛安特技术服务有限公司 Method, device, equipment and storage medium for updating command line interface
CN111522615A (en) * 2020-04-23 2020-08-11 平安国际智慧城市科技股份有限公司 Method, device and equipment for updating command line interface and storage medium
CN111666068B (en) * 2020-06-01 2023-07-04 北京软通智慧科技有限公司 Platform development framework, construction method, equipment and medium
CN111666068A (en) * 2020-06-01 2020-09-15 北京软通智慧城市科技有限公司 Platform development framework, construction method, equipment and medium
CN111949262A (en) * 2020-08-14 2020-11-17 曙光信息产业(北京)有限公司 Front-end project construction method and device, computer equipment and storage medium
CN112015375A (en) * 2020-08-21 2020-12-01 广州欢网科技有限责任公司 Background management system creating method and device and electronic equipment
CN111966355B (en) * 2020-09-03 2023-12-12 深圳赛安特技术服务有限公司 Project operation method, device, equipment and computer storage medium
CN111966355A (en) * 2020-09-03 2020-11-20 平安国际智慧城市科技股份有限公司 Project operation method, device and equipment and computer storage medium
CN112306474A (en) * 2020-10-28 2021-02-02 科大国创云网科技有限公司 VUE project smooth upgrading method based on modular template
CN112799652A (en) * 2021-02-08 2021-05-14 北京乐学帮网络技术有限公司 Client construction method and device, electronic equipment and storage medium
CN113378091A (en) * 2021-06-08 2021-09-10 北京百度网讯科技有限公司 Visual project generation method and device, electronic equipment and storage medium
CN113467772B (en) * 2021-07-12 2022-06-14 工银科技有限公司 Project template generation method and device, electronic equipment and storage medium
CN113467772A (en) * 2021-07-12 2021-10-01 工银科技有限公司 Project template generation method and device, electronic equipment and storage medium
CN113760356A (en) * 2021-09-10 2021-12-07 北京百度网讯科技有限公司 Differential configuration method, device, equipment and medium of program product
CN113760356B (en) * 2021-09-10 2024-03-19 北京百度网讯科技有限公司 Differential configuration method, device, equipment and medium of program product
CN116204199A (en) * 2022-12-27 2023-06-02 北京君航微金信息科技有限公司 Command line-based project management method, system, equipment and storage medium
CN116204199B (en) * 2022-12-27 2023-12-12 北京君航微金信息科技有限公司 Command line-based project management method, system, equipment and storage medium
CN116069325A (en) * 2023-01-28 2023-05-05 深圳市明源云采购科技有限公司 Front-end project construction method, device, equipment and computer readable storage medium
CN116069325B (en) * 2023-01-28 2023-08-04 深圳市明源云采购科技有限公司 Front-end project construction method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN109445835A (en) Method, terminal device and the computer readable storage medium of building project frame
US10592319B2 (en) API notebook tool
JP6896759B2 (en) Synthesis of pattern-driven reactions in real-time dataflow programming
US9910640B2 (en) Modeling representational state transfer application programming interfaces
CN109634598A (en) A kind of page display method, device, equipment and storage medium
US20130339841A1 (en) Systems and methods of a script generation engine
CN107808010A (en) A kind of pop-up page generation method, device, browser and storage medium
US11677809B2 (en) Methods for transforming a server side template into a client side template and devices thereof
CN110109659A (en) A kind of system that realizing front end applications scaffold and server
CN108156022A (en) A kind of service calling method, device and electronic equipment
US8756407B2 (en) Configuration rule prototyping tool
CN107301137A (en) RSET interface realizing methods and device and electronic equipment and computer-readable recording medium
US20130286416A1 (en) System and Method of Installing Printer Applications on a Printer
CN103744845A (en) Method and system for WEB platform data caching
CN114996619A (en) Page display method and device, computer equipment and storage medium
CN109783562A (en) A kind of method and device for business processing
CN112087370A (en) Method, system, electronic device and computer-readable storage medium for issuing GitHub Issues
Cimino et al. An efficient model-based methodology for developing device-independent mobile applications
CN112835568A (en) Project construction method and device
CN110058849A (en) Generation method, device, computer equipment and the storage medium of flow chart
CN107077484B (en) Generating a web browser view of an application
Wolters et al. Cross-device integration of android apps
EP3005087A1 (en) Declarative configuration elements
CN114625372A (en) Automatic component compiling method and device, computer equipment and storage medium
US9052906B2 (en) Modularized customization of a model in a model driven development environment

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