CN110347376A - Project development method and device - Google Patents
Project development method and device Download PDFInfo
- Publication number
- CN110347376A CN110347376A CN201910570480.8A CN201910570480A CN110347376A CN 110347376 A CN110347376 A CN 110347376A CN 201910570480 A CN201910570480 A CN 201910570480A CN 110347376 A CN110347376 A CN 110347376A
- Authority
- CN
- China
- Prior art keywords
- project
- compiler
- development framework
- current
- mark
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000011161 development Methods 0.000 title claims abstract description 111
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000012544 monitoring process Methods 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 9
- 238000005516 engineering process Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000011179 visual inspection Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The present invention relates to project development method and devices.This method comprises: used command-line tool when operation development goal project;In command-line tool operation, the mark of current Development Framework used in the destination item is developed in identification;According to the mark of the current Development Framework, start corresponding compiler and operation is compiled to the current code of the destination item, is developed and operated with finished item.The corresponding compiler of automatically starting is compiled operation to the current code of destination item according to the technical solution of the present invention, to start the automatic development that exploitation environment realizes project, so, avoidable user searches compiler manually and manually boots compiler, and then is conducive to improve project development efficiency.
Description
Technical field
The present invention relates to development technique field more particularly to project development method and devices.
Background technique
Currently, developer needs user manually to initialize and then manually boot volume when carrying out code development
It translates device and carries out code compilation, project development is carried out with starting exploitation environment, but this development scheme development efficiency is low, develops duration
It is longer, the manual operating burden weight of user.
Summary of the invention
The embodiment of the invention provides project development method and devices.The technical solution is as follows:
According to a first aspect of the embodiments of the present invention, a kind of project development method is provided, comprising:
Run used command-line tool when development goal project;
In command-line tool operation, the mark of current Development Framework used in the destination item is developed in identification
Know;
According to the mark of the current Development Framework, start corresponding compiler to the current code of the destination item into
Row compilation operations are developed with finished item and are operated.
In one embodiment, the method also includes:
In command-line tool operation, if receiving target character, judge whether project folder is empty;
When the project folder is empty, exploitation code initializes the project folder, obtains institute
Current code is stated, and identifies the mark of the current Development Framework;
When the project folder is not sky, the mark of the current Development Framework is identified.
In one embodiment, the method also includes:
When initializing to the project folder, prompt information is generated, the prompt information is for prompting exploitation
Personnel selection Development Framework;
The Development Framework selected based on select command is determined as the current Development Framework.
In one embodiment, the method also includes:
It is that the destination item adds monitoring script, and detects institute using the compiler when starting the compiler
State whether destination item has used unauthorized resource.
In one embodiment, the method also includes:
When starting the compiler, developer's information of the destination item is added using the compiler, and by institute
The attribute for stating developer's information is set as hiding attribute.
According to a second aspect of the embodiments of the present invention, a kind of project development device is provided, comprising:
Run module, used command-line tool when for running development goal project;
First identification module, in command-line tool operation, identification to be developed used in the destination item
The mark of current Development Framework;
Starting module starts corresponding compiler to the target item for the mark according to the current Development Framework
Purpose current code is compiled operation, is developed and is operated with finished item.
In one embodiment, described device further include:
Judgment module, for if receiving target character, judging that project folder is in command-line tool operation
No is empty;
First processing module, for when the project folder is empty, exploitation code to be to the project folder
It is initialized, obtains the current code, and identify the mark of the current Development Framework;
Second identification module, for identifying the mark of the current Development Framework when the project folder is not sky.
In one embodiment, described device further include:
Generation module, for generating prompt information, the prompt information when initializing to the project folder
For prompting developer to select Development Framework;
Determining module, for the Development Framework selected based on select command to be determined as the current Development Framework.
In one embodiment, described device further include:
Second processing module, for being destination item addition using the compiler when starting the compiler
Monitoring script, and detect whether the destination item has used unauthorized resource.
In one embodiment, described device further include:
Third processing module, for adding the destination item using the compiler when starting the compiler
Developer's information, and set the attribute of developer's information to hide attribute.
The technical solution that the embodiment of the present invention provides can include the following benefits:
In command-line tool operation, the mark of current Development Framework used in development goal project can recognize, in turn
According to the corresponding relationship of the mark and compiler of the mark of current Development Framework and Development Framework, it may be determined that with the current exploitation
The corresponding compiler name of the frame, (compiling i.e. corresponding with the current Development Framework thus the corresponding compiler of automatically starting
Device) operation is compiled to the current code of destination item, to start the automatic development that exploitation environment realizes project, in this way, can
It avoids user from searching compiler manually and manually boots compiler, and then be conducive to improve project development efficiency.
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.
Fig. 1 is a kind of flow chart of project development method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of another project development method shown according to an exemplary embodiment.
Fig. 3 is a kind of block diagram of project development device shown according to an exemplary embodiment.
Fig. 4 is the block diagram of another project development device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of project development method, this method can be used for
In project development program, system or device, and the corresponding executing subject of this method can be terminal or server, as shown in Figure 1,
The method comprising the steps of S101 to step S103:
In step s101, used command-line tool when development goal project is run;Command-line tool is used for for opening
Hair personnel input exploitation code.Destination item can be any one project leaved for development.
In step s 102, when command-line tool is run, current Development Framework used in development goal project is identified
Mark;
Development Framework can be react (for constructing the library JavaScript of user interface), vue (is a building number
According to the gradual frame of the web interface of driving), angular etc..
The mark of current Development Framework can be the title of current Development Framework, i.e. react, vue, angular etc..
In step s 103, according to the mark of current Development Framework, start corresponding compiler to the current of destination item
Code is compiled operation, is developed and is operated with finished item.
In command-line tool operation, the mark of current Development Framework used in development goal project can recognize, in turn
According to the corresponding relationship of the mark and compiler of the mark of current Development Framework and Development Framework, it may be determined that with the current exploitation
The corresponding compiler name of the frame, (compiling i.e. corresponding with the current Development Framework thus the corresponding compiler of automatically starting
Device) operation is compiled to the current code of destination item, to start the automatic development that exploitation environment realizes project, in this way, can
It avoids user from searching compiler manually and manually boots compiler, and then be conducive to improve project development efficiency.
As shown in Fig. 2, in one embodiment, method further includes step S201 to step S203:
In step s 201, command-line tool run when, if receiving target character, judge project folder whether be
It is empty;Target character is specified character, can be V.
In step S202, when project folder is empty, exploitation code initializes project folder, obtains
Current code is obtained, and identifies the mark of current Development Framework;
In step S203, when project folder is not sky, the mark of current Development Framework is identified.
In command-line tool operation, if receiving target character, judge whether project folder is sky, if it is empty, then
Exploitation code automatically initializes project folder to obtain current code, and the current Development Framework of automatic identification
Mark, in order to automatic identification compiler later, and if non-empty, illustrate to have already passed through project initialization, thus can recognize
The mark of current Development Framework, to skip the initialization of project folder.
Exploitation code is storable in the model file under current Development Framework, then during initialization, readable
Exploitation code and then generation current code in modulus type file are stored into project folder.Secondly, project folder with
Model file folder is different file.
Certainly, the empty folder created before project folder is initialization.
In one embodiment, method further include:
When initializing to project folder, prompt information is generated, prompt information is for prompting developer to select
Development Framework;
The Development Framework selected based on select command is determined as current Development Framework.
When being initialized to project folder, produce prompt information, so as to remind developer according to oneself
Wish selects development frame, and then the Development Framework selected based on the select command is automatically determined as current Development Framework, from
And makes the current Development Framework of user's unrestricted choice and do not have to be limited to command-line tool.
And in the related technology, command-line tool and Development Framework are mutually bound, and user cannot at will select, and this Shen
Please by releasing the coupled relation between command-line tool and Development Framework, developer's unrestricted choice Development Framework can be facilitated.
In one embodiment, method further include:
It is that destination item adds monitoring script, and detects whether destination item makes using compiler when starting compiler
With unauthorized resource.
It is automatically destination item addition monitoring script using the compiler, and detect mesh automatically when starting compiler
Whether mark project has used unauthorized resource, and needs user to add manually in item code in exploitation in the related technology
Monitoring, which is monitored and checked whether manually, refers to unauthorized resource, thus, item can be improved for the relevant technologies in the application
Mesh development efficiency and automation without the manual perform script addition operation of user and manually perform detection operation, and improve item
The accuracy rate that visual inspection is surveyed.
In one embodiment, method further include:
When starting compiler, using developer's information of compiler addition destination item, and by the category of developer's information
Property be set as hide attribute.
When starting compiler, developer's information of destination item is added automatically using compiler, and developer is believed
The attribute of breath is automatically set as hiding attribute, and user is needed to add developer's information manually in the related technology, thus, the application
For the relevant technologies, project development efficiency and automation can further improve, add developer manually without user
Information, and improve the search efficiency of developer's information.
In addition, developer can be by inputting corresponding generation when being set as the attribute of developer's information to hide attribute
Code shows developer's information, and for ordinary user, developer's information is shown using browser plug-in.
Technical solution of the present invention will be explained in further detail below:
1) installation is used for the command-line tool of development goal project, without considering that the Technology Selection of Development Framework uses on earth
Which command-line tool.
Method is compared in the industry, eliminates the energy for finding the corresponding order line of Technology Selection.
2) an empty folder A is created in computer.
3) auto-initiation item file.
The order (such as " v ", rather than " v init " in the related technology) of command-line tool offer is provided.The order line
Selection prompt can be provided, developer's selection is allowed to use which kind of Technology Selection (i.e. which Development Framework selection uses).Developer's choosing
After middle Technology Selection, project directory (i.e. file A) is automatically performed initialization.The process wherein initialized are as follows: read developer
The exploitation code that the developer stored in the corresponding model file folder of selected Development Framework has write, is then based on
The exploitation code generates code to be compiled and stores into file A.
It is compared with the relevant technologies, eliminates the such order of execution " v init ", and only carry out one " v " order.
4) automatic starting exploitation environment
After the completion of project initialization, compiler name needed for order line automatic identification code compilation, and start exploitation ring
Border.
It is compared with the relevant technologies, volume can be started by searching manually without user and being manually entered " v dev " such order
Translate device.
5) constantly amendment exploitation code is to carry out page development.
6) monitoring script is added automatically, automaticly inspects external unauthorized resource etc..
Whether the compiler of start up with command-line options can add monitoring script automatically for project, and automaticly inspect in project and use
External unauthorized resource.
It is compared with the relevant technologies, eliminates the step of manually performing above-mentioned behavior, realize automation, developer is without appointing
What is operated.
7) project is online.
8) Automatic-searching page developer.
Before the page is online, compiler can add automatically the information of developer into the page and hide, and find certain if necessary
The developer of a page can find out developer's information in the page by a browser plug-in, and be prompted, and help quick
Find page developer.
Finally, it should be clear that: those skilled in the art can according to actual needs carry out above-mentioned multiple embodiments certainly
By combining.
Corresponding above-mentioned project development method provided in an embodiment of the present invention, the embodiment of the present invention also provide a kind of project development
Device, as shown in figure 3, the device includes:
Module 301 is run, used command-line tool when operation development goal project is configured as;
First identification module 302 is configured as identifying and working as used in development goal project when command-line tool is run
The mark of preceding Development Framework;
Starting module 303 is configured as the mark according to current Development Framework, starts corresponding compiler to destination item
Current code be compiled operation, with finished item develop operate.
As shown in figure 4, in one embodiment, device further include:
Judgment module 401 is configured as, if receiving target character, judging item file when command-line tool is run
Whether folder is empty;
First processing module 402 is configured as when project folder is empty, exploitation code to project folder into
Row initialization, obtains current code, and identify the mark of current Development Framework;
Second identification module 403 is configured as identifying the mark of current Development Framework when project folder is not sky.
In one embodiment, device further include:
Generation module is configured as when initializing to project folder, generates prompt information, and prompt information is matched
It is set to prompt developer and selects Development Framework;
Determining module is configured as the Development Framework selected based on select command being determined as current Development Framework.
In one embodiment, device further include:
Second processing module is configured as when starting compiler, is that destination item adds monitoring script using compiler,
And detect whether destination item has used unauthorized resource.
In one embodiment, device further include:
Third processing module is configured as when starting compiler, and the developer using compiler addition destination item believes
Breath, and set the attribute of developer's information to hide attribute.
Those skilled in the art will readily occur to of the invention its after considering specification and the invention invented here of practice
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
The common knowledge in the art that person's adaptive change follows general principle of the invention and do not invent including 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 (10)
1. a kind of project development method characterized by comprising
Run used command-line tool when development goal project;
In command-line tool operation, the mark of current Development Framework used in the destination item is developed in identification;
According to the mark of the current Development Framework, starts corresponding compiler and the current code of the destination item is compiled
Operation is translated, is developed and is operated with finished item.
2. the method according to claim 1, wherein the method also includes:
In command-line tool operation, if receiving target character, judge whether project folder is empty;
When the project folder is empty, exploitation code initializes the project folder, works as described in acquisition
Preceding code, and identify the mark of the current Development Framework;
When the project folder is not sky, the mark of the current Development Framework is identified.
3. the method according to claim 1, wherein the method also includes:
When initializing to the project folder, prompt information is generated, the prompt information is for prompting developer
Select Development Framework;
The Development Framework selected based on select command is determined as the current Development Framework.
4. the method according to claim 1, wherein the method also includes:
It is that the destination item adds monitoring script, and detects the mesh using the compiler when starting the compiler
Whether mark project has used unauthorized resource.
5. method according to claim 1 to 4, which is characterized in that the method also includes:
When starting the compiler, developer's information of the destination item is added using the compiler, and open described
The attribute of originator information is set as hiding attribute.
6. a kind of project development device characterized by comprising
Run module, used command-line tool when for running development goal project;
First identification module, in command-line tool operation, identification to be developed current used in the destination item
The mark of Development Framework;
Starting module starts corresponding compiler to the destination item for the mark according to the current Development Framework
Current code is compiled operation, is developed and is operated with finished item.
7. device according to claim 6, which is characterized in that described device further include:
Judgment module, for the command-line tool operation when, if receiving target character, judge project folder whether be
It is empty;
First processing module, for when the project folder is empty, exploitation code to carry out the project folder
Initialization, obtains the current code, and identify the mark of the current Development Framework;
Second identification module, for identifying the mark of the current Development Framework when the project folder is not sky.
8. device according to claim 6, which is characterized in that described device further include:
Generation module, for generating prompt information when initializing to the project folder, the prompt information is used for
Developer is prompted to select Development Framework;
Determining module, for the Development Framework selected based on select command to be determined as the current Development Framework.
9. device according to claim 6, which is characterized in that described device further include:
Second processing module, for being destination item addition monitoring using the compiler when starting the compiler
Script, and detect whether the destination item has used unauthorized resource.
10. device according to any one of claims 6 to 9, which is characterized in that described device further include:
Third processing module, for adding the exploitation of the destination item using the compiler when starting the compiler
Person's information, and set the attribute of developer's information to hide attribute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910570480.8A CN110347376A (en) | 2019-06-27 | 2019-06-27 | Project development method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910570480.8A CN110347376A (en) | 2019-06-27 | 2019-06-27 | Project development method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110347376A true CN110347376A (en) | 2019-10-18 |
Family
ID=68177217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910570480.8A Pending CN110347376A (en) | 2019-06-27 | 2019-06-27 | Project development method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110347376A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111966355A (en) * | 2020-09-03 | 2020-11-20 | 平安国际智慧城市科技股份有限公司 | Project operation method, device and equipment and computer storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1831760A (en) * | 2005-03-08 | 2006-09-13 | 光宝科技股份有限公司 | Method and device for quickly developing embedded system using automatic compilation frame |
CN104461582A (en) * | 2014-12-30 | 2015-03-25 | 乐视网信息技术(北京)股份有限公司 | Service processing method and device and equipment |
CN104598240A (en) * | 2015-01-20 | 2015-05-06 | 北京仿真中心 | Platform-spanning simulation model development method and system |
US20150149978A1 (en) * | 2013-11-27 | 2015-05-28 | Electronics And Telecommunications Research Institute | Method of providing embedded software development tool for supporting embedded software development environment based on native building, and apparatus thereof |
CN108536431A (en) * | 2018-04-04 | 2018-09-14 | 浙江小泰科技有限公司 | A kind of global command's row creates front end project approach and system |
CN109240662A (en) * | 2018-08-09 | 2019-01-18 | 赛尔网络有限公司 | A kind of software development methodology based on cloud platform, cloud platform, equipment and medium |
CN109815682A (en) * | 2018-12-27 | 2019-05-28 | 北京字节跳动网络技术有限公司 | A kind of pair of permission is tracked the method, apparatus and computer readable medium of management |
CN109814854A (en) * | 2019-01-24 | 2019-05-28 | 平安科技(深圳)有限公司 | Project skeleton generating method, device, computer equipment and storage medium |
-
2019
- 2019-06-27 CN CN201910570480.8A patent/CN110347376A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1831760A (en) * | 2005-03-08 | 2006-09-13 | 光宝科技股份有限公司 | Method and device for quickly developing embedded system using automatic compilation frame |
US20150149978A1 (en) * | 2013-11-27 | 2015-05-28 | Electronics And Telecommunications Research Institute | Method of providing embedded software development tool for supporting embedded software development environment based on native building, and apparatus thereof |
CN104461582A (en) * | 2014-12-30 | 2015-03-25 | 乐视网信息技术(北京)股份有限公司 | Service processing method and device and equipment |
CN104598240A (en) * | 2015-01-20 | 2015-05-06 | 北京仿真中心 | Platform-spanning simulation model development method and system |
CN108536431A (en) * | 2018-04-04 | 2018-09-14 | 浙江小泰科技有限公司 | A kind of global command's row creates front end project approach and system |
CN109240662A (en) * | 2018-08-09 | 2019-01-18 | 赛尔网络有限公司 | A kind of software development methodology based on cloud platform, cloud platform, equipment and medium |
CN109815682A (en) * | 2018-12-27 | 2019-05-28 | 北京字节跳动网络技术有限公司 | A kind of pair of permission is tracked the method, apparatus and computer readable medium of management |
CN109814854A (en) * | 2019-01-24 | 2019-05-28 | 平安科技(深圳)有限公司 | Project skeleton generating method, device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
探矽工作室: "《嵌入式系统导论》", 30 June 2005, 北京:中国铁道出版社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111966355A (en) * | 2020-09-03 | 2020-11-20 | 平安国际智慧城市科技股份有限公司 | Project operation method, device and equipment and computer storage medium |
CN111966355B (en) * | 2020-09-03 | 2023-12-12 | 深圳赛安特技术服务有限公司 | Project operation method, device, equipment and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10698702B1 (en) | Automating interactions with software user interface | |
US20180137035A1 (en) | Simultaneous multi-platform testing | |
US9372683B2 (en) | Automatic generation of class identifiers from source code annotations | |
US8352913B2 (en) | Generating and resolving component names in an integrated development environment | |
CN104391797A (en) | GUI (graphical user interface) widget identification method and device | |
US8793653B2 (en) | Program code library selection in an integrated development environment | |
EP3333712A2 (en) | Simultaneous multi-platform testing | |
US20080127037A1 (en) | System and method for detecting software on a computing device | |
D’Souza et al. | Collective intelligence for smarter API recommendations in python | |
KR20170057264A (en) | Code development tool with multi-context intelligent assistance | |
Savic et al. | Use Case Specification Using the SILABREQ Domain Specific Language. | |
WO2016205628A1 (en) | A method and system for evaluating computational algorithms described in printed publications | |
US20190129832A1 (en) | System and method for test data generation for use in model based testing using source code test annotations and constraint solving | |
JP5481571B2 (en) | How to improve understanding of time complexity and flow in code | |
Nguyen et al. | Recommending exception handling code | |
CN105893104A (en) | Code compiling method and device | |
Ghafari et al. | Mining unit tests for code recommendation | |
CN110347376A (en) | Project development method and device | |
US10042638B2 (en) | Evaluating documentation coverage | |
US8819625B2 (en) | Sharable development environment bookmarks for functional/data flow | |
CN113805861B (en) | Code generation method based on machine learning, code editing system and storage medium | |
US11544179B2 (en) | Source traceability-based impact analysis | |
CN105117243B (en) | A kind of method and apparatus for the startup time obtaining application program | |
US10656921B2 (en) | Sparse object instantiation | |
CN101336413A (en) | Compile-time interpretable code error detection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191018 |