CN111897548B - Front-end resource issuing method and device, electronic equipment and computer storage medium - Google Patents
Front-end resource issuing method and device, electronic equipment and computer storage medium Download PDFInfo
- Publication number
- CN111897548B CN111897548B CN202010733982.0A CN202010733982A CN111897548B CN 111897548 B CN111897548 B CN 111897548B CN 202010733982 A CN202010733982 A CN 202010733982A CN 111897548 B CN111897548 B CN 111897548B
- Authority
- CN
- China
- Prior art keywords
- resource
- target
- script
- target task
- task
- 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 45
- 238000013515 script Methods 0.000 claims abstract description 143
- 238000010276 construction Methods 0.000 claims abstract description 49
- 230000006835 compression Effects 0.000 claims abstract description 43
- 238000007906 compression Methods 0.000 claims abstract description 43
- 238000004806 packaging method and process Methods 0.000 claims abstract description 19
- 238000004458 analytical method Methods 0.000 claims description 59
- 238000009434 installation Methods 0.000 claims description 42
- 230000001419 dependent effect Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 7
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000011161 development Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 15
- 238000012545 processing Methods 0.000 description 10
- 238000007726 management method Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 230000005856 abnormality Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000013480 data collection Methods 0.000 description 4
- 238000000605 extraction Methods 0.000 description 4
- 238000012795 verification Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013527 convolutional neural network Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 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
- 230000000007 visual 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/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- 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
- G06F8/44—Encoding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Bioethics (AREA)
- Evolutionary Computation (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to development assistance technology, and discloses a front-end resource release method, which comprises the following steps: node services and dependency items are installed in a pre-constructed original platform, and a standard platform is obtained; acquiring a front-end project component and a resource file, and packaging the front-end project component and the resource file to obtain target construction content; acquiring a preset target flow file, and constructing a target task according to the target flow file and target construction content; configuring a dynamic script according to a target task, and integrating the target task into a resource compression package to be distributed through the dynamic script; inputting the target task into the standard platform configuration, and configuring the git address of the target task based on the standard platform; and utilizing the git address to carry out resource release on the resource compression packet. In addition, the present invention also relates to blockchain technology, and user requirements/target tasks can be stored in blockchain nodes. The invention can reduce the error rate of configuration when the front-end resource is released and improve the release efficiency.
Description
Technical Field
The present invention relates to the field of development assistance technologies, and in particular, to a method and apparatus for publishing front-end resources, an electronic device, and a computer readable storage medium.
Background
Along with the diversity of user demands, the resources required by the front-end of the user end are also diversified and complicated, so that how to efficiently issue the front-end resources with low error rate according to the user demands by front-end developers becomes an important point of people.
At present, most of the existing front-end resource release methods are manually configured when front-end resources are released, but in the method, configuration errors may occur due to manual configuration of developers, so that release is unsuccessful.
Disclosure of Invention
The invention provides a front-end resource release method, a front-end resource release device, electronic equipment and a computer readable storage medium, and mainly aims to reduce the error rate of configuration during front-end resource release and improve release efficiency.
In order to achieve the above object, the present invention provides a method for publishing front-end resources, including:
Acquiring an installation script, and installing node services and dependent items in a pre-constructed original platform by using the installation script to obtain a standard platform;
acquiring user demands, performing task analysis on the user demands, acquiring front-end project components and resource files according to analysis results, and packaging the front-end project components and the resource files to obtain target construction contents;
acquiring a preset target flow file, and constructing a target task according to the target flow file and the target construction content;
configuring a dynamic script according to the target task, and integrating the target task into a resource compression package to be distributed through the dynamic script;
inputting the target task to the standard platform, and configuring a git address of the target task based on the standard platform;
and utilizing the git address to carry out resource release on the resource compression packet in the standard platform.
Optionally, the installing node service and the dependent item in the pre-built original platform by using the installation script to obtain a standard platform includes:
initializing plug-in configuration of the installation script in the original platform based on a command line tool of nodeJS;
loading a plug-in task for the initialized plug-in configuration by using the installation script, wherein the plug-in task is used for installing the node service and the dependent item;
Generating a basic code for constructing the plug-in task for the plug-in task;
and compiling the basic code by utilizing a compiler in the original platform to obtain the standard platform.
Optionally, the constructing the target task according to the target flow file and the target construction content includes:
acquiring a starting parameter of a container Docker in the target flow file;
extracting code compiling instructions of the target construction content from the starting parameters;
running the code compiling instruction, wherein the code compiling instruction is used for compiling codes of the target construction content and generating compiling results;
and compiling results obtained by running the code compiling instructions are collected into the target task.
Optionally, the configuring the dynamic scenario according to the target task includes:
receiving dynamic scripts input by a user;
and acquiring a data structure of the target task, and configuring the operation parameters of the dynamic scenario according to the data structure.
Optionally, configuring the git address of the target task based on the standard platform includes:
packaging the target task by utilizing a packaging command of the standard platform;
generating a git address by using a preset network address frame;
Judging whether the git address is legal or not;
and if the git address is legal, establishing connection between the packed target task and the git address.
Optionally, the integrating the target task into a resource compression package to be published through the dynamic scenario includes:
updating the timestamp of the target task through a timestamp updating script in the dynamic script;
compressing the target task through a compressed resource file script in the dynamic script;
deploying different environments for the compressed target task through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogs;
and distributing the compressed target task to the differential resource catalog through a combined resource file script in the dynamic script to obtain the resource compression package to be distributed.
In order to solve the above problems, the present invention further provides a front-end resource publishing device, which includes:
the platform construction module is used for acquiring an installation script, and installing node services and dependent items in a pre-constructed original platform by utilizing the installation script to obtain a standard platform;
the target content acquisition module is used for acquiring user demands, carrying out task analysis on the user demands, acquiring front-end project components and resource files according to analysis results, and packaging the front-end project components and the resource files to obtain target construction content;
The target task construction module is used for acquiring a preset target flow file and constructing a target task according to the target flow file and the target construction content;
the dynamic script configuration module is used for configuring a dynamic script according to the target task, and integrating the target task into a resource compression package to be distributed through the dynamic script;
the address configuration module is used for inputting the target task to the standard platform and configuring the git address of the target task based on the standard platform;
and the resource release module is used for releasing the resources in the standard platform by utilizing the git address and compressing the resources.
Optionally, the dynamic scenario configuration module is specifically configured to:
updating the timestamp of the target task through a timestamp updating script in the dynamic script;
compressing the target task through a compressed resource file script in the dynamic script;
deploying different environments for the compressed target task through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogs;
and distributing the compressed target task to the differential resource catalog through a combined resource file script in the dynamic script to obtain the resource compression package to be distributed.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
a memory storing at least one instruction; and
And the processor executes the instructions stored in the memory to realize the front-end resource release method according to any one of the above.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium including a storage data area in which created data is stored and a storage program area in which a computer program is stored; wherein the computer program, when executed by a processor, implements the front-end resource publishing method as claimed in any one of the above.
According to the embodiment of the invention, task analysis is carried out on the user demands, so that corresponding front-end project components and resource files are selected according to the user demands, and the published front-end resources are ensured to meet the user demands; the dynamic script is configured, and the dynamic script is utilized to automatically configure files and the like released under different environments for the target task, so that the accurate and low-error-rate configuration is realized; and configuring the git address, and packaging and publishing a plurality of resource compression packets by utilizing the git address, so that the publishing efficiency is improved. Therefore, the front-end resource release method, the front-end resource release device and the computer readable storage medium can achieve the purposes of reducing the error rate of configuration during front-end resource release and improving release efficiency.
Drawings
FIG. 1 is a flowchart of a front end resource publishing method according to an embodiment of the present application;
FIG. 2 is a schematic block diagram of a front-end resource publishing device according to an embodiment of the present application;
fig. 3 is a schematic diagram of an internal structure of an electronic device for implementing a front-end resource publishing method according to an embodiment of the present application;
the achievement of the objects, functional features and advantages of the present application 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 application.
The execution body of the front-end resource publishing method provided by the embodiment of the application comprises at least one of a server, a terminal and the like which can be configured to execute the method provided by the embodiment of the application. In other words, the front-end resource publishing method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
The application provides a front-end resource release method. Referring to fig. 1, a flow chart of a front-end resource publishing method according to an embodiment of the present application is shown. In this embodiment, the front-end resource publishing method includes:
S1, acquiring an installation script, and installing node services and dependent items in a pre-constructed original platform by using the installation script to obtain a standard platform.
In the embodiment of the invention, the original platform is a configurable continuous integrated platform.
In the embodiment of the invention, the installation script is an installation script for installing the node service, the installation script comprises various plug-in configurations for installing the node service, the installation of the node service on the original platform can be realized by using the installation script, and the node service is a server program for constructing a server capable of publishing front-end resources.
Preferably, in the embodiment of the present invention, the installation script is specifically a group tool, where the group tool includes, but is not limited to, a group-transport-pas module, a group-cmd-confat module, and a group-confb-uglify module, and the group tool is a set of front-end automation construction tools based on a nodeJs command line, which is a task runner with rich and powerful plug-in functions.
Preferably, the installing node service and the dependent item in the pre-built original platform by using the installation script to obtain a standard platform includes:
Initializing plug-in configuration of the installation script in the original platform based on a command line tool of nodeJS;
loading a plug-in task for the initialized plug-in configuration by using the installation script, wherein the plug-in task is used for installing the node service and the dependent item;
generating a basic code for constructing the plug-in task for the plug-in task;
and compiling the basic code by utilizing a compiler in the original platform to obtain the standard platform.
After node service and dependency are installed in the original platform, the standard platform is obtained, and can be used for integrating, compressing, configuring the release address of the front-end resource and the like.
In an alternative embodiment of the invention, a plug-in task is loaded to the initialized plug-in configuration by using java sentences, and a basic code for constructing the plug-in task is generated to the plug-in task.
The plug-in loading task specifically loads a corresponding module in the group tool through the installation script.
S2, acquiring user requirements, performing task analysis on the user requirements, acquiring front-end project components and resource files according to analysis results, and packaging the front-end project components and the resource files to obtain target construction content.
In the preferred embodiment of the invention, the user requirements can be obtained from the blockchain node, and the blockchain node has a corresponding relation with the user, namely, the data of the user is correspondingly stored in the blockchain node. Through storing the user demand into the blockchain instead of the common database, the data safety and tamper resistance of the blockchain can be effectively utilized, the safety of the user demand is further improved, the user demand is ensured not to be tampered, and meanwhile, the extraction of a large amount of user demands can be rapidly completed according to the high throughput advantage of the blockchain.
In detail, the task analysis on the user demand includes:
a. preliminary analysis, namely extracting a user target contained in the user demand;
b. analyzing interface elements which need to be controlled when the user target is executed;
c. extension analysis, which is to analyze interference factors that may affect when the user target is executed, such as sudden network interruption, etc.;
d. abnormality analysis, which operations need to be performed to eliminate the interference factors, such as what operations are used to solve the abnormality when the interference factors are present.
Preferably, when performing preliminary analysis, a convolutional neural network with a feature extraction function is used to extract keywords in the user demand, and a user target is determined according to the extracted keywords, wherein the user target refers to a purpose that the user needs to achieve, such as a front-end resource that the user needs to issue.
Preferably, when performing specific layer analysis, the embodiment of the invention compiles the user target obtained in the preliminary analysis into a target sentence by using a preset compiler, analyzes the target sentence by using an analyzer, and obtains interface elements such as various clickable buttons, window shapes, window sizes and the like in an interface which need to be controlled when executing the user target through analysis.
Preferably, when performing extension analysis, the embodiment of the invention captures a task log generated when a target task is executed in a past period of time through a python statement, searches historical error reporting information in the task log, and gathers the searched historical error reporting information as interference factors, wherein the historical error reporting information comprises error reporting information such as network interruption, data loss, memory overflow and the like.
Preferably, in performing exception analysis, the embodiment of the present invention determines operations to be performed when error reporting information (i.e., interference factors) occurs in the task log by collecting corresponding patch logs in the task log through a python statement, for example, when a situation of data loss may occur, the embodiment of the present invention may backup data through a preset network cache, so as to recover lost data in time when data loss occurs.
After the task analysis, the embodiment of the invention can determine which front-end project components and resource files are needed according to the task analysis result, and further acquire the corresponding front-end project components and resource files from a database for storing the front-end project components and resource files.
Specifically, after the analysis of the steps a and b is completed, the front-end project component corresponding to the user requirement can be obtained from a pre-built database for storing the front-end project component according to the user target contained in the analysis result and the interface element to be controlled when the user target is executed, wherein the front-end project component comprises a front-end resource code, a construction command and a related component executed by the front-end resource code.
After the d and e two-step analysis is completed, the resource file can be obtained from a pre-constructed database for storing the resource file according to the interference factors contained in the analysis result and the operation required to be executed for solving the interference factors, wherein the resource file comprises a target task, js file and pictures. For example, after analysis, information of reporting errors that may occur in data loss is obtained, and a resource file with a resource backup function is obtained from the database, so that data generated in each step can be backed up in the subsequent operation, and lost data can be recovered in time when data avoidance occurs.
Preferably, in the embodiment of the present invention, after the front-end project component and the resource file are acquired, the front-end project component and the resource file are packaged by using weback, so as to obtain the target building content.
In the embodiment of the invention, the resources can be efficiently packaged through the Webpack.
S3, acquiring a preset target flow file, and constructing a target task according to the target flow file and the target construction content.
In detail, the target flow file is a target flow file customized by a user, and the target flow file includes a flow of task construction by the standard platform, where the flow of task construction includes but is not limited to: user-defined task construction flows, such as a new flow, a change flow and a delete flow.
Specifically, the constructing the target task according to the target flow file and the target construction content includes:
acquiring a starting parameter of a container Docker in the target flow file;
extracting code compiling instructions of the target construction content from the starting parameters;
running the code compiling instruction, wherein the code compiling instruction is used for compiling codes of the target construction content and generating compiling results;
And compiling results obtained by running the code compiling instructions are collected into the target task.
In this embodiment, the starting parameters of the container include: code download addresses, code compiling instructions, dockerfile file information and the like required by Docker are generated. Therefore, the code compiling instruction for determining the target building content required by the generation of the Docker can be directly extracted from the starting parameters. The starting parameters of the container are pre-configured, and can be flexibly configured according to different user requirements.
S4, configuring a dynamic script according to the target task, and integrating the target task into a resource compression package to be distributed through the dynamic script.
Preferably, the dynamic scenario includes, but is not limited to: timestamp replacement script, fat/uat/prd environmental difference deployment script, merge resource file script, compress resource file script.
Specifically, the timestamp replacement script is used for updating the timestamp in the target task, so that the problem that the target task cannot be updated due to the fact that the timestamp is identical to the historical version when the target task needs to be updated is prevented; the fat/uat/prd environment difference deployment script can be used for deploying files required when resources are released in different environments, so that when the subsequent resources are released in different environments, the related files do not need to be redeployed; the combined resource file script and the compressed resource file script can combine and compress the resource files so as to reduce the volume of the resource files, save the occupation of storage space and improve the efficiency during release.
Preferably, the configuring the dynamic scenario according to the target task includes:
receiving dynamic scripts input by a user;
and acquiring a data structure of the target task, and configuring the operation parameters of the dynamic scenario according to the data structure.
Preferably, in another embodiment of the present invention, the integrating, by the dynamic scenario, the target task into a resource compression package to be published includes:
updating the timestamp of the target task through a timestamp updating script in the dynamic script;
compressing the target task through a compressed resource file script in the dynamic script;
deploying different environments for the compressed target task through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogs;
and distributing the compressed target task to the differential resource catalog through a combined resource file script in the dynamic script to obtain the resource compression package to be distributed.
In this embodiment, the timestamp of the target task is updated by executing the timestamp replacement script. And the time stamp of the target task is updated to the current time, so that the release environment takes the target task as a new resource to be reloaded, and the released front-end resource is ensured to be kept in the latest state.
Further, the compressing the target task through the compressed resource file script in the dynamic script includes:
compressing the image in the target task through the compression resource file script in the dynamic script, comprising:
acquiring an image and an image type in the target task to obtain an image data set;
classifying the images in the image data set according to the image types to obtain a classified image set;
and carrying out image compression on the classified image sets to obtain a plurality of compressed image sets with different categories.
Wherein the image types include, but are not limited to, gif images and jpg images.
In this embodiment, classifying the images in the image dataset may increase the efficiency of subsequent processing. In a preferred embodiment of the present invention, after the categorized image set is obtained, the method further includes: and generating a compressed catalog according to the image types, and storing the images in the classified image sets in the catalog of the corresponding type, so that the operations such as checking, calling and the like are convenient.
Preferably, the method according to the embodiment of the present invention further includes: and automatically collecting logs generated in the process that the target task is integrated into the resource compression package to be distributed.
The embodiment can realize the monitoring of the process of integrating the whole target task into the resource compression package to be distributed by carrying out log acquisition.
In detail, the embodiment of the invention adopts a routing protocol of a data processing pipeline (such as logstack) to collect data from the log.
The data processing pipeline is an open source data collection engine with pipeline conveying capability, and can efficiently collect data from scattered data sources, so that the data collection efficiency of the log is improved.
Further, the method of the embodiment of the invention further comprises the following steps: in the process of executing the target task to be integrated into a resource compression package to be distributed, storing an execution result of each step, wherein the storing of the execution result comprises the following steps:
mirror image copying is carried out on the execution result to obtain a mirror image execution result;
storing the execution result to a local end where a pre-established hypothesis database is located, and storing the mirror image execution result to a remote end where a server of the hypothesis database is located.
If the execution result is copied to a copy to obtain a mirror image execution result, the execution result is stored in an assumed database, a remote server of the database is found through an addressing method, the mirror image execution result is stored in the remote server of the database, and the remote server of the database is called a remote terminal.
In this embodiment, when an exception occurs in any one step of result, the execution result of the previous step may be directly called from the local end and/or the remote end to continue execution, so as to avoid data loss. Therefore, the problem of re-execution or re-execution due to the occurrence of an abnormality can be avoided.
S5, inputting the target task to the standard platform, and configuring the git address of the target task based on the standard platform.
Preferably, the configuring the git address of the target task based on the standard platform includes:
packaging the target task by utilizing a packaging command of the standard platform;
generating a git address by using a preset network address frame;
judging whether the git address is legal or not;
and if the git address is legal, establishing connection between the packed target task and the git address.
Preferably, the git is version management software, and version management is performed by storing data of different versions in a git address conforming to a git protocol, wherein the git protocol is a protocol for batch transmission of data in a network, and the data stored in the git address can be packaged and downloaded in batches through the git protocol, so that the efficiency of publishing front-end resources is improved.
In the embodiment of the invention, the git address can be automatically generated by using mybatis, which is a network address framework and can be used for generating a network address, and the packed target task is connected with a legal git address, so that the target task can be acquired according to the git address later.
Optionally, in the embodiment of the present invention, a search verification method is used to verify validity of the git address, so as to prevent the generated git address from being unavailable. The retrieval verification method specifically comprises the following steps: analyzing the git address, acquiring the content and the structure of the git address through analysis, judging whether the content and the structure of the acquired git address accord with a standard git protocol, if the analysis result accords with the standard git protocol, determining that the git address is legal, and if the analysis result does not accord with the standard git protocol, determining that the git address is illegal.
S6, utilizing the git address to carry out resource release on the resource compression packet in the standard platform.
In the embodiment of the invention, the git address is input to the standard platform, and the standard platform calls the resource compression package by using the git address, so as to issue the resource compression package.
According to the embodiment of the invention, task analysis is carried out on the user demands, so that corresponding front-end project components and resource files are selected according to the user demands, and the published front-end resources are ensured to meet the user demands; the dynamic script is configured, and the dynamic script is utilized to automatically configure files and the like released under different environments for the target task, so that the accurate and low-error-rate configuration is realized; and configuring the git address, and packaging and publishing a plurality of resource compression packets by utilizing the git address, so that the publishing efficiency is improved. Therefore, the invention can realize the purposes of reducing the error rate of configuration when the front-end resource is released and improving the release efficiency.
Fig. 2 is a schematic block diagram of a front-end resource issuing device according to the present invention.
The front-end resource issuing device 100 of the present invention may be installed in an electronic apparatus. The front-end resource publishing device may include a platform construction module 101, a target content acquisition module 102, a target task construction module 103, a dynamic scenario configuration module 104, an address configuration module 105, and a resource publishing module 106, depending on the functions implemented. The module of the present invention may also be referred to as a unit, meaning a series of computer program segments capable of being executed by the processor of the electronic device and of performing fixed functions, stored in the memory of the electronic device.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the platform construction module is used for acquiring an installation script, and installing node services and dependent items in a pre-constructed original platform by utilizing the installation script to obtain a standard platform;
the target content acquisition module is used for acquiring user demands, carrying out task analysis on the user demands, acquiring front-end project components and resource files according to analysis results, and packaging the front-end project components and the resource files to obtain target construction content;
the target task construction module is used for acquiring a preset target flow file and constructing a target task according to the target flow file and the target construction content;
the dynamic script configuration module is used for configuring a dynamic script according to the target task, and integrating the target task into a resource compression package to be distributed through the dynamic script;
the address configuration module is used for inputting the target task to the standard platform and configuring the git address of the target task based on the standard platform;
and the resource release module is used for releasing the resources in the standard platform by utilizing the git address and compressing the resources.
In the present embodiment, specific functions concerning each module/unit of the front-end resource issuing apparatus are as follows:
the platform construction module 101 is configured to obtain an installation script, and install node services and dependency items in a pre-constructed original platform by using the installation script to obtain a standard platform.
In the embodiment of the invention, the original platform is a configurable continuous integrated platform.
In the embodiment of the invention, the installation script is an installation script for installing the node service, the installation script comprises various plug-in configurations for installing the node service, the installation of the node service on the original platform can be realized by using the installation script, and the node service is a server program for constructing a server capable of publishing front-end resources.
Preferably, in the embodiment of the present invention, the installation script is specifically a group tool, where the group tool includes, but is not limited to, a group-transport-pas module, a group-cmd-confat module, and a group-confb-uglify module, and the group tool is a set of front-end automation construction tools based on a nodeJs command line, which is a task runner with rich and powerful plug-in functions.
Preferably, the installing node service and the dependent item in the pre-built original platform by using the installation script to obtain a standard platform includes:
initializing plug-in configuration of the installation script in the original platform based on a command line tool of nodeJS;
loading a plug-in task for the initialized plug-in configuration by using the installation script, wherein the plug-in task is used for installing the node service and the dependent item;
generating a basic code for constructing the plug-in task for the plug-in task;
and compiling the basic code by utilizing a compiler in the original platform to obtain the standard platform.
After node service and dependency are installed in the original platform, the standard platform is obtained, and can be used for integrating, compressing, configuring the release address of the front-end resource and the like.
In an alternative embodiment of the invention, a plug-in task is loaded to the initialized plug-in configuration by using java sentences, and a basic code for constructing the plug-in task is generated to the plug-in task.
The plug-in loading task specifically loads a corresponding module in the group tool through the installation script.
The target content obtaining module 102 is configured to obtain a user requirement, perform task analysis on the user requirement, obtain a front-end project component and a resource file according to an analysis result, and package the front-end project component and the resource file to obtain target construction content.
In the preferred embodiment of the invention, the user requirements can be obtained from the blockchain node, and the blockchain node has a corresponding relation with the user, namely, the data of the user is correspondingly stored in the blockchain node. Through storing the user demand into the blockchain instead of the common database, the data safety and tamper resistance of the blockchain can be effectively utilized, the safety of the user demand is further improved, the user demand is ensured not to be tampered, and meanwhile, the extraction of a large amount of user demands can be rapidly completed according to the high throughput advantage of the blockchain.
In detail, the task analysis on the user demand includes:
a. preliminary analysis, namely extracting a user target contained in the user demand;
b. analyzing interface elements which need to be controlled when the user target is executed;
c. extension analysis, which is to analyze interference factors that may affect when the user target is executed, such as sudden network interruption, etc.;
d. abnormality analysis, which operations need to be performed to eliminate the interference factors, such as what operations are used to solve the abnormality when the interference factors are present.
Preferably, when performing preliminary analysis, a convolutional neural network with a feature extraction function is used to extract keywords in the user demand, and a user target is determined according to the extracted keywords, wherein the user target refers to a purpose that the user needs to achieve, such as a front-end resource that the user needs to issue.
Preferably, when performing specific layer analysis, the embodiment of the invention compiles the user target obtained in the preliminary analysis into a target sentence by using a preset compiler, analyzes the target sentence by using an analyzer, and obtains interface elements such as various clickable buttons, window shapes, window sizes and the like in an interface which need to be controlled when executing the user target through analysis.
Preferably, when performing extension analysis, the embodiment of the invention captures a task log generated when a target task is executed in a past period of time through a python statement, searches historical error reporting information in the task log, and gathers the searched historical error reporting information as interference factors, wherein the historical error reporting information comprises error reporting information such as network interruption, data loss, memory overflow and the like.
Preferably, in performing exception analysis, the embodiment of the present invention determines operations to be performed when error reporting information (i.e., interference factors) occurs in the task log by collecting corresponding patch logs in the task log through a python statement, for example, when a situation of data loss may occur, the embodiment of the present invention may backup data through a preset network cache, so as to recover lost data in time when data loss occurs.
After the task analysis, the embodiment of the invention can determine which front-end project components and resource files are needed according to the task analysis result, and further acquire the corresponding front-end project components and resource files from a database for storing the front-end project components and resource files.
Specifically, after the analysis of the steps a and b is completed, the front-end project component corresponding to the user requirement can be obtained from a pre-built database for storing the front-end project component according to the user target contained in the analysis result and the interface element to be controlled when the user target is executed, wherein the front-end project component comprises a front-end resource code, a construction command and a related component executed by the front-end resource code.
After the d and e two-step analysis is completed, the resource file can be obtained from a pre-constructed database for storing the resource file according to the interference factors contained in the analysis result and the operation required to be executed for solving the interference factors, wherein the resource file comprises a target task, js file and pictures. For example, after analysis, information of reporting errors that may occur in data loss is obtained, and a resource file with a resource backup function is obtained from the database, so that data generated in each step can be backed up in the subsequent operation, and lost data can be recovered in time when data avoidance occurs.
Preferably, in the embodiment of the present invention, after the front-end project component and the resource file are acquired, the front-end project component and the resource file are packaged by using weback, so as to obtain the target building content.
In the embodiment of the invention, the resources can be efficiently packaged through the Webpack.
The target task construction module 103 is configured to obtain a preset target flow file, and construct a target task according to the target flow file and the target construction content.
In detail, the target flow file is a target flow file customized by a user, and the target flow file includes a flow of task construction by the standard platform, where the flow of task construction includes but is not limited to: user-defined task construction flows, such as a new flow, a change flow and a delete flow.
Specifically, the constructing the target task according to the target flow file and the target construction content includes:
acquiring a starting parameter of a container Docker in the target flow file;
extracting code compiling instructions of the target construction content from the starting parameters;
running the code compiling instruction, wherein the code compiling instruction is used for compiling codes of the target construction content and generating compiling results;
And compiling results obtained by running the code compiling instructions are collected into the target task.
In this embodiment, the starting parameters of the container include: code download addresses, code compiling instructions, dockerfile file information and the like required by Docker are generated. Therefore, the code compiling instruction for determining the target building content required by the generation of the Docker can be directly extracted from the starting parameters. The starting parameters of the container are pre-configured, and can be flexibly configured according to different user requirements.
The dynamic scenario configuration module 104 is configured to configure a dynamic scenario according to the target task, and integrate the target task into a resource compression package to be distributed through the dynamic scenario.
Preferably, the dynamic scenario includes, but is not limited to: timestamp replacement script, fat/uat/prd environmental difference deployment script, merge resource file script, compress resource file script.
Specifically, the timestamp replacement script is used for updating the timestamp in the target task, so that the problem that the target task cannot be updated due to the fact that the timestamp is identical to the historical version when the target task needs to be updated is prevented; the fat/uat/prd environment difference deployment script can be used for deploying files required when resources are released in different environments, so that when the subsequent resources are released in different environments, the related files do not need to be redeployed; the combined resource file script and the compressed resource file script can combine and compress the resource files so as to reduce the volume of the resource files, save the occupation of storage space and improve the efficiency during release.
Preferably, the configuring the dynamic scenario according to the target task includes:
receiving dynamic scripts input by a user;
and acquiring a data structure of the target task, and configuring the operation parameters of the dynamic scenario according to the data structure.
Preferably, in another embodiment of the present invention, the integrating, by the dynamic scenario, the target task into a resource compression package to be published includes:
updating the timestamp of the target task through a timestamp updating script in the dynamic script;
compressing the target task through a compressed resource file script in the dynamic script;
deploying different environments for the compressed target task through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogs;
and distributing the compressed target task to the differential resource catalog through a combined resource file script in the dynamic script to obtain the resource compression package to be distributed.
In this embodiment, the timestamp of the target task is updated by executing the timestamp replacement script. And the time stamp of the target task is updated to the current time, so that the release environment takes the target task as a new resource to be reloaded, and the released front-end resource is ensured to be kept in the latest state.
Further, the compressing the target task through the compressed resource file script in the dynamic script includes:
compressing the image in the target task through the compression resource file script in the dynamic script, comprising:
acquiring an image and an image type in the target task to obtain an image data set;
classifying the images in the image data set according to the image types to obtain a classified image set;
and carrying out image compression on the classified image sets to obtain a plurality of compressed image sets with different categories.
Wherein the image types include, but are not limited to, gif images and jpg images.
In this embodiment, classifying the images in the image dataset may increase the efficiency of subsequent processing. In a preferred embodiment of the present invention, after the categorized image set is obtained, the method further includes: and generating a compressed catalog according to the image types, and storing the images in the classified image sets in the catalog of the corresponding type, so that the operations such as checking, calling and the like are convenient.
Preferably, the device of the embodiment of the invention further comprises a log acquisition module, wherein the log acquisition module is used for: and automatically collecting logs generated in the process that the target task is integrated into the resource compression package to be distributed.
The embodiment can realize the monitoring of the process of integrating the whole target task into the resource compression package to be distributed by carrying out log acquisition.
In detail, the embodiment of the invention adopts a routing protocol of a data processing pipeline (such as logstack) to collect data from the log.
The data processing pipeline is an open source data collection engine with pipeline conveying capability, and can efficiently collect data from scattered data sources, so that the data collection efficiency of the log is improved.
Further, the device according to the embodiment of the invention further comprises a storage module, wherein the storage module is used for: in the process of executing the target task to be integrated into a resource compression package to be distributed, storing an execution result of each step, wherein the storing of the execution result comprises the following steps:
mirror image copying is carried out on the execution result to obtain a mirror image execution result;
storing the execution result to a local end where a pre-established hypothesis database is located, and storing the mirror image execution result to a remote end where a server of the hypothesis database is located.
If the execution result is copied to a copy to obtain a mirror image execution result, the execution result is stored in an assumed database, a remote server of the database is found through an addressing method, the mirror image execution result is stored in the remote server of the database, and the remote server of the database is called a remote terminal.
In this embodiment, when an exception occurs in any one step of result, the execution result of the previous step may be directly called from the local end and/or the remote end to continue execution, so as to avoid data loss. Therefore, the problem of re-execution or re-execution due to the occurrence of an abnormality can be avoided.
The address configuration module 105 is configured to input the target task to the standard platform, and configure a git address of the target task based on the standard platform.
Preferably, the configuring the git address of the target task based on the standard platform includes:
packaging the target task by utilizing a packaging command of the standard platform;
generating a git address by using a preset network address frame;
judging whether the git address is legal or not;
and if the git address is legal, establishing connection between the packed target task and the git address.
Preferably, the git is version management software, and version management is performed by storing data of different versions in a git address conforming to a git protocol, wherein the git protocol is a protocol for batch transmission of data in a network, and the data stored in the git address can be packaged and downloaded in batches through the git protocol, so that the efficiency of publishing front-end resources is improved.
In the embodiment of the invention, the git address can be automatically generated by using mybatis, which is a network address framework and can be used for generating a network address, and the packed target task is connected with a legal git address, so that the target task can be acquired according to the git address later.
Optionally, in the embodiment of the present invention, the validity of the git address is verified by using a search verification module, so as to prevent the generated git address from being unavailable. The retrieval verification module is specifically used for: analyzing the git address, acquiring the content and the structure of the git address through analysis, judging whether the content and the structure of the acquired git address accord with a standard git protocol, if the analysis result accords with the standard git protocol, determining that the git address is legal, and if the analysis result does not accord with the standard git protocol, determining that the git address is illegal.
The resource publishing module 106 is configured to publish the resource in the standard platform by using the git address to compress the resource.
In the embodiment of the invention, the git address is input to the standard platform, and the standard platform calls the resource compression package by using the git address, so as to issue the resource compression package.
According to the embodiment of the invention, task analysis is carried out on the user demands, so that corresponding front-end project components and resource files are selected according to the user demands, and the published front-end resources are ensured to meet the user demands; the dynamic script is configured, and the dynamic script is utilized to automatically configure files and the like released under different environments for the target task, so that the accurate and low-error-rate configuration is realized; and configuring the git address, and packaging and publishing a plurality of resource compression packets by utilizing the git address, so that the publishing efficiency is improved. Therefore, the front-end resource release device provided by the invention can realize the purposes of reducing the error rate of configuration during front-end resource release and improving release efficiency.
Fig. 3 is a schematic structural diagram of an electronic device for implementing the front-end resource publishing method according to the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as a front-end resource distribution program 12, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as codes of the front-end resource distribution program 12, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects respective components of the entire electronic device using various interfaces and lines, executes or executes programs or modules stored in the memory 11 (for example, executes a front-end resource distribution program 12, etc.), and invokes data stored in the memory 11 to perform various functions of the electronic device 1 and process data.
The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 3 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The front-end resource issuing program 12 stored in the memory 11 in the electronic device 1 is a combination of a plurality of instructions, which when run in the processor 10, can implement:
acquiring an installation script, and installing node services and dependent items in a pre-constructed original platform by using the installation script to obtain a standard platform;
acquiring user demands, performing task analysis on the user demands, acquiring front-end project components and resource files according to analysis results, and packaging the front-end project components and the resource files to obtain target construction contents;
Acquiring a preset target flow file, and constructing a target task according to the target flow file and the target construction content;
configuring a dynamic script according to the target task, and integrating the target task into a resource compression package to be distributed through the dynamic script;
inputting the target task to the standard platform, and configuring a git address of the target task based on the standard platform;
and utilizing the git address to carry out resource release on the resource compression packet in the standard platform.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
Further, the computer-usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any accompanying diagram representation in the claims should not be considered as limiting the claim concerned.
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.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.
Claims (8)
1. A front-end resource publishing method, the method comprising:
acquiring an installation script, and installing node services and dependent items in a pre-constructed original platform by using the installation script to obtain a standard platform;
acquiring user demands, performing task analysis on the user demands, acquiring front-end project components and resource files according to analysis results, and packaging the front-end project components and the resource files to obtain target construction contents;
acquiring a preset target flow file, and constructing a target task according to the target flow file and the target construction content;
configuring a dynamic script according to the target task, and integrating the target task into a resource compression package to be distributed through the dynamic script;
inputting the target task to the standard platform, and configuring a git address of the target task based on the standard platform;
Utilizing the git address to carry out resource release on the resource compression packet in the standard platform;
the integrating the target task into a resource compression package to be issued through the dynamic scenario comprises the following steps: updating the timestamp of the target task through a timestamp updating script in the dynamic script; compressing the target task through a compressed resource file script in the dynamic script; deploying different environments for the compressed target task through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogs; and distributing the compressed target task to the differential resource catalog through a combined resource file script in the dynamic script to obtain the resource compression package to be distributed.
2. The front-end resource publishing method of claim 1, wherein the installing node service and dependency term in the pre-built original platform by using the installation script to obtain a standard platform comprises:
initializing plug-in configuration of the installation script in the original platform based on a command line tool of nodeJS;
loading a plug-in task for the initialized plug-in configuration by using the installation script, wherein the plug-in task is used for installing the node service and the dependent item;
Generating a basic code for constructing the plug-in task for the plug-in task;
and compiling the basic code by utilizing a compiler in the original platform to obtain the standard platform.
3. The front-end resource publishing method of claim 1, wherein said building a target task from said target flow file and said target build content comprises:
acquiring a starting parameter of a container Docker in the target flow file;
extracting code compiling instructions of the target construction content from the starting parameters;
running the code compiling instruction, wherein the code compiling instruction is used for compiling codes of the target construction content and generating compiling results;
and compiling results obtained by running the code compiling instructions are collected into the target task.
4. A front-end resource publishing method as in any one of claims 1 to 3, wherein configuring dynamic scenarios according to the target task comprises:
receiving dynamic scripts input by a user;
and acquiring a data structure of the target task, and configuring the operation parameters of the dynamic scenario according to the data structure.
5. A front-end resource publishing method as in any one of claims 1 to 3, wherein configuring the git address of a target task based on the standard platform comprises:
Packaging the target task by utilizing a packaging command of the standard platform;
generating a git address by using a preset network address frame;
judging whether the git address is legal or not;
and if the git address is legal, establishing connection between the packed target task and the git address.
6. A front-end resource distribution device, the device comprising:
the platform construction module is used for acquiring an installation script, and installing node services and dependent items in a pre-constructed original platform by utilizing the installation script to obtain a standard platform;
the target content acquisition module is used for acquiring user demands at points, performing task analysis on the user demands, acquiring front-end project components and resource files according to analysis results, and packaging the front-end project components and the resource files to obtain target construction content;
the target task construction module is used for acquiring a preset target flow file and constructing a target task according to the target flow file and the target construction content;
the dynamic script configuration module is used for configuring a dynamic script according to the target task, and integrating the target task into a resource compression package to be distributed through the dynamic script;
The address configuration module is used for inputting the target task to the standard platform and configuring the git address of the target task based on the standard platform;
the resource release module is used for releasing the resources in the standard platform by utilizing the git address by utilizing the resource compression packet;
the integrating the target task into a resource compression package to be issued through the dynamic scenario comprises the following steps: updating the timestamp of the target task through a timestamp updating script in the dynamic script; compressing the target task through a compressed resource file script in the dynamic script; deploying different environments for the compressed target task through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogs; and distributing the compressed target task to the differential resource catalog through a combined resource file script in the dynamic script to obtain the resource compression package to be distributed.
7. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the front-end resource distribution method of any one of claims 1 to 5.
8. A computer-readable storage medium comprising a storage data area in which created data is stored and a storage program area in which a computer program is stored; wherein the computer program, when executed by a processor, implements the front-end resource distribution method according to any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010733982.0A CN111897548B (en) | 2020-07-24 | 2020-07-24 | Front-end resource issuing method and device, electronic equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010733982.0A CN111897548B (en) | 2020-07-24 | 2020-07-24 | Front-end resource issuing method and device, electronic equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111897548A CN111897548A (en) | 2020-11-06 |
CN111897548B true CN111897548B (en) | 2023-11-10 |
Family
ID=73190165
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010733982.0A Active CN111897548B (en) | 2020-07-24 | 2020-07-24 | Front-end resource issuing method and device, electronic equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111897548B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112527335B (en) * | 2020-12-21 | 2024-04-19 | 恩亿科(北京)数据科技有限公司 | Method, system and computer device for automated processing npm dependent package installation |
CN112764827B (en) * | 2020-12-31 | 2023-04-07 | 重庆广播电视大学重庆工商职业学院 | Java class hot loading method with safety verification |
CN113127012B (en) * | 2021-03-09 | 2022-03-15 | 深圳市星锐游戏有限公司 | Software resource construction method based on software engine |
CN113448954B (en) * | 2021-06-29 | 2024-02-06 | 平安证券股份有限公司 | Service data execution method and device, electronic equipment and computer storage medium |
CN113535218A (en) * | 2021-07-26 | 2021-10-22 | 平安信托有限责任公司 | System database script publishing method, device, equipment and storage medium |
CN113821223B (en) * | 2021-07-30 | 2024-05-24 | 的卢技术有限公司 | Cloud computing distributed front-end version release method and system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461517A (en) * | 2014-11-23 | 2015-03-25 | 国云科技股份有限公司 | Method for operating workflow event through java dynamic script |
CN106484488A (en) * | 2015-08-31 | 2017-03-08 | 深圳市金锐显数码科技有限公司 | Integrated cloud compilation method and system |
CN108874403A (en) * | 2018-05-30 | 2018-11-23 | 深圳市分期乐网络科技有限公司 | Dissemination method, device, equipment and the storage medium of rule file |
CN109614108A (en) * | 2018-10-31 | 2019-04-12 | 武汉艺果互动科技股份有限公司 | A kind of project Automation arranging method based on Docker, equipment and storage equipment |
CN109656572A (en) * | 2018-11-14 | 2019-04-19 | 深圳壹账通智能科技有限公司 | Packaging method and device, computer equipment, the storage medium of installation kit |
CN109901838A (en) * | 2019-01-17 | 2019-06-18 | 平安证券股份有限公司 | Front end development approach, device, equipment and storage medium based on modularization |
CN110175029A (en) * | 2019-04-15 | 2019-08-27 | 深圳壹账通智能科技有限公司 | The forming method of front-end and back-end automatically dispose tool based on data analysis |
CN110321152A (en) * | 2019-07-04 | 2019-10-11 | 青岛华正信息技术股份有限公司 | A kind of Software Development Platform |
CN110673853A (en) * | 2019-09-25 | 2020-01-10 | 中国工商银行股份有限公司 | Compiling method, device and system |
CN111273898A (en) * | 2020-02-25 | 2020-06-12 | 安徽以萨数据技术有限公司 | Web front-end code automatic construction method, system and storage medium |
-
2020
- 2020-07-24 CN CN202010733982.0A patent/CN111897548B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461517A (en) * | 2014-11-23 | 2015-03-25 | 国云科技股份有限公司 | Method for operating workflow event through java dynamic script |
CN106484488A (en) * | 2015-08-31 | 2017-03-08 | 深圳市金锐显数码科技有限公司 | Integrated cloud compilation method and system |
CN108874403A (en) * | 2018-05-30 | 2018-11-23 | 深圳市分期乐网络科技有限公司 | Dissemination method, device, equipment and the storage medium of rule file |
CN109614108A (en) * | 2018-10-31 | 2019-04-12 | 武汉艺果互动科技股份有限公司 | A kind of project Automation arranging method based on Docker, equipment and storage equipment |
CN109656572A (en) * | 2018-11-14 | 2019-04-19 | 深圳壹账通智能科技有限公司 | Packaging method and device, computer equipment, the storage medium of installation kit |
CN109901838A (en) * | 2019-01-17 | 2019-06-18 | 平安证券股份有限公司 | Front end development approach, device, equipment and storage medium based on modularization |
CN110175029A (en) * | 2019-04-15 | 2019-08-27 | 深圳壹账通智能科技有限公司 | The forming method of front-end and back-end automatically dispose tool based on data analysis |
CN110321152A (en) * | 2019-07-04 | 2019-10-11 | 青岛华正信息技术股份有限公司 | A kind of Software Development Platform |
CN110673853A (en) * | 2019-09-25 | 2020-01-10 | 中国工商银行股份有限公司 | Compiling method, device and system |
CN111273898A (en) * | 2020-02-25 | 2020-06-12 | 安徽以萨数据技术有限公司 | Web front-end code automatic construction method, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111897548A (en) | 2020-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111897548B (en) | Front-end resource issuing method and device, electronic equipment and computer storage medium | |
CN105765560B (en) | The component software executed based on multiple tracking is recommended | |
CN106156186B (en) | Data model management device, server and data processing method | |
EP2990942B1 (en) | Service extraction and application composition | |
CN111563016B (en) | Log collection and analysis method and device, computer system and readable storage medium | |
CN111580926A (en) | Model publishing method, model deploying method, model publishing device, model deploying device, model publishing equipment and storage medium | |
CN113051171B (en) | Interface testing method, device, equipment and storage medium | |
CN113238929B (en) | Code testing method and device based on Mock data, electronic equipment and storage medium | |
CN112085217A (en) | Method, device, equipment and computer medium for deploying artificial intelligence service | |
CN111625252A (en) | Cluster upgrading maintenance method and device, electronic equipment and storage medium | |
CN112799785B (en) | Virtual machine cluster migration method, device, equipment and medium | |
CN112860645A (en) | Processing method and device for offline compressed file, computer equipment and medium | |
CN112579098A (en) | Software release method and device, electronic equipment and readable storage medium | |
CN113806434A (en) | Big data processing method, device, equipment and medium | |
CN112631903A (en) | Task testing method and device, electronic equipment and storage medium | |
CN112256989A (en) | Page loading method and device based on offline package, terminal equipment and storage medium | |
CN112579461A (en) | Assertion processing method, system and storage medium | |
Michelon et al. | Mining feature revisions in highly-configurable software systems | |
CN113377342A (en) | Project construction method and device, electronic equipment and storage medium | |
Ciccozzi et al. | An automated round-trip support towards deployment assessment in component-based embedded systems | |
CN112527655A (en) | Software version quality abnormity detection method and device, electronic equipment and storage medium | |
CN114860314B (en) | Deployment upgrading method, device, equipment and medium based on database compatibility | |
CN110764745A (en) | Variable transmission and collection method, device and computer readable storage medium | |
CN116244186A (en) | Operating system test management method and device and computing equipment | |
CN115033489A (en) | Code resource detection method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |