CN111897548A - Front-end resource publishing method and device, electronic equipment and computer storage medium - Google Patents

Front-end resource publishing method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN111897548A
CN111897548A CN202010733982.0A CN202010733982A CN111897548A CN 111897548 A CN111897548 A CN 111897548A CN 202010733982 A CN202010733982 A CN 202010733982A CN 111897548 A CN111897548 A CN 111897548A
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.)
Granted
Application number
CN202010733982.0A
Other languages
Chinese (zh)
Other versions
CN111897548B (en
Inventor
高立伟
刘永铭
赵阳
古立夫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Securities Co Ltd
Original Assignee
Ping An Securities Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN202010733982.0A priority Critical patent/CN111897548B/en
Publication of CN111897548A publication Critical patent/CN111897548A/en
Application granted granted Critical
Publication of CN111897548B publication Critical patent/CN111897548B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a development auxiliary technology, and discloses a front-end resource publishing method, which comprises the following steps: installing node services and dependency items in a pre-constructed original platform to obtain a standard platform; 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 process file, and constructing a target task according to the target process 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 issued through the dynamic script; inputting a target task into the standard platform configuration, and configuring a git address of the target task based on the standard platform; and issuing the resource compression packet by using the git address. In addition, the invention also relates to a block chain technology, and user requirement/target tasks can be stored in the block chain nodes. The invention can reduce the error rate of configuration when the front-end resource is released and improve the releasing efficiency.

Description

Front-end resource publishing method and device, electronic equipment and computer storage medium
Technical Field
The present invention relates to the field of development assistance technologies, and in particular, to a front-end resource publishing method, apparatus, electronic device, and computer-readable storage medium.
Background
With the diversification of user requirements, resources required by the front end of the user side are diversified and complicated, so that how front-end developers perform high efficiency according to the user requirements, and the release of the front-end resources with low error rate becomes a key point of more and more attention of people.
At present, most of the existing front-end resource publishing methods are configured when the front-end resources are published manually, but in such methods, configuration errors may occur due to manual configuration by developers, resulting in unsuccessful publishing, and in manual configuration, business personnel can repeatedly configure files required for publishing in different environments due to different environments required for publishing, resulting in low efficiency of publishing the front-end resources.
Disclosure of Invention
The invention provides a front-end resource issuing method, a front-end resource issuing device, electronic equipment and a computer-readable storage medium, and mainly aims to reduce the error rate of configuration during front-end resource issuing and improve issuing efficiency.
In order to achieve the above object, a front-end resource publishing method provided by the present invention includes:
acquiring an installation script, and installing a node service and a dependence item in a pre-constructed original platform by using the installation script to obtain a standard platform;
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;
acquiring a preset target process file, and constructing a target task according to the target process 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 issued 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 distribute the resource compression packet in the standard platform.
Optionally, the installing node service and the dependency item in the pre-constructed original platform by using the installation script to obtain a standard platform includes:
initializing the plug-in configuration of the installation script in the original platform based on a command line tool of nodeJS;
configuring and loading a plug-in task for the initialized plug-in by using the installation script, wherein the plug-in task is used for installing the node service and the dependency item;
generating basic codes for constructing the plug-in tasks for the plug-in tasks;
and compiling the basic code by utilizing a compiler in the original platform to obtain the standard platform.
Optionally, the constructing a target task according to the target process file and the target construction content includes:
acquiring starting parameters of a container Docker in the target process file;
extracting a code compiling instruction of the target construction content from the starting parameter;
running the code compiling instruction, wherein the code compiling instruction is used for compiling the code of the target construction content and generating a compiling result;
compiling a compiling result obtained by running the code compiling instruction into the target task.
Optionally, the configuring a dynamic script according to the target task includes:
receiving a dynamic script input by a user;
and acquiring a data structure of the target task, and configuring the running parameters of the dynamic script according to the data structure.
Optionally, the configuring the git address of the target task based on the standard platform includes:
packaging the target task by using a packaging command of the standard platform;
generating a git address by using a preset network address framework;
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 released through the dynamic script 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 the compressed target task in different environments through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogues;
and distributing the compressed target task to the difference resource directory through a combined resource file script in the dynamic script to obtain the resource compression package to be issued.
In order to solve the above problem, the present invention further provides a front-end resource publishing device, including:
the platform construction module is used for acquiring an installation script, and installing the node service and the dependency item in a pre-constructed original platform by using the installation script to obtain a standard platform;
the target content acquisition module is used for 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;
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 issued 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 publishing module is used for publishing the resource compression packet in the standard platform by using the git address.
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 the compressed target task in different environments through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogues;
and distributing the compressed target task to the difference resource directory through a combined resource file script in the dynamic script to obtain the resource compression package to be issued.
In order to solve the above problem, the present invention also provides an electronic device, 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 issuing method.
In order to solve the above problem, the present invention further provides a computer-readable storage medium including a storage data area and a storage program area, the storage data area storing the created data, the storage program area storing a computer program; wherein the computer program when executed by a processor implements a front-end resource publishing method as claimed in any one of the above.
The embodiment of the invention performs task analysis on the user requirements, so that corresponding front-end project components and resource files are selected according to the user requirements, and the published front-end resources are ensured to meet the user requirements; configuring a dynamic script, automatically configuring files and the like issued under different environments for the target task by using the dynamic script, and realizing accurate and low-error-rate configuration; and a git address is configured, and a plurality of resource compression packets can be packaged and issued by using the git address, so that the issuing efficiency is improved. Therefore, the front-end resource publishing method, the front-end resource publishing device and the computer readable storage medium provided by the invention can achieve the purposes of reducing the error rate configured during the publishing of the front-end resource and improving the publishing efficiency.
Drawings
Fig. 1 is a schematic flow chart of a front-end resource publishing method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a front-end resource distribution apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an internal structure of an electronic device implementing a front-end resource publishing method according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The execution subject of the front-end resource publishing method provided by the embodiment of the present application includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the front-end resource distribution method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
The invention provides a front-end resource issuing method. Fig. 1 is a schematic flow chart of a front-end resource publishing method according to an embodiment of the present invention. In this embodiment, the front-end resource issuing method includes:
and S1, acquiring an installation script, and installing the node service and the dependency item in the pre-constructed original platform by using the installation script to obtain the standard platform.
In the embodiment of the invention, the original platform is a configurable continuous integration platform.
In the embodiment of the invention, the installation script is used 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 used for constructing a server capable of releasing front-end resources.
Preferably, the installation script in the embodiment of the present invention is specifically a grunt tool, where the grunt tool includes, but is not limited to, a grunt-transport-pas module, a grunt-cmd-concat module, and a grunt-conttrib-ughty module, and the grunt tool is a set of front-end automation building tools based on a command line of nodeJs, and is a task runner and has rich and powerful plug-in functions.
Preferably, the installing node service and the dependency item in the pre-constructed original platform by using the installation script to obtain a standard platform includes:
initializing the plug-in configuration of the installation script in the original platform based on a command line tool of nodeJS;
configuring and loading a plug-in task for the initialized plug-in by using the installation script, wherein the plug-in task is used for installing the node service and the dependency item;
generating basic codes for constructing the plug-in tasks for the plug-in tasks;
and compiling the basic code by utilizing a compiler in the original platform to obtain the standard platform.
And when the node service and the dependency are installed in the original platform, the standard platform is obtained, and the standard platform can be used for integrating and compressing the front-end resources, configuring the release address of the front-end resources and the like.
In an optional embodiment of the invention, a java statement is used for loading the plug-in task to the initialized plug-in configuration, and the basic code for constructing the plug-in task is generated for the plug-in task.
And the plug-in loading task is specifically to load a corresponding module in the grunt 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 a preferred embodiment of the present invention, the user requirement can be obtained from the block link point, and the block link point has a correspondence with the user, that is, the data of the user is correspondingly stored in the block link point. By storing the user requirements into the block chain instead of the common database, the data security and tamper resistance of the block chain can be effectively utilized, the safety of the user requirements is further improved, the user requirements can not be tampered, and meanwhile, the extraction of large-batch user requirements can be rapidly completed according to the high throughput advantage of the block chain.
In detail, the task analysis of the user requirement includes:
a. performing preliminary analysis, namely extracting a user target contained in the user requirement;
b. analyzing a specific layer, namely analyzing interface elements required to be controlled when the user target is executed;
c. extension analysis for analyzing interference factors such as network sudden interruption and the like which may affect the user target when the user target is executed;
d. and analyzing the abnormality, namely analyzing which operation is required to be performed to eliminate the interference factors, and if the interference factors exist, adopting which operation to solve the abnormal condition.
Preferably, during the preliminary analysis, the convolutional neural network with the feature extraction function is used to extract the keywords in the user requirements, and the user target is determined according to the extracted keywords, where the user target refers to a purpose that the user needs to achieve, such as a front-end resource that the user needs to release.
Preferably, when performing the specific level analysis, the embodiment of the present invention compiles the user target obtained in the preliminary analysis into the target sentence by using a preset compiler, and analyzes the target sentence by using an analyzer, so as to obtain interface elements that need to be controlled when executing the user target, such as various clickable buttons in the interface, the window shape, the window size, and the like, by analyzing the target sentence.
Preferably, when performing the extension analysis, the embodiment of the present invention captures a task log generated when a target task is executed within a past period of time through a python statement, retrieves historical error reporting information in the task log, and aggregates the retrieved historical error reporting information as an interference factor, where the historical error reporting information includes error reporting information such as network interruption, data loss, and memory overflow.
Preferably, when performing the anomaly analysis, the embodiment of the present invention acquires the corresponding patch log in the task log through the python statement to determine the operation that needs to be performed when the error reporting information (i.e., the interference factor) occurs in the task log, for example, when a data loss may occur, the embodiment of the present invention may back up the data through the preset network cache, so as to timely recover the lost data when the 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 result of the task analysis, and further acquire the corresponding front-end project components and resource files from the database for storing the front-end project components and resource files.
Specifically, after the two-step analysis a and b is completed, the front-end project component corresponding to the user requirement can be obtained from a pre-constructed database for storing the front-end project component according to the user target contained in the analysis result and the interface element required to be controlled when the user target is executed, and the front-end project component includes the front-end resource code, the construction command and the relevant component for executing the front-end resource code.
And after the two-step analysis of d and e is completed, obtaining the resource file from a pre-constructed database for storing the resource file according to the interference factors contained in the analysis result and the operation to be executed for solving the interference factors, wherein the resource file comprises a target task, a js file and a picture. For example, if the information of error reporting that data loss may occur is obtained after the analysis, the resource file with the resource backup function is obtained from the database, so that the data generated in each step can be backed up in the subsequent operation, and the lost data can be recovered in time when the data loss is avoided.
Preferably, in the embodiment of the present invention, after the front-end project component and the resource file are obtained, the front-end project component and the resource file are packaged by using Webpack, so as to obtain the target construction content.
In the embodiment of the invention, the resources can be efficiently packaged through the Webpack.
S3, acquiring a preset target process file, and constructing a target task according to the target process file and the target construction content.
In detail, the target process file is a user-defined target process file, the target process file includes a process of task construction by the standard platform, and the process of task construction includes, but is not limited to: and (4) user-defined task construction processes, such as a new process, a changed process and a deleted process.
Specifically, the constructing a target task according to the target process file and the target construction content includes:
acquiring starting parameters of a container Docker in the target process file;
extracting a code compiling instruction of the target construction content from the starting parameter;
running the code compiling instruction, wherein the code compiling instruction is used for compiling the code of the target construction content and generating a compiling result;
compiling a compiling result obtained by running the code compiling instruction into the target task.
In this embodiment, the starting parameters of the container include: and generating a code download address, a code compiling instruction, Dockerfile file information and the like required by the Docker. Therefore, from the startup parameters, a code compiling instruction for specifying the target build content required to generate the Docker can be directly extracted. The starting parameters of the container are pre-configured, and can be flexibly configured according to different user requirements.
And S4, configuring dynamic scripts according to the target tasks, and integrating the target tasks into a resource compression package to be issued through the dynamic scripts.
Preferably, the dynamic scenarios include, but are not limited to: time stamp replacement script, fat/uat/prd environment difference deployment script, merged resource file script, compressed 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 the same as the historical version when the target task needs to be updated is solved; the fat/uat/prd environment difference deployment script can be used for deploying files required when the resources are published in different environments, and ensures that the related files do not need to be redeployed when the subsequent resources are published in different environments; the resource file can be merged and compressed by the merged resource file script and the compressed resource file script, so that the volume of the resource file is reduced, the occupation of a storage space is saved, and the publishing efficiency is improved.
Preferably, the configuring the dynamic script according to the target task includes:
receiving a dynamic script input by a user;
and acquiring a data structure of the target task, and configuring the running parameters of the dynamic script according to the data structure.
Preferably, in another embodiment of the present invention, the integrating the target task into the resource compression package to be released through the dynamic script 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 the compressed target task in different environments through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogues;
and distributing the compressed target task to the difference resource directory through a combined resource file script in the dynamic script to obtain the resource compression package to be issued.
In this embodiment, the timestamp of the target task is updated by executing the timestamp replacement script. By updating the timestamp of the target task to the current time, the issuing environment reloads the target task as a new resource, and the issued front-end resource is guaranteed to be kept in the latest state.
Further, the compressing the target task through a compressed resource file script in the dynamic script includes:
compressing the image in the target task through the compressed resource file script in the dynamic script, wherein the compressing comprises the following steps:
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 set to obtain a plurality of compressed image sets of 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 obtaining of the classified image set, the method further includes: and generating a compressed directory according to the image types, storing the images in the classified image set in the directory of the corresponding type, and facilitating later checking, calling and other operations.
Preferably, the method according to the embodiment of the present invention further includes: and automatically collecting the logs generated in the process of integrating the target tasks into the resource compression package to be released.
According to the embodiment, the process of integrating the whole target task into the resource compression packet to be issued can be monitored by collecting the log.
In detail, the embodiment of the invention adopts a routing protocol of a data processing pipeline (such as logstack) to collect data of the log.
The data processing pipeline is an open source data collection engine with pipeline conveying capacity, data can be efficiently collected from scattered data sources through the data processing pipeline, and the efficiency of data collection of the logs is improved.
Further, the method according to the embodiment of the present invention further includes: in the process of integrating the target tasks into the resource compression package to be issued, storing the execution result of each step, wherein the storing the execution result comprises:
carrying out mirror image copying on the execution result to obtain a mirror image execution result;
and storing the execution result to a local end where a pre-established assumed database is located, and storing the mirror image execution result to a different end where a server of the assumed database is located.
For example, the execution result is copied 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, and the mirror image execution result is stored in the remote server of the database, where the remote server of the database is called a foreign terminal.
In this embodiment, when the result of any step is abnormal, 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 repeated execution caused by the occurrence of an abnormality can be avoided.
And 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 using a packaging command of the standard platform;
generating a git address by using a preset network address framework;
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, the version management is performed by storing data of different versions in git addresses conforming to the git protocol, the git protocol is a protocol for batch transmission of data in a network, and the data stored in the git addresses can be packaged and downloaded in batch through the git protocol, so that the efficiency of front-end resource release is improved.
In the embodiment of the invention, mybatis can be used for automatically generating the git address, the mybatis 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 subsequently.
Optionally, in the embodiment of the present invention, a retrieval verification method is used to verify the 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: and analyzing the git address, judging whether the content and the structure of the obtained git address accord with a standard git protocol or not by analyzing the content and the structure of the obtained git address, if the analyzed result accords with the standard git protocol, determining that the git address is legal, and if the analyzed result does not accord with the standard git protocol, determining that the git address is illegal.
And S6, utilizing the git address to distribute the resource compression packet in the standard platform.
In the embodiment of the invention, the git address is input into the standard platform, and the standard platform calls the resource compression packet by using the git address so as to issue the resource compression packet.
The embodiment of the invention performs task analysis on the user requirements, so that corresponding front-end project components and resource files are selected according to the user requirements, and the published front-end resources are ensured to meet the user requirements; configuring a dynamic script, automatically configuring files and the like issued under different environments for the target task by using the dynamic script, and realizing accurate and low-error-rate configuration; and a git address is configured, and a plurality of resource compression packets can be packaged and issued by using the git address, so that the issuing efficiency is improved. Therefore, the invention can realize the purposes of reducing the error rate of configuration when the front-end resources are released and improving the releasing efficiency.
Fig. 2 is a schematic block diagram of a front-end resource distribution apparatus according to the present invention.
The front-end resource distribution apparatus 100 according to the present invention may be installed in an electronic device. According to the realized functions, the front-end resource publishing device may include a platform building module 101, a target content obtaining module 102, a target task building module 103, a dynamic scenario configuration module 104, an address configuration module 105, and a resource publishing module 106. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the platform construction module is used for acquiring an installation script, and installing the node service and the dependency item in a pre-constructed original platform by using the installation script to obtain a standard platform;
the target content acquisition module is used for 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;
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 issued 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 publishing module is used for publishing the resource compression packet in the standard platform by using the git address.
In this embodiment, specific functions of each module/unit of the front-end resource distribution apparatus are as follows:
the platform construction module 101 is configured to obtain an installation script, and install a node service and a dependency item 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 integration platform.
In the embodiment of the invention, the installation script is used 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 used for constructing a server capable of releasing front-end resources.
Preferably, the installation script in the embodiment of the present invention is specifically a grunt tool, where the grunt tool includes, but is not limited to, a grunt-transport-pas module, a grunt-cmd-concat module, and a grunt-conttrib-ughty module, and the grunt tool is a set of front-end automation building tools based on a command line of nodeJs, and is a task runner and has rich and powerful plug-in functions.
Preferably, the installing node service and the dependency item in the pre-constructed original platform by using the installation script to obtain a standard platform includes:
initializing the plug-in configuration of the installation script in the original platform based on a command line tool of nodeJS;
configuring and loading a plug-in task for the initialized plug-in by using the installation script, wherein the plug-in task is used for installing the node service and the dependency item;
generating basic codes for constructing the plug-in tasks for the plug-in tasks;
and compiling the basic code by utilizing a compiler in the original platform to obtain the standard platform.
And when the node service and the dependency are installed in the original platform, the standard platform is obtained, and the standard platform can be used for integrating and compressing the front-end resources, configuring the release address of the front-end resources and the like.
In an optional embodiment of the invention, a java statement is used for loading the plug-in task to the initialized plug-in configuration, and the basic code for constructing the plug-in task is generated for the plug-in task.
And the plug-in loading task is specifically to load a corresponding module in the grunt 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 a target construction content.
In a preferred embodiment of the present invention, the user requirement can be obtained from the block link point, and the block link point has a correspondence with the user, that is, the data of the user is correspondingly stored in the block link point. By storing the user requirements into the block chain instead of the common database, the data security and tamper resistance of the block chain can be effectively utilized, the safety of the user requirements is further improved, the user requirements can not be tampered, and meanwhile, the extraction of large-batch user requirements can be rapidly completed according to the high throughput advantage of the block chain.
In detail, the task analysis of the user requirement includes:
a. performing preliminary analysis, namely extracting a user target contained in the user requirement;
b. analyzing a specific layer, namely analyzing interface elements required to be controlled when the user target is executed;
c. extension analysis for analyzing interference factors such as network sudden interruption and the like which may affect the user target when the user target is executed;
d. and analyzing the abnormality, namely analyzing which operation is required to be performed to eliminate the interference factors, and if the interference factors exist, adopting which operation to solve the abnormal condition.
Preferably, during the preliminary analysis, the convolutional neural network with the feature extraction function is used to extract the keywords in the user requirements, and the user target is determined according to the extracted keywords, where the user target refers to a purpose that the user needs to achieve, such as a front-end resource that the user needs to release.
Preferably, when performing the specific level analysis, the embodiment of the present invention compiles the user target obtained in the preliminary analysis into the target sentence by using a preset compiler, and analyzes the target sentence by using an analyzer, so as to obtain interface elements that need to be controlled when executing the user target, such as various clickable buttons in the interface, the window shape, the window size, and the like, by analyzing the target sentence.
Preferably, when performing the extension analysis, the embodiment of the present invention captures a task log generated when a target task is executed within a past period of time through a python statement, retrieves historical error reporting information in the task log, and aggregates the retrieved historical error reporting information as an interference factor, where the historical error reporting information includes error reporting information such as network interruption, data loss, and memory overflow.
Preferably, when performing the anomaly analysis, the embodiment of the present invention acquires the corresponding patch log in the task log through the python statement to determine the operation that needs to be performed when the error reporting information (i.e., the interference factor) occurs in the task log, for example, when a data loss may occur, the embodiment of the present invention may back up the data through the preset network cache, so as to timely recover the lost data when the 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 result of the task analysis, and further acquire the corresponding front-end project components and resource files from the database for storing the front-end project components and resource files.
Specifically, after the two-step analysis a and b is completed, the front-end project component corresponding to the user requirement can be obtained from a pre-constructed database for storing the front-end project component according to the user target contained in the analysis result and the interface element required to be controlled when the user target is executed, and the front-end project component includes the front-end resource code, the construction command and the relevant component for executing the front-end resource code.
And after the two-step analysis of d and e is completed, obtaining the resource file from a pre-constructed database for storing the resource file according to the interference factors contained in the analysis result and the operation to be executed for solving the interference factors, wherein the resource file comprises a target task, a js file and a picture. For example, if the information of error reporting that data loss may occur is obtained after the analysis, the resource file with the resource backup function is obtained from the database, so that the data generated in each step can be backed up in the subsequent operation, and the lost data can be recovered in time when the data loss is avoided.
Preferably, in the embodiment of the present invention, after the front-end project component and the resource file are obtained, the front-end project component and the resource file are packaged by using Webpack, so as to obtain the target construction 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 process file, and construct a target task according to the target process file and the target construction content.
In detail, the target process file is a user-defined target process file, the target process file includes a process of task construction by the standard platform, and the process of task construction includes, but is not limited to: and (4) user-defined task construction processes, such as a new process, a changed process and a deleted process.
Specifically, the constructing a target task according to the target process file and the target construction content includes:
acquiring starting parameters of a container Docker in the target process file;
extracting a code compiling instruction of the target construction content from the starting parameter;
running the code compiling instruction, wherein the code compiling instruction is used for compiling the code of the target construction content and generating a compiling result;
compiling a compiling result obtained by running the code compiling instruction into the target task.
In this embodiment, the starting parameters of the container include: and generating a code download address, a code compiling instruction, Dockerfile file information and the like required by the Docker. Therefore, from the startup parameters, a code compiling instruction for specifying the target build content required to generate the Docker can be directly extracted. The starting parameters of the container are pre-configured, and can be flexibly configured according to different user requirements.
The dynamic script configuration module 104 is configured to configure a dynamic script according to the target task, and integrate the target task into a resource compression package to be issued through the dynamic script.
Preferably, the dynamic scenarios include, but are not limited to: time stamp replacement script, fat/uat/prd environment difference deployment script, merged resource file script, compressed 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 the same as the historical version when the target task needs to be updated is solved; the fat/uat/prd environment difference deployment script can be used for deploying files required when the resources are published in different environments, and ensures that the related files do not need to be redeployed when the subsequent resources are published in different environments; the resource file can be merged and compressed by the merged resource file script and the compressed resource file script, so that the volume of the resource file is reduced, the occupation of a storage space is saved, and the publishing efficiency is improved.
Preferably, the configuring the dynamic script according to the target task includes:
receiving a dynamic script input by a user;
and acquiring a data structure of the target task, and configuring the running parameters of the dynamic script according to the data structure.
Preferably, in another embodiment of the present invention, the integrating the target task into the resource compression package to be released through the dynamic script 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 the compressed target task in different environments through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogues;
and distributing the compressed target task to the difference resource directory through a combined resource file script in the dynamic script to obtain the resource compression package to be issued.
In this embodiment, the timestamp of the target task is updated by executing the timestamp replacement script. By updating the timestamp of the target task to the current time, the issuing environment reloads the target task as a new resource, and the issued front-end resource is guaranteed to be kept in the latest state.
Further, the compressing the target task through a compressed resource file script in the dynamic script includes:
compressing the image in the target task through the compressed resource file script in the dynamic script, wherein the compressing comprises the following steps:
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 set to obtain a plurality of compressed image sets of 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 obtaining of the classified image set, the method further includes: and generating a compressed directory according to the image types, storing the images in the classified image set in the directory of the corresponding type, and facilitating later checking, calling and other operations.
Preferably, the apparatus according to the embodiment of the present invention further includes a log collection module, where the log collection module is configured to: and automatically collecting the logs generated in the process of integrating the target tasks into the resource compression package to be released.
According to the embodiment, the process of integrating the whole target task into the resource compression packet to be issued can be monitored by collecting the log.
In detail, the embodiment of the invention adopts a routing protocol of a data processing pipeline (such as logstack) to collect data of the log.
The data processing pipeline is an open source data collection engine with pipeline conveying capacity, data can be efficiently collected from scattered data sources through the data processing pipeline, and the efficiency of data collection of the logs is improved.
Further, the apparatus according to the embodiment of the present invention further includes a storage module, where the storage module is configured to: in the process of integrating the target tasks into the resource compression package to be issued, storing the execution result of each step, wherein the storing the execution result comprises:
carrying out mirror image copying on the execution result to obtain a mirror image execution result;
and storing the execution result to a local end where a pre-established assumed database is located, and storing the mirror image execution result to a different end where a server of the assumed database is located.
For example, the execution result is copied 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, and the mirror image execution result is stored in the remote server of the database, where the remote server of the database is called a foreign terminal.
In this embodiment, when the result of any step is abnormal, 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 repeated execution caused by 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 using a packaging command of the standard platform;
generating a git address by using a preset network address framework;
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, the version management is performed by storing data of different versions in git addresses conforming to the git protocol, the git protocol is a protocol for batch transmission of data in a network, and the data stored in the git addresses can be packaged and downloaded in batch through the git protocol, so that the efficiency of front-end resource release is improved.
In the embodiment of the invention, mybatis can be used for automatically generating the git address, the mybatis 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 subsequently.
Optionally, in the embodiment of the present invention, the retrieval verification module is used to verify the validity of the git address, so as to prevent the generated git address from being unavailable. The retrieval verification module is specifically configured to: and analyzing the git address, judging whether the content and the structure of the obtained git address accord with a standard git protocol or not by analyzing the content and the structure of the obtained git address, if the analyzed result accords with the standard git protocol, determining that the git address is legal, and if the analyzed 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 compression packet in the standard platform by using the git address.
In the embodiment of the invention, the git address is input into the standard platform, and the standard platform calls the resource compression packet by using the git address so as to issue the resource compression packet.
The embodiment of the invention performs task analysis on the user requirements, so that corresponding front-end project components and resource files are selected according to the user requirements, and the published front-end resources are ensured to meet the user requirements; configuring a dynamic script, automatically configuring files and the like issued under different environments for the target task by using the dynamic script, and realizing accurate and low-error-rate configuration; and a git address is configured, and a plurality of resource compression packets can be packaged and issued by using the git address, so that the issuing efficiency is improved. Therefore, the front-end resource issuing device provided by the invention can achieve the purposes of reducing the error rate of configuration during the front-end resource issuing and improving the issuing efficiency.
Fig. 3 is a schematic structural diagram of an electronic device 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 issuing 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, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, 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 also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and 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 to store not only 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 temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (for example, executing the front-end resource issuing program 12) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 3 shows only an electronic device with components, and it will be understood by those 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 those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally 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 device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The front-end resource issuing program 12 stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions that, when executed in the processor 10, can implement:
acquiring an installation script, and installing a node service and a dependence item in a pre-constructed original platform by using the installation script to obtain a standard platform;
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;
acquiring a preset target process file, and constructing a target task according to the target process 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 issued 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 distribute the resource compression packet in the standard platform.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, 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 according to the use of the blockchain node, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
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 attributes 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 claims should not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A front-end resource publishing method, the method comprising:
acquiring an installation script, and installing a node service and a dependence item in a pre-constructed original platform by using the installation script to obtain a standard platform;
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;
acquiring a preset target process file, and constructing a target task according to the target process 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 issued 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 distribute the resource compression packet in the standard platform.
2. The front-end resource publishing method according to claim 1, wherein the installing node service and the dependency item in the pre-constructed original platform by using the installation script to obtain a standard platform comprises:
initializing the plug-in configuration of the installation script in the original platform based on a command line tool of nodeJS;
configuring and loading a plug-in task for the initialized plug-in by using the installation script, wherein the plug-in task is used for installing the node service and the dependency item;
generating basic codes for constructing the plug-in tasks for the plug-in tasks;
and compiling the basic code by utilizing a compiler in the original platform to obtain the standard platform.
3. The front-end resource distribution method according to claim 1, wherein the constructing the target task according to the target process file and the target construction content comprises:
acquiring starting parameters of a container Docker in the target process file;
extracting a code compiling instruction of the target construction content from the starting parameter;
running the code compiling instruction, wherein the code compiling instruction is used for compiling the code of the target construction content and generating a compiling result;
compiling a compiling result obtained by running the code compiling instruction into the target task.
4. The front-end resource publishing method according to any of claims 1 to 3, wherein the configuring of the dynamic script according to the target task comprises:
receiving a dynamic script input by a user;
and acquiring a data structure of the target task, and configuring the running parameters of the dynamic script according to the data structure.
5. The front-end resource publishing method according to any of claims 1 to 3, wherein the configuring the git address of the target task based on the standard platform comprises:
packaging the target task by using a packaging command of the standard platform;
generating a git address by using a preset network address framework;
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. The front-end resource publishing method according to any one of claims 1 to 3, wherein the integrating the target task into the resource compression package to be published through the dynamic script comprises:
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 the compressed target task in different environments through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogues;
and distributing the compressed target task to the difference resource directory through a combined resource file script in the dynamic script to obtain the resource compression package to be issued.
7. A front-end resource publishing apparatus, the apparatus comprising:
the platform construction module is used for acquiring an installation script, and installing the node service and the dependency item in a pre-constructed original platform by using the installation script to obtain a standard platform;
the target content acquisition module is used for 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;
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 issued 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 publishing module is used for publishing the resource compression packet in the standard platform by using the git address.
8. The front-end resource publishing device of claim 7, wherein 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 the compressed target task in different environments through an environment difference deployment script in the dynamic script to generate a plurality of difference resource catalogues;
and distributing the compressed target task to the difference resource directory through a combined resource file script in the dynamic script to obtain the resource compression package to be issued.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the front-end resource issuing method according to any one of claims 1 to 6.
10. A computer-readable storage medium comprising a storage data area storing created data and a storage program area storing a computer program; wherein the computer program when executed by a processor implements the front-end resource publishing method as claimed in any one of claims 1 to 6.
CN202010733982.0A 2020-07-24 2020-07-24 Front-end resource issuing method and device, electronic equipment and computer storage medium Active CN111897548B (en)

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 true CN111897548A (en) 2020-11-06
CN111897548B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527335A (en) * 2020-12-21 2021-03-19 恩亿科(北京)数据科技有限公司 Method, system and computer device for automating npm dependent package installation
CN112764827A (en) * 2020-12-31 2021-05-07 重庆广播电视大学重庆工商职业学院 Java class hot loading method with safety verification
CN113127012A (en) * 2021-03-09 2021-07-16 深圳市星锐游戏有限公司 Software resource construction method based on software engine
CN113448954A (en) * 2021-06-29 2021-09-28 平安证券股份有限公司 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
CN113821223A (en) * 2021-07-30 2021-12-21 的卢技术有限公司 Cloud computing distributed front-end version release method and system
CN113821223B (en) * 2021-07-30 2024-05-24 的卢技术有限公司 Cloud computing distributed front-end version release method and system

Citations (10)

* Cited by examiner, † Cited by third party
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

Patent Citations (10)

* Cited by examiner, † Cited by third party
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
机器之心: "深度学习自动前端开发:从草图到HTML只需5秒(附带吗)", pages 1 - 6, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/35177965?utm_source=wechat_session&utm_medium=social> *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527335A (en) * 2020-12-21 2021-03-19 恩亿科(北京)数据科技有限公司 Method, system and computer device for automating npm dependent package installation
CN112527335B (en) * 2020-12-21 2024-04-19 恩亿科(北京)数据科技有限公司 Method, system and computer device for automated processing npm dependent package installation
CN112764827A (en) * 2020-12-31 2021-05-07 重庆广播电视大学重庆工商职业学院 Java class hot loading method with safety verification
CN112764827B (en) * 2020-12-31 2023-04-07 重庆广播电视大学重庆工商职业学院 Java class hot loading method with safety verification
CN113127012A (en) * 2021-03-09 2021-07-16 深圳市星锐游戏有限公司 Software resource construction method based on software engine
CN113448954A (en) * 2021-06-29 2021-09-28 平安证券股份有限公司 Service data execution method and device, electronic equipment and computer storage medium
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
CN113821223A (en) * 2021-07-30 2021-12-21 的卢技术有限公司 Cloud computing distributed front-end version release method and system
CN113821223B (en) * 2021-07-30 2024-05-24 的卢技术有限公司 Cloud computing distributed front-end version release method and system

Also Published As

Publication number Publication date
CN111897548B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN111897548B (en) Front-end resource issuing method and device, electronic equipment and computer storage medium
CN111580926A (en) Model publishing method, model deploying method, model publishing device, model deploying device, model publishing equipment and storage medium
CN112506559A (en) Gray scale publishing method and device based on gateway, electronic equipment and storage medium
CN113138929A (en) Distributed interface testing method and device, electronic equipment and storage medium
CN113741909A (en) Micro-service deployment method, device, electronic equipment and storage medium
CN112256783A (en) Data export method and device, electronic equipment and storage medium
CN111611276A (en) Data query method, device and storage 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
CN112235409A (en) File uploading method and device, electronic equipment and computer readable storage medium
CN115033489A (en) Code resource detection method and device, electronic equipment and storage medium
CN115145870A (en) Method and device for positioning reason of failed task, electronic equipment and storage medium
CN115086047A (en) Interface authentication method and device, electronic equipment and storage medium
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN114356379A (en) Backup-based service upgrading method, device, equipment and storage medium
CN114237982A (en) System disaster recovery switching method, device, equipment and storage medium
CN112764995A (en) Server hardware resource monitoring method, device and medium
CN115190016B (en) System general switch configuration method, device, equipment and storage medium
CN113448954B (en) Service data execution method and device, electronic equipment and computer storage medium
CN114139509A (en) Report processing method, device, equipment and medium
CN113064797B (en) Front-end monitoring method and device, electronic equipment and storage medium
CN114860314B (en) Deployment upgrading method, device, equipment and medium based on database compatibility
CN114003316A (en) Cluster timing task execution method and device, electronic equipment and storage medium
CN111625252A (en) Cluster upgrading maintenance method and device, electronic equipment and storage medium
CN114185748A (en) System monitoring 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