CN111966355B - Project operation method, device, equipment and computer storage medium - Google Patents
Project operation method, device, equipment and computer storage medium Download PDFInfo
- Publication number
- CN111966355B CN111966355B CN202010920033.3A CN202010920033A CN111966355B CN 111966355 B CN111966355 B CN 111966355B CN 202010920033 A CN202010920033 A CN 202010920033A CN 111966355 B CN111966355 B CN 111966355B
- Authority
- CN
- China
- Prior art keywords
- target
- configuration
- determining
- item
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 238000010276 construction Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 3
- 238000011161 development Methods 0.000 abstract description 13
- 230000008569 process Effects 0.000 abstract description 13
- 238000013473 artificial intelligence Methods 0.000 abstract 1
- 238000012827 research and development Methods 0.000 abstract 1
- 238000004891 communication Methods 0.000 description 6
- 239000012792 core layer Substances 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 239000010410 layer Substances 0.000 description 5
- 238000007726 management method Methods 0.000 description 2
- 238000012550 audit Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical field of artificial intelligence, and discloses a project operation method, a device, equipment and a storage medium, which are applied to the intelligent project development field of intelligent cities, wherein the method comprises the following steps: if an operation instruction input based on a target item is detected, determining whether a command line interface corresponding to the operation instruction exists; if the target item exists, determining a compiling frame parameter corresponding to the target item based on the command line interface; determining target configuration information of the target item based on the compiling framework parameters; and operating the target item based on the target configuration information. The method is compatible with the configuration of a plurality of framework projects, and in the development and debugging process, configuration information required by the operation of different projects can be determined according to the command line interface by inputting a unified operation command, so that the projects are operated according to the configuration information, research and development personnel can develop in a unified mode, the difficulty of the hands is reduced, and the convenient operation of the projects is realized.
Description
Technical Field
The present invention relates to the field of project development technologies, and in particular, to a project operation method, apparatus, device, and computer readable storage medium.
Background
In the development and debugging process, currently, items such as a web application commonly adopt npm (Node Package Manager, node package manager is a node. Js default software package management system written in JavaScript) or yarn (a package management tool which is introduced after improvement aiming at the problems in the npm use process) to run, but when the web application is run by using the two tools, some problems are encountered, such as when a computer terminal is started, starting commands such as 'npn run dev', 'npn run start' or 'yarn run dev', 'yarn start' need to be input; if some start-up parameters are also required, the command line is more complex, such as "npm run start: demo", "npm run start-m feature/welcome-e stg", etc.
In this case, if a large project is encountered, that is, a plurality of web applications are included, and different web applications may need to be built by using different front end frameworks, for example, web technology frameworks such as react, vue, angular, etc., the application development, the construction, etc. in the technology frameworks are also different, which means that developers need to input different instructions for different technology frameworks, which causes a certain difficulty and learning cost for the developers to become familiar with and develop the application.
Disclosure of Invention
The invention mainly aims to provide a project operation method, a project operation device, project operation equipment and a computer readable storage medium, aiming at improving the convenience of project operation.
In order to achieve the above object, the present invention provides an item operation method applied to an item operation apparatus including a front-end building tool compatible with a plurality of frame types, the item operation method comprising the steps of:
if an operation instruction input based on a target item is detected, determining whether a command line interface corresponding to the operation instruction exists, wherein the operation instruction is a unified operation instruction, and the command line interface is used for representing an environment required by the operation instruction;
if the frame type corresponding to the target item exists, determining a compiling frame parameter corresponding to the target item based on the command line interface, wherein the compiling frame parameter is used for indicating the frame type corresponding to the target item;
determining target configuration information of the target item based on the compiling framework parameters;
and operating the target item based on the target configuration information.
Optionally, the step of determining the target configuration information of the target item based on the compiling framework parameters includes:
determining the frame type corresponding to the compiling frame parameter;
if the frame type is a first preset type, reading an internal configuration file corresponding to the target item and an environment variable file corresponding to the first preset type;
and determining target configuration information of the target item based on the internal configuration file and the environment variable file.
Optionally, the step of determining the target configuration information of the target item based on the internal configuration and the environment variable file includes:
determining configuration information in the internal configuration file and a first configuration item corresponding to the configuration information, and determining variable information in the environment variable file and a second configuration item corresponding to the variable information;
determining target information based on the configuration information, the first configuration item, the variable information and the second configuration item;
and rewriting the environment variable file based on the target information, and determining target configuration information of the target item based on the rewritten environment variable file.
Optionally, the step of determining the target information based on the configuration information, the first configuration item, the variable information, and the second configuration item includes:
comparing the first configuration item with the second configuration item, and determining a target configuration item which is different from the second configuration item in the first configuration item;
and determining configuration information corresponding to the target configuration item in the configuration information, and determining target information based on the configuration information of the target configuration item and the variable information.
Optionally, after the step of determining the frame type corresponding to the compiling frame parameter, the project running method further includes:
and if the frame type is a second preset type, determining built-in compiling configuration corresponding to the running environment, and determining target configuration information of the target item based on the built-in compiling configuration.
Optionally, after the step of determining the frame type corresponding to the compiling frame parameter, the project running method further includes:
if the frame type is a third preset type, reading an internal configuration file corresponding to the target item, and determining target configuration information of the target item based on the internal configuration file.
Optionally, if the compiling frame parameter corresponding to the target item exists, the step of determining the compiling frame parameter corresponding to the target item based on the command line interface includes:
if yes, determining a configuration method corresponding to the command line interface, and determining the configuration position of the target item based on the configuration method;
and based on the configuration position, reading the compiling frame parameters corresponding to the target item.
In addition, in order to achieve the above object, the present invention also provides an item operation device including:
the detection module is used for determining whether a command line interface corresponding to the operation instruction exists or not if the operation instruction input based on the target item is detected, wherein the operation instruction is a unified operation instruction, and the command line interface is used for representing the environment required by the operation instruction;
the first determining module is used for determining compiling frame parameters corresponding to the target items based on the command line interface if the target items exist, wherein the compiling frame parameters are used for indicating frame types corresponding to the target items;
the second determining module is used for determining target configuration information of the target item based on the compiling framework parameters;
and the operation module is used for operating the target item based on the target configuration information.
Optionally, the second determining module is further configured to:
determining the frame type corresponding to the compiling frame parameter;
if the frame type is a first preset type, reading an internal configuration file corresponding to the target item and an environment variable file corresponding to the first preset type;
and determining target configuration information of the target item based on the internal configuration file and the environment variable file.
Optionally, the second determining module is further configured to:
determining configuration information in the internal configuration file and a first configuration item corresponding to the configuration information, and determining variable information in the environment variable file and a second configuration item corresponding to the variable information;
determining target information based on the configuration information, the first configuration item, the variable information and the second configuration item;
and rewriting the environment variable file based on the target information, and determining target configuration information of the target item based on the rewritten environment variable file.
Optionally, the second determining module is further configured to:
comparing the first configuration item with the second configuration item, and determining a target configuration item which is different from the second configuration item in the first configuration item;
and determining configuration information corresponding to the target configuration item in the configuration information, and determining target information based on the configuration information of the target configuration item and the variable information.
Optionally, the second determining module is further configured to:
and if the frame type is a second preset type, determining built-in compiling configuration corresponding to the running environment, and determining target configuration information of the target item based on the built-in compiling configuration.
Optionally, the second determining module is further configured to:
if the frame type is a third preset type, reading an internal configuration file corresponding to the target item, and determining target configuration information of the target item based on the internal configuration file.
Optionally, the first determining module is further configured to:
if yes, determining a configuration method corresponding to the command line interface, and determining the configuration position of the target item based on the configuration method;
and based on the configuration position, reading the compiling frame parameters corresponding to the target item.
In addition, in order to achieve the above object, the present invention also provides an item execution apparatus including a processor, a memory, and an item execution program stored on the memory and executable by the processor, wherein the item execution program, when executed by the processor, implements the steps of the item execution method as described above.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon an item execution program, wherein the item execution program, when executed by a processor, implements the steps of the item execution method as described above.
The invention provides a project operation method, which is characterized in that if an operation instruction input based on a target project is detected, whether a command line interface corresponding to the operation instruction exists or not is determined; if the target item exists, determining a compiling frame parameter corresponding to the target item based on the command line interface; determining target configuration information of the target item based on the compiling framework parameters; and operating the target item based on the target configuration information. The invention is compatible with the configuration of a plurality of frame projects, and in the development and debugging process, configuration information required by the operation of different projects can be determined according to the command line interface by inputting uniform operation instructions, so that the project is operated according to the configuration information, a researcher does not need to input different operation instructions according to different frames, and development is performed in a uniform mode, the difficulty of the user on the hand is reduced, and the convenient operation of the project is realized.
Drawings
FIG. 1 is a schematic diagram of a hardware structure of a project running device according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of the project operation method of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The project operation method related to the embodiment of the invention is mainly applied to project operation equipment, and the project operation equipment can comprise equipment with display and processing functions, such as a PC (personal computer), a portable computer, a mobile terminal and the like.
Referring to fig. 1, fig. 1 is a schematic hardware structure of an item running device according to an embodiment of the present invention. In an embodiment of the present invention, the project run apparatus may include a processor 1001 (e.g., CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communications between these components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface); the memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may alternatively be a storage device independent of the processor 1001.
Those skilled in the art will appreciate that the hardware architecture shown in fig. 1 is not limiting of the item execution apparatus, and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 in fig. 1, which is a computer-readable storage medium, may include an operating system, a network communication module, and an item execution program.
In fig. 1, the network communication module is mainly used for connecting with a server and performing data communication with the server; and the processor 1001 may call the project running program stored in the memory 1005 and execute the project running method provided by the embodiment of the present invention.
The embodiment of the invention belongs to the field of intelligent project development, and can promote the construction of intelligent cities through the scheme, and particularly provides a project operation method which can be applied to project operation equipment, wherein the project operation equipment is hereinafter referred to as equipment for convenience in description.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the project operation method of the present invention.
In this embodiment, the project operation method includes the following steps:
step S10, if an operation instruction input based on a target item is detected, determining whether a command line interface corresponding to the operation instruction exists, wherein the operation instruction is a unified operation instruction, and the command line interface is used for representing an environment required by the operation instruction;
step S20, if yes, determining compiling frame parameters corresponding to the target items based on the command line interface, wherein the compiling frame parameters are used for indicating frame types corresponding to the target items;
step S30, determining target configuration information of the target item based on the compiling frame parameters;
and step S40, operating the target item based on the target configuration information.
The embodiment aims to provide a project operation method, which is applied to operation equipment, wherein the operation equipment can be a computer terminal, and the computer terminal is provided with a front end construction tool, so that an operation system is provided with an environment for executing the project operation method provided by the invention, and particularly the front end construction tool comprises an output capability layer, a core layer and a template system, wherein the output capability layer comprises a console, the console comprises a command line interface for receiving instructions input by a user, namely a researcher, and the console is compatible with various front end frameworks, such as a react, vue, angular front end technical framework; the core layer comprises a parser, the core layer is connected with the output capability layer through the parser, specifically, the core layer parses an instruction transmitted by a console through the parser, so that a script language is obtained, corresponding functions are searched through the script language, a template system is called according to the determined functions, a front end frame of an item is built, and the core layer also provides a plug-in interface, so that the subsequent function can be conveniently updated and increased; the template system comprises a configuration module and a cross-end module, wherein the configuration module is used for configuring front-end templates of each item according to received configuration information, and the cross-end module comprises various front-end templates, such as templates of a component library, a mobile end H5, a PC end, an applet and the like, and is used for responding to the script language of a core layer.
Based on the design, the configuration of the framework projects is compatible through the control console, in the development and debugging process, a researcher only needs to input a unified operation instruction through the control console, and can determine configuration information required by operation of different projects according to an operation environment formed by a front-end construction tool, so that the researcher can operate the projects according to the configuration information, does not need to input different operation instructions according to different frameworks, and adopts a unified mode to develop, so that the difficulty of the developer in the hands is reduced, and the development cost is reduced.
The following will explain each step in detail:
step S10, if an operation instruction input based on a target item is detected, determining whether a command line interface corresponding to the operation instruction exists, wherein the operation instruction is a unified operation instruction, and the command line interface is used for representing an environment required by the operation instruction.
In this embodiment, if the operation device detects an operation instruction input based on a target item, it is first determined whether a command line interface corresponding to the operation instruction exists in the operation device, where the command line interface (smt) is used to characterize an environment required for executing the operation instruction, specifically is used to receive a character triggered by the operation instruction, and call a front end construction tool according to a method corresponding to the character.
It should be noted that, the target item includes a web application, and the running instruction is specifically a unified smt start instruction, that is, an instruction supported by a command line interface (smt).
In addition, whether the current operation equipment has a command line interface is determined, whether the current operation equipment has a specific global environment variable is only required to be determined, specifically, if the operation equipment detects an operation instruction input based on a target item, whether the global environment variable corresponding to the operation instruction exists is determined in a preset catalog, wherein the preset target is a bin root catalog, that is, whether the global environment variable exists in the bin root catalog of the current operation equipment is determined, if the global environment variable exists, the command line interface exists in the current operation equipment, that is, the current operation equipment has the environment condition for executing the operation instruction is determined.
Further, if it is determined that the bin root directory does not have the global environment variable, the command line interface is downloaded and installed based on the preset address, and the global environment variable is configured in the bin root directory, so that whether the current running device has the environment condition for running the method of the embodiment can be determined by checking whether the global environment variable exists in the bin root directory.
Step S20, if yes, determining a compiling frame parameter corresponding to the target item based on the command line interface, where the compiling frame parameter is used to indicate a frame type corresponding to the target item.
In this embodiment, if it is determined that the current running device has a command line interface, compiling frame parameters corresponding to the target item, specifically, configuration information in a project. Config. Js file (project configuration file) under the target item, is determined through the command line interface, and is used to indicate a frame type corresponding to the target item.
Specifically, step S20 includes:
step a1, if the command line interface exists, determining a configuration method corresponding to the command line interface, and determining the configuration position of the target item based on the configuration method;
and a step a2 of reading compiling frame parameters corresponding to the target items based on the configuration positions.
That is, when it is determined that the command line interface exists, the command line interface is called, specifically, a corresponding execution method under the global environment variable is called, and a read operation is performed, so that a configuration position of the target item, such as a project. Config. Js file, is determined, and then the compiling frame parameters of the target item are read in the project. Config. Js file.
Step S30, determining target configuration information of the target item based on the compiling frame parameters.
In this embodiment, the running device determines, according to the compiling frame parameters corresponding to the target items, the target configuration information of the target items, and specifically in an embodiment, the compiling frame parameters corresponding to the target items may be directly used as the target configuration information of the target.
Further, in an embodiment, step S30 includes:
step b1, determining a frame type corresponding to the compiling frame parameter;
in an embodiment, if it is determined that the command line interface exists in the current running system, according to the running instruction, a compiling frame parameter corresponding to the target item is determined, and then, according to the compiling frame parameter, a frame Type corresponding to the target item is determined, that is, a frame Type configuration in a project. Config. Js file under the target item is determined, so that according to the frame Type configuration, a corresponding frame Type is determined, where the frame Type refers to a constraint environment required for running the web application in the target item, and specifically includes a front-end technical frame such as vue, react, that is, which front-end technical frame is determined to run the web application of the target item.
It should be noted that, the target item includes one or more web applications, so when determining the frame type corresponding to the target item, there are multiple frame types, for example, the technical frame corresponding to the application a in the target item is vue, and the technical frame corresponding to the application B in the target item is exact.
And finally, determining target configuration information of the target item according to the frame types, namely, each frame type corresponds to one set of configuration information.
Step b2, if the frame type is a first preset type, reading an internal configuration file corresponding to the target item and an environment variable file corresponding to the first preset type;
in an embodiment, if the current frame type is a first preset type, collecting compiling configuration of the target item, and based on relevant configuration input by a command line interface, and overlaying configuration under the target item through overwriting configuration, wherein the first preset type comprises vue, compact and the like, specifically, when the current frame type is determined to be the first preset type, an internal configuration file corresponding to the target item and an environment variable file corresponding to the first preset type are determined, wherein the internal configuration file is compiling configuration of the target item, and the environment variable file is environment variable configuration written according to the frame type, specifically, an env file.
And b3, determining target configuration information of the target item based on the internal configuration file and the environment variable file.
And then, rewriting the env file, namely, rewriting the env file according to the internal configuration file of the target item and the original configuration content of the env file, so as to obtain a new env file, wherein the new env file is the target configuration information, has higher priority when the target item runs, and can cover the configuration under the target item.
Specifically, in one embodiment, step b3 includes:
step b31, determining configuration information in the internal configuration file and a first configuration item corresponding to the configuration information, and determining variable information in the environment variable file and a second configuration item corresponding to the variable information;
in an embodiment, the running device reads the configuration information in the internal configuration file and the first configuration item corresponding to the configuration information, and then reads the variable information in the environment variable file and the second configuration item corresponding to the variable information, that is, determines the respective configuration conditions of the internal configuration file and the environment variable file.
Step b32, determining target information based on the configuration information, the first configuration item, the variable information and the second configuration item;
and then, determining target information through the determined configuration condition, and specifically, accumulating and combining the configuration information of the first configuration item and the variable information of the second configuration item to obtain the target information.
In one embodiment, step b32 comprises:
comparing the first configuration item with the second configuration item, and determining a target configuration item which is different from the second configuration item in the first configuration item;
that is, in an embodiment, to avoid different configuration situations of the same configuration item, the first configuration item is compared with the second configuration item, and a target configuration item different from the second configuration item in the first configuration item is determined, where the target configuration item is a configuration item that is not included in the second configuration item.
And determining configuration information corresponding to the target configuration item in the configuration information, and determining target information based on the configuration information of the target configuration item and the variable information.
Then, in the configuration information corresponding to the internal configuration file, the configuration information corresponding to the target configuration item is determined, and the configuration information and the variable information of the target configuration item are accumulated and combined, so that the target information is obtained.
And b33, rewriting the environment variable file based on the target information, and determining target configuration information of the target item based on the rewritten environment variable file.
And finally, rewriting the environment variable file according to the target information, particularly rewriting the env file, particularly rewriting the target information in the environment variable file, thereby determining the target configuration information of the target item according to the rewritten environment variable file. It should be noted that, in this embodiment, the environment variable file, that is, the env, has a higher priority than the internal configuration file, and therefore, the target information is selected to be rewritten in the environment variable file instead of the internal configuration file, that is, the running device first obtains the configuration information in the environment variable file.
And step S40, operating the target item based on the target configuration information.
In this embodiment, after the target configuration information of the target item is obtained, the target item may be operated according to the target configuration information, specifically, an operation instruction is determined based on the frame type and the target configuration information, and the target item is operated based on the operation instruction.
And finally, operating the target item according to the configuration information, outputting log information in the operation process, specifically, determining the operation type according to the frame type and the target configuration information, and determining an operation instruction corresponding to the operation type, wherein if the operation type is determined to be started according to the frame type and the target configuration information, the operation instruction is 'npm start', namely a researcher uniformly inputs 'smt start' in a control console until finally becoming 'npm start'. And the running system starts the target item according to the running instruction, records corresponding log information and finally outputs the log information.
And then, the operation equipment can configure the template corresponding to the operation instruction according to the target configuration information, so that a front end frame of the target item is built, and development and debugging can be performed by the research personnel.
That is, after the console detects the operation instruction based on the target item, the operation device determines the target configuration information of the target item and also determines the target template corresponding to the operation instruction, so that the front end framework is built based on the target configuration information and the target template.
In addition, it should be noted that, in the operation device of the present embodiment, a developer may input, in addition to an operation instruction in the console, other instructions meeting specifications, where a specific instruction set includes:
smt Init, which is the initialization of a certain type of item;
smt Create, in order to Create some kind of business assembly;
smt Start, in order to run the project, develop and debug;
smt Build builds the project for compiling, and generates a compiled file;
smt Deploy, which is a release deployment project;
smt Upgrade is an update Upgrade tool or project module;
smt issue, configured to audit internal weback;
smt Check, which is to Check the compiled file;
smt Doc, a description document for use in viewing Smt.
Therefore, in the implementation, when the console detects the instruction, the running device also needs to determine the type of the instruction so as to execute the corresponding operation later, for example, when the instruction is Smt Doc, the running device displays a use instruction document of Smt and the like.
In the embodiment, if an operation instruction input based on a target item is detected, determining whether a command line interface corresponding to the operation instruction exists; if the target item exists, determining a compiling frame parameter corresponding to the target item based on the command line interface; determining target configuration information of the target item based on the compiling framework parameters; and operating the target item based on the target configuration information. The invention is compatible with the configuration of a plurality of frame projects, and in the development and debugging process, configuration information required by the operation of different projects can be determined according to the command line interface by inputting uniform operation instructions, so that the project is operated according to the configuration information, a researcher does not need to input different operation instructions according to different frames, and development is performed in a uniform mode, the difficulty of the user on the hand is reduced, and the convenient operation of the project is realized.
Further, a second embodiment of the project running method of the present invention is proposed based on the first embodiment. The second embodiment of the project run method differs from the first embodiment of the project run method in that the project run method further comprises:
and c, if the frame type is a second preset type, determining built-in compiling configuration corresponding to the running environment, and determining target configuration information of the target item based on the built-in compiling configuration.
The frame type of the embodiment further includes a second preset type, so that in the process of determining the target configuration information, the built-in compiling configuration corresponding to the second preset type is used as the target configuration information, flexibility and intelligence of the operation equipment are improved, and the operation equipment can select proper internal configuration according to different frame types.
Specific:
and c, if the frame type is a second preset type, determining built-in compiling configuration corresponding to the running environment, and determining target configuration information of the target item based on the built-in compiling configuration.
In this embodiment, if the current frame type is the second preset type, a built-in compiling configuration corresponding to the command line interface, that is, a configuration of the current running device, where the built-in compiling configuration is a chained configuration, specifically, may be a chained weback chain configuration, and then, through a weback (packager), objects of the weback chain configuration and objects on which the objects depend are packaged, so as to obtain target configuration information, where the weback chain configuration is not a dead writing configuration, but rather, declarative writing may be performed on the weback, specifically, declarative annotation may be performed on objects in the weback, and in specific implementation, add/delete modification contents of the objects in the weback may be checked through the weback chain configuration.
Further, the project operation method further comprises:
and d, if the frame type is a third preset type, reading an internal configuration file corresponding to the target item, and determining target configuration information of the target item based on the internal configuration file.
In an embodiment, if the current frame type is the third preset type, determining the internal configuration corresponding to the target item, that is, the internal configuration of the current target item, and taking the internal configuration of the target item as the target configuration information.
It should be noted that the second preset Type and the third preset Type may be set according to the configuration required by the actual situation, and are distinguished by the frame Type configuration.
According to the embodiment, corresponding target configuration information is automatically configured according to different frame types, so that different project requirements are met, a researcher can complete the operation of projects with different technical frame requirements only by inputting unified instructions, and the flexibility and the intelligence of operation equipment are improved.
It should be emphasized that, to further ensure the privacy and security of the configuration-related information, the configuration-related information may also be stored in a node of a blockchain.
In addition, the embodiment of the invention also provides a project operation device.
In this embodiment, the project running apparatus includes:
the detection module is used for determining whether a command line interface corresponding to the operation instruction exists or not if the operation instruction input based on the target item is detected, wherein the operation instruction is a unified operation instruction, and the command line interface is used for representing the environment required by the operation instruction;
the first determining module is used for determining compiling frame parameters corresponding to the target items based on the command line interface if the target items exist, wherein the compiling frame parameters are used for indicating frame types corresponding to the target items;
the second determining module is used for determining target configuration information of the target item based on the compiling framework parameters;
and the operation module is used for operating the target item based on the target configuration information.
Optionally, the second determining module is further configured to:
determining the frame type corresponding to the compiling frame parameter;
if the frame type is a first preset type, reading an internal configuration file corresponding to the target item and an environment variable file corresponding to the first preset type;
and determining target configuration information of the target item based on the internal configuration file and the environment variable file.
Optionally, the second determining module is further configured to:
determining configuration information in the internal configuration file and a first configuration item corresponding to the configuration information, and determining variable information in the environment variable file and a second configuration item corresponding to the variable information;
determining target information based on the configuration information, the first configuration item, the variable information and the second configuration item;
and rewriting the environment variable file based on the target information, and determining target configuration information of the target item based on the rewritten environment variable file.
Optionally, the second determining module is further configured to:
comparing the first configuration item with the second configuration item, and determining a target configuration item which is different from the second configuration item in the first configuration item;
and determining configuration information corresponding to the target configuration item in the configuration information, and determining target information based on the configuration information of the target configuration item and the variable information.
Optionally, the second determining module is further configured to:
and if the frame type is a second preset type, determining built-in compiling configuration corresponding to the running environment, and determining target configuration information of the target item based on the built-in compiling configuration.
Optionally, the second determining module is further configured to:
if the frame type is a third preset type, reading an internal configuration file corresponding to the target item, and determining target configuration information of the target item based on the internal configuration file.
Optionally, the first determining module is further configured to:
if yes, determining a configuration method corresponding to the command line interface, and determining the configuration position of the target item based on the configuration method;
and based on the configuration position, reading the compiling frame parameters corresponding to the target item.
The modules and units in the above-mentioned project operation device correspond to the steps in the above-mentioned project operation method embodiment, and the functions and implementation processes thereof are not described in detail herein.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention stores thereon an item execution program which, when executed by a processor, implements the steps of the item execution method as described above.
The method implemented when the project running program is executed may refer to various embodiments of the project running method of the present invention, which are not described herein.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (8)
1. A project operation method, characterized in that the project operation method is applied to a project operation apparatus, the project operation apparatus includes a front-end construction tool, the front-end construction tool is compatible with a plurality of frame types, the project operation method includes the steps of:
if an operation instruction input based on a target item is detected, determining whether a command line interface corresponding to the operation instruction exists, wherein the operation instruction is a unified operation instruction, and the command line interface is used for representing an environment required by the operation instruction;
if the frame type corresponding to the target item exists, determining a compiling frame parameter corresponding to the target item based on the command line interface, wherein the compiling frame parameter is used for indicating the frame type corresponding to the target item;
determining target configuration information of the target item based on the compiling framework parameters;
operating the target item based on the target configuration information;
wherein the step of determining the target configuration information of the target item based on the compiling framework parameters includes:
determining the frame type corresponding to the compiling frame parameter;
if the frame type is a first preset type, reading an internal configuration file corresponding to the target item and an environment variable file corresponding to the first preset type;
determining target configuration information of the target item based on the internal configuration file and the environment variable file;
wherein the step of determining the target configuration information of the target item based on the internal configuration file and the environment variable file comprises:
determining configuration information in the internal configuration file and a first configuration item corresponding to the configuration information, and determining variable information in the environment variable file and a second configuration item corresponding to the variable information;
determining target information based on the configuration information, the first configuration item, the variable information and the second configuration item;
and rewriting the environment variable file based on the target information, and determining target configuration information of the target item based on the rewritten environment variable file.
2. The project running method according to claim 1, wherein the step of determining target information based on the configuration information, the first configuration item, the variable information, and the second configuration item includes:
comparing the first configuration item with the second configuration item, and determining a target configuration item which is different from the second configuration item in the first configuration item;
and determining configuration information corresponding to the target configuration item in the configuration information, and determining target information based on the configuration information of the target configuration item and the variable information.
3. The project operation method according to claim 1, wherein after the step of determining the frame type corresponding to the compiling frame parameter, the project operation method further comprises:
if the frame type is the second preset type, determining built-in compiling configuration corresponding to the running environment, and determining target configuration information of the target item based on the built-in compiling configuration.
4. The project operation method according to claim 1, wherein after the step of determining the frame type corresponding to the compiling frame parameter, the project operation method further comprises:
if the frame type is a third preset type, reading an internal configuration file corresponding to the target item, and determining target configuration information of the target item based on the internal configuration file.
5. The method of claim 1 to 4, wherein the step of determining, based on the command line interface, a compilation framework parameter corresponding to the target item, if any, comprises:
if yes, determining a configuration method corresponding to the command line interface, and determining the configuration position of the target item based on the configuration method;
and based on the configuration position, reading the compiling frame parameters corresponding to the target item.
6. A project operation apparatus, characterized in that the project operation apparatus comprises:
the detection module is used for determining whether a command line interface corresponding to the operation instruction exists or not if the operation instruction input based on the target item is detected, wherein the operation instruction is a unified operation instruction, and the command line interface is used for representing the environment required by the operation instruction;
the first determining module is used for determining compiling frame parameters corresponding to the target items based on the command line interface if the target items exist, wherein the compiling frame parameters are used for indicating frame types corresponding to the target items;
the second determining module is used for determining target configuration information of the target item based on the compiling framework parameters;
the operation module is used for operating the target item based on the target configuration information;
the second determining module is further configured to determine a frame type corresponding to the compiled frame parameter; if the frame type is a first preset type, reading an internal configuration file corresponding to the target item and an environment variable file corresponding to the first preset type; determining target configuration information of the target item based on the internal configuration file and the environment variable file;
the second determining module is further configured to determine configuration information in the internal configuration file and a first configuration item corresponding to the configuration information, and determine variable information in the environment variable file and a second configuration item corresponding to the variable information; determining target information based on the configuration information, the first configuration item, the variable information and the second configuration item; and rewriting the environment variable file based on the target information, and determining target configuration information of the target item based on the rewritten environment variable file.
7. A project execution device comprising a processor, a memory, and a project execution program stored on the memory and executable by the processor, wherein the project execution program when executed by the processor implements the steps of the project execution method of any one of claims 1 to 5.
8. A computer readable storage medium, wherein a program of item execution is stored on the computer readable storage medium, wherein the program of item execution, when executed by a processor, implements the steps of the method of item execution as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010920033.3A CN111966355B (en) | 2020-09-03 | 2020-09-03 | Project operation method, device, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010920033.3A CN111966355B (en) | 2020-09-03 | 2020-09-03 | Project operation method, device, equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111966355A CN111966355A (en) | 2020-11-20 |
CN111966355B true CN111966355B (en) | 2023-12-12 |
Family
ID=73392015
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010920033.3A Active CN111966355B (en) | 2020-09-03 | 2020-09-03 | Project operation method, device, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111966355B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107479870A (en) * | 2017-06-28 | 2017-12-15 | 北京五八信息技术有限公司 | A kind of third party's class libraries call method, device, mobile terminal and storage medium |
CN108762805A (en) * | 2018-05-07 | 2018-11-06 | 武汉斗鱼网络科技有限公司 | A kind of Hybrid Development Frameworks and frame design method based on Cordova and Typescript |
CN109445835A (en) * | 2018-09-03 | 2019-03-08 | 平安普惠企业管理有限公司 | Method, terminal device and the computer readable storage medium of building project frame |
CN109814854A (en) * | 2019-01-24 | 2019-05-28 | 平安科技(深圳)有限公司 | Project skeleton generating method, device, computer equipment and storage medium |
CN110058863A (en) * | 2019-03-16 | 2019-07-26 | 平安城市建设科技(深圳)有限公司 | Construction method, device, equipment and the storage medium of Docker container |
CN110286885A (en) * | 2019-06-27 | 2019-09-27 | 江苏满运软件科技有限公司 | Automate initial development method, system, computer equipment and storage medium |
CN110347376A (en) * | 2019-06-27 | 2019-10-18 | 无线生活(杭州)信息科技有限公司 | Project development method and device |
CN110647320A (en) * | 2019-08-14 | 2020-01-03 | 平安普惠企业管理有限公司 | Project framework construction method and device, computer equipment and storage medium |
CN111459465A (en) * | 2020-03-27 | 2020-07-28 | 北京五八信息技术有限公司 | Method and device for generating Flutter engineering file |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160366481A1 (en) * | 2015-06-12 | 2016-12-15 | Samsung Electronics Co., Ltd. | Method and apparatus for service oriented input and output |
-
2020
- 2020-09-03 CN CN202010920033.3A patent/CN111966355B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107479870A (en) * | 2017-06-28 | 2017-12-15 | 北京五八信息技术有限公司 | A kind of third party's class libraries call method, device, mobile terminal and storage medium |
CN108762805A (en) * | 2018-05-07 | 2018-11-06 | 武汉斗鱼网络科技有限公司 | A kind of Hybrid Development Frameworks and frame design method based on Cordova and Typescript |
CN109445835A (en) * | 2018-09-03 | 2019-03-08 | 平安普惠企业管理有限公司 | Method, terminal device and the computer readable storage medium of building project frame |
CN109814854A (en) * | 2019-01-24 | 2019-05-28 | 平安科技(深圳)有限公司 | Project skeleton generating method, device, computer equipment and storage medium |
CN110058863A (en) * | 2019-03-16 | 2019-07-26 | 平安城市建设科技(深圳)有限公司 | Construction method, device, equipment and the storage medium of Docker container |
CN110286885A (en) * | 2019-06-27 | 2019-09-27 | 江苏满运软件科技有限公司 | Automate initial development method, system, computer equipment and storage medium |
CN110347376A (en) * | 2019-06-27 | 2019-10-18 | 无线生活(杭州)信息科技有限公司 | Project development method and device |
CN110647320A (en) * | 2019-08-14 | 2020-01-03 | 平安普惠企业管理有限公司 | Project framework construction method and device, computer equipment and storage medium |
CN111459465A (en) * | 2020-03-27 | 2020-07-28 | 北京五八信息技术有限公司 | Method and device for generating Flutter engineering file |
Non-Patent Citations (3)
Title |
---|
Test them all, is it worth it? Assessing configuration sampling on the JHipster Web development stack;Axel Halin 等;《Empirical Software Engineering》;674–717 * |
基于BIM技术的农地整治项目协同运行框架;徐雯;《江西农业学报》;第31卷(第1期);106-110 * |
基于云计算的Web管理平台的设计与实现;孙树娟;《中国优秀硕士学位论文全文数据库 信息科技辑》(第11期);I139-204 * |
Also Published As
Publication number | Publication date |
---|---|
CN111966355A (en) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105718289B (en) | Component relation establishing method and equipment | |
US11389960B2 (en) | Systems and methods for robotic process automation | |
CN105022630B (en) | A kind of assembly management system and assembly management method | |
CN112416327A (en) | Project construction method and device, computer equipment and storage medium | |
CN111475390A (en) | Log collection system deployment method, device, equipment and storage medium | |
CN112114890A (en) | Method, device and equipment for processing small program and storage medium | |
CN111723002A (en) | Code debugging method and device, electronic equipment and storage medium | |
CN112965721B (en) | Project compiling method and device based on Android, computer equipment and storage medium | |
CN114996619A (en) | Page display method and device, computer equipment and storage medium | |
CN108287720B (en) | Software compiling method, device, equipment and storage medium | |
US9715372B2 (en) | Executable guidance experiences based on implicitly generated guidance models | |
US20160004782A1 (en) | Script caching method and information processing device utilizing the same | |
CN111159301A (en) | Data creating method, device, equipment and storage medium based on intelligent contract | |
CN115686606A (en) | Method, device, system and medium for displaying item dependency tree | |
CN114895935A (en) | Method and device for flashing vehicle ECU, electronic equipment and storage medium | |
CN112631915B (en) | Method, system, device and medium for PCIE device software simulation | |
US10606569B2 (en) | Declarative configuration elements | |
CN110096304A (en) | Task construction method, device, equipment and storage medium based on Jenkins | |
CN111966355B (en) | Project operation method, device, equipment and computer storage medium | |
CN113535175A (en) | Application program front-end code generation method and device, electronic equipment and medium | |
CN110764745B (en) | Variable transmission and collection method, device and computer readable storage medium | |
CN114816418A (en) | Method, device, equipment and medium for building embedded operating system | |
WO2023128793A1 (en) | System and method for dynamically visualizing software elements | |
CN118259922B (en) | Compiling method, compiling device, compiling product, compiling device, compiling equipment and compiling medium for application program | |
CN116302847B (en) | Dynamic acquisition method and device of abnormal information, computer equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210129 Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Applicant after: Shenzhen saiante Technology Service Co.,Ltd. Address before: 1-34 / F, Qianhai free trade building, 3048 Xinghai Avenue, Mawan, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong 518000 Applicant before: Ping An International Smart City Technology Co.,Ltd. |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |