CN114090061B - Front-end file self-adapting packaging method, device and storage medium - Google Patents

Front-end file self-adapting packaging method, device and storage medium Download PDF

Info

Publication number
CN114090061B
CN114090061B CN202111319535.1A CN202111319535A CN114090061B CN 114090061 B CN114090061 B CN 114090061B CN 202111319535 A CN202111319535 A CN 202111319535A CN 114090061 B CN114090061 B CN 114090061B
Authority
CN
China
Prior art keywords
file
characteristic
packaging
necessary
feature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111319535.1A
Other languages
Chinese (zh)
Other versions
CN114090061A (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.)
Chaozhou Zhuoshu Big Data Industry Development Co Ltd
Original Assignee
Chaozhou Zhuoshu Big Data Industry Development 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 Chaozhou Zhuoshu Big Data Industry Development Co Ltd filed Critical Chaozhou Zhuoshu Big Data Industry Development Co Ltd
Priority to CN202111319535.1A priority Critical patent/CN114090061B/en
Publication of CN114090061A publication Critical patent/CN114090061A/en
Application granted granted Critical
Publication of CN114090061B publication Critical patent/CN114090061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a method, equipment and a storage medium for self-adapting and packaging of a front-end file, which are used for solving the technical problem that the prior art lacks a method for self-adapting and packaging the front-end file according to personalized requirements, so that the method cannot adapt to multiple personalized requirements under public projects. The method comprises the following steps: determining necessary files constituting the necessary components of the page in the front-end file and determining characteristic requirement files constituting the characteristic components of the page in response to the front-end file packaging instruction; modifying the names of the feature demand files into feature environment variable names containing feature marks; and determining the feature demand file to be packaged based on the preset feature environment variable demand information, and packaging the feature demand file to be packaged and the necessary file. The method ensures that the packed package only contains the front-end files needed by people, and avoids that a plurality of useless code files are organized into the final package, thereby influencing the loading speed.

Description

