CN114489774A - Webpage application packaging method, device, equipment and storage medium - Google Patents

Webpage application packaging method, device, equipment and storage medium Download PDF

Info

Publication number
CN114489774A
CN114489774A CN202210132344.2A CN202210132344A CN114489774A CN 114489774 A CN114489774 A CN 114489774A CN 202210132344 A CN202210132344 A CN 202210132344A CN 114489774 A CN114489774 A CN 114489774A
Authority
CN
China
Prior art keywords
packaged
application
compiling
webpage application
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210132344.2A
Other languages
Chinese (zh)
Inventor
崔鹤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202210132344.2A priority Critical patent/CN114489774A/en
Publication of CN114489774A publication Critical patent/CN114489774A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a webpage application packaging method, a webpage application packaging device, webpage application packaging equipment and a storage medium, belongs to the technical field of computers, and particularly relates to the technical field of cloud computing. The specific implementation scheme is as follows: in the process of compiling the webpage application to be packaged, acquiring the version information of the webpage application to be packaged according to the configuration information of the webpage application to be packaged; writing the version information into a version description file; and generating a packaging file of the webpage application to be packaged according to the version description file and the compiling file of the webpage application to be packaged. By the technical scheme, the packaging efficiency and accuracy of the webpage application are improved.

Description

Webpage application packaging method, device, equipment and storage medium
Technical Field
The disclosure relates to the technical field of computers, in particular to the technical field of cloud computing, and particularly relates to a webpage application packaging method, device, equipment and storage medium.
Background
With the development of computer technology, webpage applications (i.e., web applications) are updated more and more frequently. Then, it is very important how to package the web application so as to accurately manage the web application subsequently, for example, quickly locate the source code of the web application for repair.
Disclosure of Invention
The disclosure provides a webpage application packaging method, a webpage application packaging device, webpage application packaging equipment and a webpage application packaging storage medium.
According to an aspect of the present disclosure, there is provided a web application packaging method, including:
in the process of compiling the webpage application to be packaged, acquiring the version information of the webpage application to be packaged according to the configuration information of the webpage application to be packaged;
writing the version information into a version description file;
and generating a packaging file of the webpage application to be packaged according to the version description file and the compiling file of the webpage application to be packaged.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
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 web page application packaging method of any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the web application packaging method according to any one of the embodiments of the present disclosure.
According to the technology disclosed by the invention, the packaging efficiency and accuracy of the webpage application can be improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a flowchart of a web application packaging method provided according to an embodiment of the present disclosure;
FIG. 2 is a flowchart of another web application packaging method provided in accordance with an embodiment of the present disclosure;
FIG. 3 is a flowchart of another method for packaging a web page application provided by an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a web application packaging apparatus according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device for implementing a web application packaging method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart of a web application packaging method provided according to an embodiment of the present disclosure, and the method is suitable for a case how to package a web application. The whole set of webpage application packaging method can be realized by matching a continuous delivery platform (namely an iPe platform), a code warehouse (namely an icode platform) and the like. Optionally, in this embodiment, a developer may create multiple pipelines in the iPipe platform; further, a developer can associate a pipeline for each code branch in the icode platform; further, different code branches may be associated with the same pipeline.
The webpage application packaging method provided by the embodiment can be applied to an iPipe platform, the method can be executed by a webpage application packaging device, the device can be realized in a software and/or hardware mode, and can be integrated into electronic equipment with a webpage application packaging function, and further, the electronic equipment can be configured with a continuous delivery platform, namely the iPipe platform. As shown in fig. 1, the method for packaging a web application of this embodiment may include:
s101, in the process of compiling the webpage application to be packaged, acquiring the version information of the webpage application to be packaged according to the configuration information of the webpage application to be packaged.
In this embodiment, the web application to be packaged is a web application that needs to be packaged. The configuration information is related configuration information of the web page application to be packaged, and includes but is not limited to related content in ci.
The version information is used for representing the relevant information of the version of the webpage application to be packaged; for example, the version information may include a version number. Optionally, in this embodiment, for each web application, version information before and after updating of the function of the web application is different; further, the version information of the web application after the function update may be determined according to the latest version information of the web application before the function update. That is to say, the version information of the web application to be packaged may be determined according to the latest version information of the web application to be packaged this time. For example, the latest version information may be added by 1 as the version information of the web application to be packaged.
Optionally, a developer stores the source code, configuration information and the like of the written webpage application to be packaged in a corresponding code branch in the icode platform, and clicks a compiling button to generate a code compiling event; correspondingly, the iPepe platform (specifically, a certain pipeline in the iPepe platform associated with the to-be-packaged webpage application) responds to the code compiling event, obtains the configuration information and the source code of the to-be-packaged webpage application from the icode platform, and compiles the to-be-packaged webpage application.
Furthermore, in the process of compiling the web application to be packaged, the configuration information of the web application to be packaged is analyzed, a field of version information is obtained from the configuration information, and then the content in the field is determined as the version information of the web application to be packaged.
And S102, writing the version information into the version description file.
In this embodiment, the version description file is a file used for recording version information of the to-be-packaged web application, and includes a version field and version information corresponding to the version field, and may be, for example, a version information.
Specifically, the version information is written into a field corresponding to the version description file.
S103, generating a packaging file of the webpage application to be packaged according to the version description file and the compiling file of the webpage application to be packaged.
In this embodiment, the compiled file is a file generated by compiling a source code of the web application to be packaged.
Specifically, a developer can click a packing button in the iPe platform; correspondingly, the iPepe platform can respond to the packaging operation of the user, package the version description file and the compiled file of the webpage application to be packaged, and generate a packaged file of the webpage application to be packaged.
It should be noted that after the package file of the to-be-packaged web application is generated, the iPipe platform may deploy the package file to the target server, and thus, the web application deployed in the target server has version information. Then, if the user feeds back that the function of the web application has a problem, the address can be generated according to the server address and the version description file (for example, version. js) to which the web application belongs; accessing the address through a browser to acquire version information of the deployed webpage application; and then a developer can position the corresponding code of the webpage application in a code base (icode platform) according to the version information to repair, so that the repair efficiency is improved. The target server is a server deployed after the webpage application to be packaged is packaged.
According to the technical scheme of the embodiment of the disclosure, in the process of compiling the webpage application to be packaged, the version information of the webpage application to be packaged is obtained according to the configuration information of the webpage application to be packaged, the version information is written into the version description file, and then the packaging file of the webpage application to be packaged is generated according to the version description file and the compiling file of the webpage application to be packaged. According to the technical scheme, the version information of the webpage application is automatically injected into the packaged file, and a non-invasive automatic product version injection mode is provided; meanwhile, when the web application is maintained subsequently, the source code corresponding to the web application can be quickly positioned based on the version information and repaired, so that the satisfaction degree of an application user is improved; in addition, compared with the traditional mode of manually recording version information, the technical scheme of the disclosure reduces the labor cost and improves the webpage application packaging efficiency and accuracy.
On the basis of the above embodiment, as an optional way of the embodiment of the present disclosure, in the process of compiling the web application to be packaged, the source code of the web application to be packaged may also be compiled, so as to obtain a compiled file of the web application to be packaged.
Specifically, the iPepe platform responds to a code compiling event, obtains a source code and configuration information of the webpage application to be packaged from the icode platform, and compiles the webpage application to be packaged.
Furthermore, in the process of compiling the webpage application to be packaged, the version information of the webpage application to be packaged can be obtained according to the configuration information of the webpage application to be packaged, and the version information is written into the version description file; and compiling the source code of the webpage application to be packaged according to the configuration information of the webpage application to be packaged to obtain a compiled file of the webpage application to be packaged.
Compared with local compiling, the source code of the webpage application to be packaged is compiled through the iPe platform, and therefore compiling efficiency and compiling accuracy are improved.
Fig. 2 is a flowchart of another method for packaging a web application according to an embodiment of the present disclosure, and based on the above embodiment, further optimizing "obtaining version information of a web application to be packaged according to configuration information of the web application to be packaged", and providing an optional implementation, as shown in fig. 2, the method for packaging a web application according to this embodiment may include:
s201, in the process of compiling the webpage application to be packaged, under the condition that the webpage application to be packaged meets the compiling condition, obtaining the version information of the webpage application to be packaged according to the compiling instruction in the configuration information.
In this embodiment, the compiling condition is a condition that needs to be satisfied for compiling the web application to be packaged.
According to an optional mode, code quality inspection can be carried out according to the webpage application to be packaged, and if the quality inspection is passed, the webpage application to be packaged is determined to meet the compiling condition. Specifically, the code format and/or the code writing language of the source code of the web application to be packaged may be checked, and if the check is passed, it is determined that the web application to be packaged satisfies the compiling condition. For example, the code format may be checked to see whether the code format is standard, and if so, it is determined that the web page application to be packaged meets the compiling condition. For another example, the code writing language can be checked to see whether the code writing language is consistent with the specified writing language, and if so, it is determined that the webpage application to be packaged meets the compiling condition. For another example, the code format and the code writing language of the source code may also be verified, and if the verification is passed, it is determined that the webpage application to be packaged meets the compiling condition.
In yet another alternative, a first compilation scenario is determined; comparing the first compiling scene with a second compiling scene in the configuration information; and if so, determining that the webpage application to be packaged meets the compiling condition.
The compiling scene is a scene configured for each pipeline after a plurality of pipelines are created for a developer on an iPe platform, and can include but is not limited to a standardized scene, a privatized scene, an industry cloud scene and the like. The first compiling scene is a compiling scene configured by a developer for a pipeline to which the webpage application to be packaged belongs on an iPe platform. The second compiling scene is a needed compiling scene of the webpage application to be packaged in the configuration information.
Specifically, in the process of compiling the web application to be packaged, a first compiling scene can be determined according to a scene built in the iPipe platform by a developer, then a second compiling scene is obtained from the configuration information, the first compiling scene and the second compiling scene are compared, and if the first compiling scene and the second compiling scene are consistent, the web application to be packaged is determined to meet the compiling condition.
It can be understood that whether the webpage application to be packaged meets the compiling condition is judged through the compiling scene, the condition that illegal webpage applications to be packaged are processed to occupy resources is avoided, and meanwhile, the accuracy of information injection of subsequent versions is guaranteed.
In this embodiment, the configuration information further includes a compiling instruction, where the compiling instruction includes processing logic for the version information.
Specifically, if it is determined that the web application to be packaged meets the compiling condition, the compiling instruction may be obtained from the configuration information (specifically, ci.yml file), and the version information of the web application to be packaged may be obtained from the shell file according to the processing logic of the version information in the compiling instruction.
Furthermore, the compiling instruction may further include logic for compiling the source code of the web application to be packaged. Furthermore, the source code of the web application to be packaged can be compiled according to the compiling instruction in the configuration information, so that a compiling file of the web application to be packaged is obtained.
S202, writing the version information into the version description file.
And S203, generating a packaging file of the webpage application to be packaged according to the version description file and the compiling file of the webpage application to be packaged.
The method and the device for compiling the webpage application to be packaged have the advantages that in the process of compiling the webpage application to be packaged, under the condition that the webpage application to be packaged meets the compiling condition, the version information of the webpage application to be packaged is obtained according to the compiling instruction in the configuration information, the version information is written into the version description file, and then the packaged file of the webpage application to be packaged is generated according to the version description file and the compiling file of the webpage application to be packaged. According to the technical scheme, the compiling condition is introduced, the accuracy of the version information is improved, and therefore the accuracy of the packaged file is guaranteed.
On the basis of the above embodiments, as an optional way of the embodiments of the present disclosure, a scene configuration interface may also be displayed to a developer in response to a scene configuration instruction; and determining the incidence relation between the scene and the pipeline and the incidence relation between the pipeline and the code branch according to the operation of the developer on the scene configuration interface.
Specifically, a developer clicks a scene configuration button to generate a scene configuration instruction; correspondingly, the iPepe platform responds to the scene configuration instruction and displays a scene configuration interface to a developer; correspondingly, the developer can set the incidence relation between the scene and the pipeline and the incidence relation between the pipeline and the code branch on the scene configuration interface; correspondingly, the iPepe platform determines the incidence relation between the scene and the pipeline and the incidence relation between the pipeline and the code branch according to the operation of the developer on the scene configuration interface.
Fig. 3 is a flowchart of another method for packaging a web application according to an embodiment of the present disclosure, and on the basis of the above embodiment, further optimization is performed on "obtaining version information of a web application to be packaged according to configuration information of the web application to be packaged", so as to provide an optional implementation scheme. As shown in fig. 3, the method for packaging a web application of this embodiment may include:
s301, in the process of compiling the webpage application to be packaged, the name information of the code branch associated with the webpage application to be packaged is obtained according to the compiling instruction in the configuration information.
In this embodiment, the code branch associated with the to-be-packaged web application is a code branch for storing the source code, the configuration information, and the like of the to-be-packaged web application in the icode platform.
Specifically, in the process of compiling the web application to be packaged, a field in the configuration information is analyzed to obtain a compiling instruction in the configuration information, and then name information of a code branch associated with the web application to be packaged is obtained according to a variable associated with the code branch in the compiling instruction.
S302, determining the version information of the webpage application to be packaged according to the name information of the code branch.
In an optional mode, identification information may be added to the header information of the code branch, and the header information to which the identification information is added is used as version information of the web application to be packaged.
In another optional mode, hash operation may be performed on the header information of the code branch, and an obtained hash result is used as version information of the to-be-packaged web page application.
In another alternative, the name information of the code branch is used as the version information of the web application to be packaged.
S303, writing the version information into the version description file.
S304, generating a packaging file of the webpage application to be packaged according to the version description file and the compiling file of the webpage application to be packaged.
According to the technical scheme of the embodiment, in the process of compiling the webpage application to be packaged, the name information of the code branch associated with the webpage application to be packaged is obtained according to the compiling instruction in the configuration information, then the version information of the webpage application to be packaged is determined according to the name information of the code branch, the version information is written into the version description file, and then the packaged file of the webpage application to be packaged is generated according to the version description file and the compiling file of the webpage application to be packaged. According to the technical scheme, the name information of the code branch is used as the version information, so that the automation degree is higher, and the accuracy of determining the version information is improved.
On the basis of the foregoing embodiments, as an optional manner of the present disclosure, a web application to be packaged may be further selected from the candidate packaged web applications according to at least one of the following: code submission frequency of code branches of the candidate packed web application; priority of code branches of the candidate packed web application.
And the candidate packaged webpage application is the webpage application needing to be packaged. The code commit frequency is the number of times compilation is triggered over a period of time.
For example, the web page application to be packaged may be selected from the candidate packaged web page applications according to the code submission frequency of the code branch of the candidate packaged web page application. Specifically, a target code branch may be selected from the code branches corresponding to the candidate packed web page applications according to the code submission frequency, for example, a code branch with a low code submission frequency may be used as a target code branch, and then the candidate packed web page application corresponding to the target code branch is used as the web page application to be packed.
Illustratively, the web page application to be packaged can also be selected from the candidate packaged web page applications according to the priority of the code branch of the candidate packaged web page application. The priority of the code branch may be determined according to the identity level of the target server that needs to be deployed for the web application to be packaged, for example, the higher the identity level of the target server is, the higher the priority of the code branch is.
Specifically, a target code branch may be selected from the code branches corresponding to the candidate packed web page applications according to the priority of the code branch, for example, a code branch with a high priority may be used as the target code branch, and then the candidate packed web page applications corresponding to the target code branch are used as the web page applications to be packed.
For example, the webpage application to be packaged can be selected from the candidate packaged webpage applications according to the code submission frequency and the priority of the code branch of the candidate packaged webpage applications.
It can be understood that the code submission frequency and the priority are introduced to determine the webpage application to be packaged, and the candidate packaged webpage applications can be packaged in a balanced manner, so that the packaging efficiency of the webpage application to be packaged is improved.
Fig. 4 is a schematic structural diagram of a web application packaging apparatus according to an embodiment of the present disclosure. The method is suitable for the situation of packaging the webpage application. The method can be executed by a web application packaging device, which can be implemented in software and/or hardware, and can be integrated into an electronic device configured with a web application packaging function, such as a server. As shown in fig. 4, the web application packaging apparatus 400 includes:
the version information acquiring module 401 is configured to acquire version information of the web application to be packaged according to configuration information of the web application to be packaged in the process of compiling the web application to be packaged;
a version information writing module 402, configured to write the version information into the version description file;
and a package file generating module 403, configured to generate a package file of the web application to be packaged according to the version description file and the compiled file of the web application to be packaged.
According to the technical scheme of the embodiment of the disclosure, in the process of compiling the webpage application to be packaged, the version information of the webpage application to be packaged is obtained according to the configuration information of the webpage application to be packaged, the version information is written into the version description file, and then the packaging file of the webpage application to be packaged is generated according to the version description file and the compiling file of the webpage application to be packaged. According to the technical scheme, the version information of the webpage application is automatically injected into the packaged file, and a non-invasive automatic product version injection mode is provided; meanwhile, when the web application is maintained subsequently, the code branch corresponding to the web application can be quickly positioned based on the version information and repaired, so that the satisfaction degree of an application user is improved; in addition, compared with the traditional mode of manually recording version information, the technical scheme of the disclosure reduces the labor cost and improves the webpage application packaging efficiency and accuracy.
Further, the version information obtaining module 401 is specifically configured to:
and under the condition that the webpage application to be packaged meets the compiling condition, acquiring the version information of the webpage application to be packaged according to the compiling instruction in the configuration information.
Further, the apparatus further comprises:
a scene determination module for determining a first compilation scene;
the scene comparison module is used for comparing the first compiling scene with a second compiling scene in the configuration information;
and the compiling condition determining module is used for determining that the webpage application to be packaged meets the compiling condition if the webpage application to be packaged is consistent with the compiling condition.
Further, the version information obtaining module 401 is specifically configured to:
acquiring name information of a code branch associated with the webpage application to be packaged according to a compiling instruction in the configuration information;
and determining the version information of the webpage application to be packaged according to the name information of the code branch.
Further, the apparatus further comprises:
the to-be-packaged application determining module is used for selecting the to-be-packaged webpage application from the candidate packaged webpage applications according to at least one of the following items:
code submission frequency of code branches of the candidate packed web application;
priority of code branches of the candidate packed web application.
Further, the apparatus further comprises:
and the compiling file determining module is used for compiling the source code of the webpage application to be packaged in the process of compiling the webpage application to be packaged to obtain the compiling file of the webpage application to be packaged.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related packed file data, version description file data, to-be-packed webpage application data and the like all accord with the regulations of related laws and regulations without violating the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 5 illustrates a schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the electronic device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the electronic device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 501 executes the respective methods and processes described above, such as the web application packaging method. For example, in some embodiments, the web page application packaging method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the web application packaging method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the web application packaging method in any other suitable manner (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
Artificial intelligence is the subject of research that makes computers simulate some human mental processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), both at the hardware level and at the software level. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, a machine learning/deep learning technology, a big data processing technology, a knowledge map technology and the like.
Cloud computing (cloud computing) refers to a technology system that accesses a flexibly extensible shared physical or virtual resource pool through a network, where resources may include servers, operating systems, networks, software, applications, storage devices, and the like, and may be deployed and managed in a self-service manner as needed. Through the cloud computing technology, high-efficiency and strong data processing capacity can be provided for technical application and model training of artificial intelligence, block chains and the like.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (15)

1. A webpage application packaging method comprises the following steps:
in the process of compiling the webpage application to be packaged, acquiring the version information of the webpage application to be packaged according to the configuration information of the webpage application to be packaged;
writing the version information into a version description file;
and generating a packaging file of the webpage application to be packaged according to the version description file and the compiling file of the webpage application to be packaged.
2. The method of claim 1, wherein the obtaining of the version information of the web application to be packaged according to the configuration information of the web application to be packaged comprises:
and under the condition that the webpage application to be packaged meets the compiling condition, acquiring the version information of the webpage application to be packaged according to the compiling instruction in the configuration information.
3. The method of claim 2, further comprising:
determining a first compilation scenario;
comparing the first compiling scene with a second compiling scene in the configuration information;
and if so, determining that the webpage application to be packaged meets the compiling condition.
4. The method of claim 1, wherein the obtaining of the version information of the web application to be packaged according to the configuration information of the web application to be packaged comprises:
acquiring name information of a code branch associated with the webpage application to be packaged according to a compiling instruction in the configuration information;
and determining the version information of the webpage application to be packaged according to the name information of the code branch.
5. The method of claim 1, further comprising:
selecting a web application to be packaged from the candidate packaged web applications according to at least one of the following items:
code submission frequency of code branches of the candidate packed web application;
priority of code branches of the candidate packed web application.
6. The method of claim 1, further comprising:
and compiling the source code of the webpage application to be packaged in the process of compiling the webpage application to be packaged to obtain a compiled file of the webpage application to be packaged.
7. A web application packaging apparatus comprising:
the version information acquisition module is used for acquiring the version information of the webpage application to be packaged according to the configuration information of the webpage application to be packaged in the process of compiling the webpage application to be packaged;
the version information writing module is used for writing the version information into a version description file;
and the packaging file generation module is used for generating a packaging file of the webpage application to be packaged according to the version description file and the compiling file of the webpage application to be packaged.
8. The apparatus according to claim 7, wherein the version information obtaining module is specifically configured to:
and under the condition that the webpage application to be packaged meets the compiling condition, acquiring the version information of the webpage application to be packaged according to the compiling instruction in the configuration information.
9. The apparatus of claim 8, further comprising:
a scene determination module for determining a first compilation scene;
the scene comparison module is used for comparing the first compiling scene with a second compiling scene in the configuration information;
and the compiling condition determining module is used for determining that the webpage application to be packaged meets the compiling condition if the webpage application to be packaged is consistent with the compiling condition.
10. The apparatus according to claim 7, wherein the version information obtaining module is specifically configured to:
acquiring name information of a code branch associated with the webpage application to be packaged according to a compiling instruction in the configuration information;
and determining the version information of the webpage application to be packaged according to the name information of the code branch.
11. The apparatus of claim 7, further comprising:
a to-be-packaged application determining module, configured to select a to-be-packaged web application from the candidate packaged web applications according to at least one of:
code submission frequency of code branches of the candidate packed web application;
priority of code branches of the candidate packed web application.
12. The apparatus of claim 7, further comprising:
and the compiling file determining module is used for compiling the source code of the webpage application to be packaged in the process of compiling the webpage application to be packaged to obtain the compiling file of the webpage application to be packaged.
13. An electronic device, comprising:
at least one processor; and
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 web page application packaging method of any of claims 1-6.
14. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the web page application packaging method according to any one of claims 1-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the web application packaging method of any of claims 1-6.
CN202210132344.2A 2022-02-14 2022-02-14 Webpage application packaging method, device, equipment and storage medium Pending CN114489774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210132344.2A CN114489774A (en) 2022-02-14 2022-02-14 Webpage application packaging method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210132344.2A CN114489774A (en) 2022-02-14 2022-02-14 Webpage application packaging method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114489774A true CN114489774A (en) 2022-05-13

Family

ID=81481040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210132344.2A Pending CN114489774A (en) 2022-02-14 2022-02-14 Webpage application packaging method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114489774A (en)

Similar Documents

Publication Publication Date Title
US11151024B2 (en) Dynamic automation of DevOps pipeline vulnerability detecting and testing
CN113342345A (en) Operator fusion method and device of deep learning framework
US9626164B1 (en) Test-driven development module for repository-based development
US20170315803A1 (en) Method and apparatus for generating a refactored code
CN109634587B (en) Method and equipment for generating warehousing script and warehousing data
CN112328301B (en) Method and device for maintaining consistency of operating environments, storage medium and electronic equipment
CN112527281B (en) Operator upgrading method and device based on artificial intelligence, electronic equipment and medium
CN112783508B (en) File compiling method, device, equipment and storage medium
CN113220367A (en) Applet running method and device, electronic equipment and storage medium
CN113778849A (en) Method, apparatus, device and storage medium for testing code
CN113032258A (en) Electronic map testing method and device, electronic equipment and storage medium
CN114492370B (en) Webpage identification method, webpage identification device, electronic equipment and medium
US11726818B1 (en) System for executing tasks in different programming languages
CN110674491B (en) Method and device for real-time evidence obtaining of android application and electronic equipment
CN114489774A (en) Webpage application packaging method, device, equipment and storage medium
CN114816393A (en) Information generation method, device, equipment and storage medium
CN114741294A (en) Page debugging method, device, equipment and storage medium
CN114048315A (en) Method and device for determining document tag, electronic equipment and storage medium
CN112596814A (en) Method, apparatus, device, medium and program product for integrated packaging of items
CN108255802B (en) Universal text parsing architecture and method and device for parsing text based on architecture
CN113760765B (en) Code testing method and device, electronic equipment and storage medium
CN113836712B (en) Indoor simulation method, device, equipment and medium for lane-level navigation
CN113239296B (en) Method, device, equipment and medium for displaying small program
US20230012881A1 (en) Method and apparatus for reading data, electronic device and storage medium
US20220019516A1 (en) Determining a recommended software-stack for a target software item

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