Method and terminal for automatically constructing front-end project

An automatic construction and project technology, applied in the network field, can solve problems affecting the development efficiency of front-end projects, and achieve the effects of convenient construction, improved efficiency, and simplified development process

Pending Publication Date: 2020-05-12
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Generally speaking, which environment the front-end project is packaged in, the packaged file is stored in that environment, and one front-end environment of the front-end project corresponds to one server address. Therefore, when the front-end project needs to be uploaded to different environments, it is necessary to The project is packaged once and then uploaded to the corresponding environment, and the server address and corresponding configuration files need to be manually changed, which affects the development efficiency of the front-end project

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and terminal for automatically constructing front-end project
  • Method and terminal for automatically constructing front-end project
  • Method and terminal for automatically constructing front-end project

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] Please refer to figure 1 , a method for automatic construction of front-end projects, specifically, including steps:

[0062] S1. Install the packages that the front-end project depends on;

[0063] Specifically, when the front-end project is being developed, the Maven project management tool is used to realize the management and automatic construction of the front-end project. The configuration and construction dependencies of the Maven project are written in the pom.xml file, and the configuration of the project construction is configured in the pom.xml file. way of execution, through The tag gives a specific implementation of the general plug-in. In the pom.xml file, define the execution mode of the command "npm install" that installs the package that the front-end project depends on. The definition is as follows:

[0064]

[0065] Among them, id indicates the operation identifier of the configuration information, goals indicates the goal of the plug-in to ...

Embodiment 2

[0088] Please refer to figure 2 , a terminal for automatic construction of front-end projects, the terminal 1 includes a memory 2, a processor 3, and a computer program stored in the memory 2 and operable on the processor 3, and the processor 3 executes the computer program The program realizes each step in the first embodiment.

[0089] To sum up, the method and terminal for automatically building a front-end project provided by the present invention enable the front-end project to use the shared code provided by the package to facilitate the construction of the front-end project by installing the package that the front-end project depends on. The environment variable is used to automatically obtain the current execution environment of the front-end project to be built, run the packaging command, conduct a code specification check on the front-end project, unify the code specification of the team, limit the overall structure and mode of the code, and make the project co...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a terminal for automatically constructing a front-end project. The method comprises the following steps of: installing a packet on which a front-end project to beconstructed depends; obtaining an execution environment of a front-end project to be constructed; and a packet based on the dependency, packaging a front-end project to be constructed and issuing thepackaged front-end project to a corresponding environment according to the execution environment, according to the method, automatic construction of the front-end project is realized, the front-end project only needs to be packaged once by acquiring the execution environment of the front-end project, different environments can be automatically distinguished according to the execution environment,and then the packaged front-end project is directly published to the corresponding environment, so that the development process is simplified, and the development efficiency of the front-end project is improved.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a method for automatically building a front-end project and a terminal. Background technique [0002] A standard front-end project usually goes through babel compilation, webpack construction, server startup and other processes. During the webpack construction process, webpack will build the project into a format that can be recognized by the browser, and then publish it to the online environment, displaying On the browser, you need to use the npm run build command to package the front-end project during this process. When the package is executed, a dist folder and index.html file will be generated, and then the file will be saved in the corresponding directory of the server. Start the server, and you can browse the front-end project through the browser. Generally speaking, which environment the front-end project is packaged in, the packaged file is stored in that environment, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/71G06F8/76
CPCG06F8/71G06F8/76
Inventor 刘德建王丹丹郭玉湖陈宏
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products