Front-end file self-adapting packaging method, device and storage medium
Technical Field
The present application relates to the field of Web front-end development technologies, and in particular, to a method, an apparatus, and a storage medium for self-adaptive packaging of front-end files.
Background
With continuous complicating and diversifying of Web services, the traditional front-end technology is difficult to support complex service logic, development is time-consuming and labor-consuming, and later maintenance cost is huge. With these problems, front-end modularity, engineering has grown, and development of the front-end using techniques and methods of software engineering has become standardized.
Webpack is a modular packer that plays a significant role in front-end automation construction. Before the module packer is not provided, the code integration is realized through manual introduction. Codes are only files, and have no inherent dependency relationship with each other, so that strict sequence is introduced. After the module packer appears, the automated build tool takes over our manual code organization, bringing convenience to us.
However, there are some drawbacks, and sometimes, many useless codes are also organized into the final package, so a method for self-adaptive packaging of the front-end file according to the personalized needs is needed.
Disclosure of Invention
The embodiment of the application provides a method, equipment and storage medium for self-adapting and packaging of a front-end file, which are used for solving the technical problem that the prior art lacks a method for self-adapting and packaging the front-end file according to personalized requirements, so that the method cannot adapt to multiple personalized requirements under public projects.
In a first aspect, an embodiment of the present application provides a method for self-adapting packaging of a front-end file, where the method includes: determining necessary files constituting the necessary components of the page in the front-end file and determining characteristic requirement files constituting the characteristic components of the page in response to the front-end file packaging instruction; the front-end file packaging instruction comprises a packaging instruction and an operation instruction; modifying the names of the feature demand files into feature environment variable names containing feature marks; the characteristic mark is used for distinguishing the necessary file and the characteristic demand file; and determining the feature demand file to be packaged based on the preset feature environment variable demand information, and packaging the feature demand file to be packaged and the necessary file.
According to the front-end file self-adapting packaging method provided by the embodiment of the application, under the condition that the front-end file needs to be self-adapting packaged, the front-end file is firstly classified into necessary files and characteristic files, and then the characteristic files are subjected to name modification so as to conveniently distinguish the two types of files; and then, carrying out self-adapting packaging on the front-end file according to the preset characteristic environment variable demand information. The embodiment of the application ensures that the packed package only contains the front-end file required by people through the method, and avoids that a plurality of useless code files are organized into the final package, thereby influencing the loading speed.
In one implementation of the present application, determining the necessary files constituting the necessary components of the page in the front-end file, and determining the feature requirement files constituting the feature components of the page specifically includes: determining a corresponding plurality of necessary component entry files in the front-end file based on a preset plurality of necessary component entry identifiers; determining a plurality of corresponding characteristic component inlet files in the front-end file based on a plurality of preset characteristic component inlet identifiers; determining necessary files forming the necessary components of the page and characteristic requirement files forming the characteristic components of the page respectively through the necessary component inlet files and the characteristic component inlet files; the essential component entry file is used for storing a main function for running the corresponding component, and the characteristic component entry file is used for storing the main function for running the corresponding component.
In one implementation of the present application, determining the necessary files forming the necessary components of the page and the feature requirement files forming the feature components of the page respectively through the necessary component entry files and the feature component entry files specifically includes: determining a necessary component entry file as a necessary file constituting a necessary component of the page, and determining a front-end file linked in the necessary component entry file as a necessary file constituting the necessary component of the page; and determining the front-end file of the feature component inlet as a feature requirement file for forming the page feature component, and determining the linked file in the feature component inlet file as the feature requirement file for forming the page feature component.
In one implementation of the application, before responding to the front-end file packaging instruction, the method further comprises: establishing a front-end file library, and storing the front-end file in the front-end file library; and establishing an index catalog in the front-end file library.
In one implementation of the present application, after the front-end file library is established, the method further includes: according to the characteristic page demand information, determining characteristic environment variable demand information of self-adaptive packaging, and storing the characteristic environment variable demand information in a front-end file library; the special environment variable demand information comprises a plurality of special environment variable names.
In one implementation of the present application, based on preset feature environment variable requirement information, determining a feature requirement file to be packaged, and packaging the feature requirement file to be packaged with a necessary file, including: the characteristic environment variable demand information is injected into a front-end file library to determine characteristic demand files to be packaged; determining whether the front-end file packing instruction is an operation packing instruction; under the condition that the front-end file packaging instruction is determined to be an operation packaging instruction, defining a characteristic environment variable name corresponding to a characteristic requirement file to be packaged and an environment variable name corresponding to a necessary file as global variables; and packaging the feature demand file to be packaged and the necessary file, and storing the packaged package in a system memory.
In one implementation of the present application, the method further comprises: and under the condition that the front-end file packaging instruction is determined to be a running packaging instruction, packaging the feature demand file to be packaged and the necessary file, and storing the packaged package in a system disk.
In one implementation of the present application, the feature environment variable requirement information is injected into a front-end file library to determine a feature requirement file to be packaged, which specifically includes: responding to an environment variable injection instruction, and injecting characteristic environment variable demand information into a front-end file library; based on the characteristic mark, the front-end file library extracts the characteristic requirement files into a front-end file pool, and matches a plurality of characteristic environment variable names contained in the characteristic environment variable requirement information with the characteristic requirement files in the front-end file pool one by one so as to determine the characteristic requirement files to be packaged.
In a second aspect, an embodiment of the present application further provides a device for self-adaptive packaging of a front-end file, where the device includes: a processor; and a memory having executable code stored thereon which, when executed, causes the processor to perform a method as claimed in any one of claims 1 to 8.
In a third aspect, an embodiment of the present application further provides a front-end file self-adaptive packaging nonvolatile computer storage medium, storing computer executable instructions, where the computer executable instructions are configured to: determining necessary files constituting the necessary components of the page in the front-end file and determining characteristic requirement files constituting the characteristic components of the page in response to the front-end file packaging instruction; the front-end file packaging instruction comprises a packaging instruction and an operation instruction; modifying the names of the feature demand files into feature environment variable names containing feature marks; the characteristic mark is used for distinguishing the necessary file and the characteristic demand file; and determining the feature demand file to be packaged based on the preset feature environment variable demand information, and packaging the feature demand file to be packaged and the necessary file.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flowchart of a method for self-adapting packaging of front-end files according to an embodiment of the present application;
fig. 2 is a schematic diagram of an internal structure of a device for self-adapting and packaging front-end files according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application provides a method, equipment and storage medium for self-adapting and packaging of a front-end file, which are used for solving the technical problem that the prior art lacks a method for self-adapting and packaging the front-end file according to personalized requirements, so that the method cannot adapt to multiple personalized requirements under public projects.
The following describes the technical scheme provided by the embodiment of the application in detail through the attached drawings.
Fig. 1 is a flowchart of a method for self-adapting and packaging a front-end file according to an embodiment of the present application. As shown in fig. 1, the method for self-adapting and packaging a front-end file provided by the embodiment of the application mainly includes the following steps:
Step 101, responding to the front-end file packaging instruction, determining necessary files forming necessary components of the page in the front-end file, and determining characteristic requirement files forming characteristic components of the page.
It should be noted that, in order to provide a data storage environment for a method for self-adapting packaging of a front-end file provided by the embodiment of the present application, before responding to a front-end file packaging instruction, the embodiment of the present application needs to establish a front-end file library, and store the front-end file in the front-end file library. In addition, in order to facilitate the update and maintenance of the front-end file in the later period, the embodiment of the application also needs to establish an index directory in the front-end file library.
In one embodiment of the present application, after the front-end file library is established, in order to ensure that the corresponding feature requirement file is selected according to the self-adaptive packaging, before responding to the front-end file packaging instruction, the self-adaptive packaged feature environment variable requirement information is determined according to the feature page requirement information, and the feature environment variable requirement information is stored in the front-end file library.
It can be understood that the distinctive page requirement information is information about what kind of distinctive components need to be added to the page, and the distinctive environment variable requirement information is specific required distinctive component information or part information of a certain distinctive component determined according to the distinctive page requirement information. The special environment variable demand information comprises a plurality of special environment variable names. In addition, it is also understood that the unique environment variable demand information may be determined from the unique page demand information and stored in the front-end file repository for selection.
In one embodiment of the application, after a front-end file library is established and the front-end file and characteristic environment variable demand information are stored in the front-end file library, if a front-end file packaging instruction is received, a plurality of corresponding necessary component inlet files are determined in the front-end file based on a plurality of preset necessary component inlet identifiers; determining a plurality of corresponding characteristic component inlet files in the front-end file based on a plurality of preset characteristic component inlet identifiers; the essential component entry file is used for storing a main function for running the corresponding component, and the characteristic component entry file is used for storing the main function for running the corresponding component. Then, the determined necessary component entry file is first determined as a necessary file constituting the necessary component of the page, and the determined feature component entry file is determined as a feature requirement file constituting the feature component of the page. And determining the front-end file linked in the necessary component entry file as the necessary file for forming the necessary component of the page, and determining the front-end file linked in the characteristic component entry file as the characteristic requirement file for forming the characteristic component of the page.
It is understood that the front-end file is a file required for forming a page, such as a code file, a picture, a text, etc.; the necessary components are components which form the page and are necessary to exist or fixed components in the specified page, and the characteristic components are components which form the specific components of the page and can be adjusted according to the requirements or preference; the necessary file is a front-end file related to the necessary component, and the feature demand file is a front-end file related to the feature component.
It should be noted that, since other front end files may be linked in the front end files linked in the necessary component entry files, determining the front end files linked in the necessary component entry files as necessary files constituting the necessary components of the page and the front end files linked in the feature component entry files as feature requirement files constituting the feature components of the page are determining that the front end files linked in the component entry files and the front end files of the respective levels linked in the front end files are all necessary files or feature requirement files.
It should also be noted that the method for self-adapting packaging of front-end files provided by the application can be used for packaging front-end files in an application development stage and also can be used for packaging front-end files in an application starting stage. Thus, the front-end file packaging instructions may include two types: packaging instructions and running instructions. The packaging instruction corresponds to the packaging of the front-end file of the application development stage, and the running instruction corresponds to the packaging of the front-end file of the application starting stage.
Step 102, the names of the feature requirement files are modified into feature environment variable names containing feature marks.
In one embodiment of the application, after determining the necessary files constituting the necessary components of the page in the front-end file and the feature demand files constituting the feature components of the page, the names of the feature demand files are modified to feature environment variable names containing feature flags; the feature mark is used for distinguishing the necessary file from the feature demand file.
And step 103, determining a characteristic demand file to be packaged based on preset characteristic environment variable demand information, and packaging the characteristic demand file to be packaged and the necessary file.
In one embodiment of the present application, after the name of the feature requirement file is modified to the feature environment variable name including the feature flag, an environment variable injection instruction is triggered, and feature environment variable requirement information is injected into the front-end file library based on the environment variable injection instruction. And then the front-end file library extracts all the characteristic requirement files into the front-end file pool based on the characteristic marks, and matches a plurality of characteristic environment variable names contained in the characteristic environment variable requirement information with the characteristic requirement files in the front-end file pool one by one so as to determine the characteristic requirement files to be packaged. It should be noted that the front-end file pool may be a certain storage space in the front-end file library, or may be a certain storage space outside the front-end file library, which is mainly used for screening the feature requirement files.
In one embodiment of the application, after determining the feature demand file to be packaged, the type of front-end file packaging instruction is determined. Under the condition that the front-end file packaging instruction is determined to be an operation packaging instruction, defining a characteristic environment variable name corresponding to a characteristic requirement file to be packaged and an environment variable name corresponding to a necessary file as global variables for a loaded page to use; meanwhile, the feature demand file to be packaged and the necessary file are packaged, and the packaged package is stored in a system memory so as to operate the package.
In one embodiment of the application, under the condition that the front-end file packaging instruction is determined to be a running packaging instruction, the feature demand file to be packaged and the necessary file are packaged, and the packaged package is stored in a system disk.
Based on the same inventive concept, the embodiment of the application also provides a front-end file self-adapting packaging device, and the internal structure of the front-end file self-adapting packaging device is shown in fig. 2.
Fig. 2 is a schematic diagram of an internal structure of a device for self-adapting and packaging front-end files according to an embodiment of the present application. As shown in fig. 2, the apparatus includes: a processor 201; the memory 202 has stored thereon executable instructions that, when executed, cause the processor 201 to perform a method of front-end file self-adaptation packaging as described above.
In one embodiment of the application, the processor 201 is configured to determine, in response to a front-end file packaging instruction, necessary files that constitute necessary components of a page in the front-end file, and feature requirement files that constitute feature components of the page; the front-end file packaging instruction comprises a packaging instruction and an operation instruction; modifying the names of the feature demand files into feature environment variable names containing feature marks; the characteristic mark is used for distinguishing the necessary file and the characteristic demand file; and determining the feature demand file to be packaged based on the preset feature environment variable demand information, and packaging the feature demand file to be packaged and the necessary file.
Some embodiments of the application provide a non-volatile computer storage medium corresponding to the front-end file self-adaptation package of fig. 1, storing computer-executable instructions configured to:
Determining necessary files constituting the necessary components of the page in the front-end file and determining characteristic requirement files constituting the characteristic components of the page in response to the front-end file packaging instruction; the front-end file packaging instruction comprises a packaging instruction and an operation instruction;
modifying the names of the feature demand files into feature environment variable names containing feature marks; the characteristic mark is used for distinguishing the necessary file and the characteristic demand file;
and determining the feature demand file to be packaged based on the preset feature environment variable demand information, and packaging the feature demand file to be packaged and the necessary file.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the internet of things device and the medium embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and the relevant points are referred to in the description of the method embodiment.
The system, the medium and the method provided by the embodiment of the application are in one-to-one correspondence, so that the system and the medium also have similar beneficial technical effects to the corresponding method, and the beneficial technical effects of the method are explained in detail above, so that the beneficial technical effects of the system and the medium are not repeated here.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (8)

1. A method for self-adapting packaging of a front-end file, the method comprising:
Determining necessary files constituting the necessary components of the page in the front-end file and determining characteristic requirement files constituting the characteristic components of the page in response to the front-end file packaging instruction; the front-end file packaging instruction comprises a packaging instruction and an operation instruction;
modifying the name of the special demand file into a special environment variable name containing a special mark; the characteristic mark is used for distinguishing a necessary file and a characteristic demand file;
Determining a feature demand file to be packaged based on preset feature environment variable demand information, and packaging the feature demand file to be packaged and the necessary file;
Before responding to the front-end file packaging instruction, the method further comprises:
establishing a front-end file library, and storing the front-end file in the front-end file library;
Establishing an index catalog in the front-end file library;
Based on preset characteristic environment variable demand information, determining a characteristic demand file to be packaged, and packaging the characteristic demand file to be packaged and the necessary file, wherein the method specifically comprises the following steps:
the characteristic environment variable demand information is injected into the front-end file library to determine characteristic demand files to be packaged;
Determining whether the front-end file packaging instruction is an operation instruction;
Under the condition that the front-end file packaging instruction is an operation instruction, defining a characteristic environment variable name corresponding to the characteristic requirement file to be packaged and an environment variable name corresponding to the necessary file as global variables;
and packaging the feature demand file to be packaged and the necessary file, and storing the packaged package in a system memory.
2. The method for self-adapting packaging of a front-end document according to claim 1, wherein determining the necessary documents constituting the necessary components of the page and determining the feature requirement documents constituting the feature components of the page in the front-end document specifically comprises:
Determining a corresponding plurality of necessary component entry files in the front-end file based on a preset plurality of necessary component entry identifiers; and
Determining a plurality of corresponding characteristic component inlet files in the front-end file based on a plurality of preset characteristic component inlet identifiers;
determining necessary files forming the necessary components of the page and characteristic requirement files forming the characteristic components of the page respectively through the necessary component inlet files and the characteristic component inlet files;
The necessary component entry file is used for storing a main function for running the corresponding component, and the characteristic component entry file is used for storing the main function for running the corresponding component.
3. The method for self-adapting packaging of a front-end document according to claim 2, wherein determining the necessary document forming the necessary component of the page and the feature requirement document forming the feature component of the page through the necessary component entry document and the feature component entry document, respectively, specifically comprises:
determining a necessary component entry file as a necessary file constituting a necessary component of the page, and determining a front-end file linked in the necessary component entry file as a necessary file constituting the necessary component of the page; and
And determining the characteristic component inlet file as a characteristic requirement file for forming the page characteristic component, and determining the front-end file linked in the characteristic component inlet file as the characteristic requirement file for forming the page characteristic component.
4. The method for self-adapting packaging of a front-end file according to claim 1, wherein after the front-end file library is built, the method further comprises:
According to the characteristic page demand information, determining characteristic environment variable demand information of self-adaptive packaging, and storing the characteristic environment variable demand information in the front-end file library; the special environment variable demand information comprises a plurality of special environment variable names.
5. The method for self-adapting packaging of a front-end file according to claim 1, further comprising:
And under the condition that the front-end file packaging instruction is determined to be a packaging instruction, packaging the feature demand file to be packaged and the necessary file, and storing the packaged package in a system disk.
6. The method for self-adapting packaging of a front-end file according to claim 1, wherein the feature environment variable requirement information is injected into the front-end file library to determine a feature requirement file to be packaged, specifically comprising:
responding to an environment variable injection instruction, and injecting the characteristic environment variable demand information into the front-end file library;
Based on the characteristic mark, the front-end file library extracts the characteristic requirement files into a front-end file pool, and matches a plurality of characteristic environment variable names contained in the characteristic environment variable requirement information with the characteristic requirement files in the front-end file pool one by one so as to determine the characteristic requirement files to be packaged.
7. An apparatus for self-adapting packaging of a front-end file, the apparatus comprising:
A processor;
and a memory having executable code stored thereon that, when executed, causes the processor to perform a method as claimed in any one of claims 1 to 6.
8. A non-volatile computer storage medium having stored thereon computer executable instructions for self-adapting packaging of a front-end file, the computer executable instructions configured to:
Determining necessary files constituting the necessary components of the page in the front-end file and determining characteristic requirement files constituting the characteristic components of the page in response to the front-end file packaging instruction; the front-end file packaging instruction comprises a packaging instruction and an operation instruction;
modifying the name of the special demand file into a special environment variable name containing a special mark; the characteristic mark is used for distinguishing a necessary file and a characteristic demand file;
Determining a feature demand file to be packaged based on preset feature environment variable demand information, and packaging the feature demand file to be packaged and the necessary file;
before responding to the front-end file packaging instruction, the method further comprises the following steps:
establishing a front-end file library, and storing the front-end file in the front-end file library;
Establishing an index catalog in the front-end file library;
Based on preset characteristic environment variable demand information, determining a characteristic demand file to be packaged, and packaging the characteristic demand file to be packaged and the necessary file, wherein the method specifically comprises the following steps:
the characteristic environment variable demand information is injected into the front-end file library to determine characteristic demand files to be packaged;
Determining whether the front-end file packaging instruction is an operation instruction;
Under the condition that the front-end file packaging instruction is an operation instruction, defining a characteristic environment variable name corresponding to the characteristic requirement file to be packaged and an environment variable name corresponding to the necessary file as global variables;
and packaging the feature demand file to be packaged and the necessary file, and storing the packaged package in a system memory.
CN202111319535.1A 2021-11-09 2021-11-09 Front-end file self-adapting packaging method, device and storage medium Active CN114090061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111319535.1A CN114090061B (en) 2021-11-09 2021-11-09 Front-end file self-adapting packaging method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111319535.1A CN114090061B (en) 2021-11-09 2021-11-09 Front-end file self-adapting packaging method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114090061A CN114090061A (en) 2022-02-25
CN114090061B true CN114090061B (en) 2024-05-10

Family

ID=80299647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111319535.1A Active CN114090061B (en) 2021-11-09 2021-11-09 Front-end file self-adapting packaging method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114090061B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002024032A (en) * 2000-06-21 2002-01-25 Microsoft Corp Method and system for compiling plurality of languages
CN111273898A (en) * 2020-02-25 2020-06-12 安徽以萨数据技术有限公司 Web front-end code automatic construction method, system and storage medium
CN112882782A (en) * 2021-02-08 2021-06-01 广州三七网络科技有限公司 Page generation method and device, computer equipment and storage medium
CN113238737A (en) * 2021-06-15 2021-08-10 挂号网(杭州)科技有限公司 Page packaging method and device, electronic equipment and storage medium
CN113449216A (en) * 2020-03-26 2021-09-28 腾讯科技(深圳)有限公司 File processing method and device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10725838B2 (en) * 2017-03-29 2020-07-28 Microsoft Technology Licensing, Llc Application startup control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002024032A (en) * 2000-06-21 2002-01-25 Microsoft Corp Method and system for compiling plurality of languages
CN111273898A (en) * 2020-02-25 2020-06-12 安徽以萨数据技术有限公司 Web front-end code automatic construction method, system and storage medium
CN113449216A (en) * 2020-03-26 2021-09-28 腾讯科技(深圳)有限公司 File processing method and device and storage medium
CN112882782A (en) * 2021-02-08 2021-06-01 广州三七网络科技有限公司 Page generation method and device, computer equipment and storage medium
CN113238737A (en) * 2021-06-15 2021-08-10 挂号网(杭州)科技有限公司 Page packaging method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114090061A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN107832275A (en) The generation method of intelligent Contract ID, apparatus and system in block chain
CN106990960B (en) Code deployment method and device
CN108874379B (en) Page processing method and device
CN112487083B (en) Data verification method and device
CN112947934A (en) Method, device and medium for dynamically transforming business logic
CN109634682A (en) The configuration file update method and device of application program
CN115841236A (en) Business modeling method, device and medium for realizing quick response
CN110990378A (en) Block chain-based data consistency comparison method, device and medium
CN110825764B (en) SQL script generation method, system, storage medium and processor
CN114138745A (en) Data integration method and device, storage medium and processor
CN114090061B (en) Front-end file self-adapting packaging method, device and storage medium
CN109582776B (en) Model generation method and device, electronic device and storage medium
CN110888723A (en) Timing task processing method and device
CN111125087A (en) Data storage method and device
CN118014489A (en) Method, equipment and medium for rapidly generating bill of materials
CN109960497A (en) Call method and device between a kind of script file
CN110969461B (en) Method and device for processing public number information, storage medium and processor
CN108241695B (en) Information processing method and device
CN111090825A (en) Dynamic customization method for webpage content
CN117093218B (en) Front-end interface rendering method, device and medium based on interface description
CN116643980A (en) Automatic testing method, system and storage medium based on priority execution
CN115061750B (en) Method, device, equipment and medium for componentized data interaction of application program
CN111208986B (en) Variable processing method and device, storage medium and processor
CN117850839A (en) Method and device for processing code of item, storage medium and electronic equipment
CN116578796A (en) Method, device, equipment and medium for building blockchain application

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