CN112181387A - Module management method in web multi-person collaborative development process - Google Patents

Module management method in web multi-person collaborative development process Download PDF

Info

Publication number
CN112181387A
CN112181387A CN202010940316.4A CN202010940316A CN112181387A CN 112181387 A CN112181387 A CN 112181387A CN 202010940316 A CN202010940316 A CN 202010940316A CN 112181387 A CN112181387 A CN 112181387A
Authority
CN
China
Prior art keywords
file
parameter array
writing
collaborative development
module
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
CN202010940316.4A
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.)
Shanghai Weiyi Intelligent Manufacturing Technology Co ltd
Changzhou Weiyizhi Technology Co Ltd
Original Assignee
Shanghai Weiyi Intelligent Manufacturing Technology Co ltd
Changzhou Weiyizhi 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 Shanghai Weiyi Intelligent Manufacturing Technology Co ltd, Changzhou Weiyizhi Technology Co Ltd filed Critical Shanghai Weiyi Intelligent Manufacturing Technology Co ltd
Priority to CN202010940316.4A priority Critical patent/CN112181387A/en
Publication of CN112181387A publication Critical patent/CN112181387A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a module management method in a web multi-person collaborative development process, which comprises the following steps: acquiring a parameter array corresponding to a construction tool, wherein the parameter array corresponds to a file name set to be created; detecting whether a target file exists; if yes, detecting the parameter array; after the parameter array is detected, reading a basic template file and writing the basic template file; and generating a service document according to the basic template file. And code content matched with the module name is automatically constructed according to the module name, so that the timeliness in the process of writing the code is greatly improved, the document content of the whole project is conveniently and uniformly managed, and convenience is provided for subsequent maintenance personnel. The daily writing efficiency is improved, the document content uniformity is standardized, and the iteration and daily maintenance of subsequent projects are simplified.

Description

Module management method in web multi-person collaborative development process
Technical Field
The invention relates to the technical field of development management of industrial internet, in particular to a module management method in a web multi-person collaborative development process.
Background
The web (world Wide web), a global Wide area network, also known as the world Wide web, is a hypertext and HTTP based, global, dynamically interactive, cross-platform, distributed graphical information system. The network service is built on the Internet, provides a graphical and easily accessible visual interface for a browser to search and browse information on the Internet, and documents and hyperlinks organize information nodes on the Internet into a mutually-associated mesh structure.
In the Web development process, multiple persons are needed to collaborate for development, and in the daily development process, the problems of confusion of module management and non-uniformity of file module contents during the development of multiple persons often occur.
Disclosure of Invention
The invention aims to provide a module management method in a web multi-user collaborative development process, aiming at automatically constructing code content matched with the module name according to the module name, greatly improving timeliness in the process of coding, facilitating unified management of document content of an integral project and providing convenience for subsequent maintenance personnel. The daily writing efficiency is improved, the document content uniformity is standardized, and the iteration and daily maintenance of subsequent projects are simplified.
In order to achieve the above object, there is provided a method for managing modules in a web multi-person collaborative development process, the method comprising:
acquiring a parameter array corresponding to a construction tool, wherein the parameter array corresponds to a file name set to be created;
detecting whether a target file exists;
if yes, detecting the parameter array;
after the parameter array is detected, reading a basic template file and writing the basic template file;
and generating a service document according to the basic template file.
In one implementation, the step of detecting whether the target file exists includes:
adopting an fs.existSync module in the node to detect whether a target file exists or not;
and if so, detecting the parameter array.
In one implementation, the method further includes:
and if the target file does not exist, writing and creating a file under the file directory corresponding to the project.
In one implementation, the method further comprises:
installing a current project directory file structure and inputting a creation instruction;
and automatically generating corresponding business documents and modules.
The module management method in the web multi-person collaborative development process provided by the embodiment of the invention has the following beneficial effects:
and code content matched with the module name is automatically constructed according to the module name, so that the timeliness in the process of writing the code is greatly improved, the document content of the whole project is conveniently and uniformly managed, and convenience is provided for subsequent maintenance personnel. The daily writing efficiency is improved, the document content uniformity is standardized, and the iteration and daily maintenance of subsequent projects are simplified.
Drawings
FIG. 1 is a block diagram of a module management method in a web multi-user collaborative development process according to an embodiment of the present invention;
fig. 2 is another embodiment of a method for managing modules in a web multi-user collaborative development process according to the embodiment of the present invention.
Fig. 3 is a further embodiment of a module management method in a web multi-user collaborative development process according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention.
Please refer to fig. 1-3. It should be noted that the drawings provided in the present embodiment are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
As shown in fig. 1-3, the present invention provides a module management method in a web multi-person collaborative development process, including:
s101, a parameter array corresponding to the construction tool is obtained, wherein the parameter array corresponds to a file name set needing to be created.
It should be noted that, acquiring the parameter content of the command line of the building tool may be a set of file names to be created, and thus, the file name set is built into the parameter array.
S102, detecting whether the target file exists or not.
Searching is carried out in a parameter array corresponding to the file name, whether a target file exists is confirmed, and specifically, whether a folder exists can be detected by using fs.existSync (path) in an fs module in a node.
If not, the file is written and created under the entry-corresponding file directory, as shown in FIG. 2.
S103, if the parameter array exists, detecting the parameter array.
And under the condition that the target file exists, detecting the parameter data according to iteration until the detection is finished, and ending the iteration process.
And S104, after the parameter array is detected, reading a basic template file and writing the basic template file.
By using the tool, the code content matched with the module name can be automatically constructed according to the module name, the daily writing efficiency is improved, the document content uniformity is standardized, and the iteration and the daily maintenance of subsequent projects are simplified.
And S105, generating a service document according to the basic template file.
The timeliness in the process of writing codes is greatly improved, and simultaneously the document content of the whole project is convenient to manage in a unified mode, and convenience is provided for subsequent maintenance personnel.
The fs file operation library in nodejs is adopted to retrieve the contents of each module in the current project target file, and the self-defined template content is bound to the target file, so that a series of files corresponding to the function module are quickly created, unified standardization of naming and file management during multi-user development is achieved, and the practical development scene that the corresponding contents of the function component module and the mutual reference relationship among the files need to be quickly generated in project engineering is met.
In a specific implementation of the invention, node, webpack and vuecli can be installed for building the base project. The purpose is as follows: the method is a practical scene which is necessary in daily development and is a necessary condition for implementing all the following operations.
Installing a simplified construction tool (super-generator) into the development environment of the basic project created by the step one by using an npm package management tool, and simultaneously injecting the content in the simplified construction tool into the basic project in the form of a project-dependent package
The purpose is as follows: the following dependent files of the code execution layer for executing commands
Json configuration files in the created base project are newly added with the following contents:
initializing a construction tool, ("init": cg init ");
creating the underlying code segment content autogenerator. js, ("create": cg create ")
Wherein, the "init" is the execution command, the "cg init" is the command execution file entry,
to simplify the build tool (super-generator), custom script execution commands are created in the project execution environment.
The operation is as follows: executing commands in the basic project terminal: npm run init
The purpose is as follows: automatically generating code fragment contents of autogenerator.js under a current project root directory, and paying attention to ensure that the style of a project development file is unified and is not required to be changed randomly;
the function is as follows: the realized automatic service code module realized in the step five is added with the content in the code segment in the autogenerator.
The operation is as follows: the basic item terminal executes the command npm run create-s pages src/views/test;
the purpose is as follows: the execution of the build tool script automatically writes the template file in the base project.
src/views: a current project file directory.
test: for the function module name that needs to be created.
In one implementation, the step of detecting whether the target file exists includes:
adopting an fs.existSync module in the node to detect whether a target file exists or not;
and if so, detecting the parameter array.
In one implementation, the method further includes:
and if the target file does not exist, writing and creating a file under the file directory corresponding to the project.
In one implementation, the method further comprises:
installing a current project directory file structure and inputting a creation instruction;
and automatically generating corresponding business documents and modules.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (4)

1. A module management method in a web multi-person collaborative development process is characterized by comprising the following steps:
acquiring a parameter array corresponding to a construction tool, wherein the parameter array corresponds to a file name set to be created;
detecting whether a target file exists;
if yes, detecting the parameter array;
after the parameter array is detected, reading a basic template file and writing the basic template file;
and generating a service document according to the basic template file.
2. The method for managing modules in the process of web multi-user collaborative development according to claim 1, wherein the step of detecting whether the target file exists comprises:
adopting an fs.existSync module in the node to detect whether a target file exists or not;
and if so, detecting the parameter array.
3. The method for managing modules in the process of web multi-person collaborative development according to claim 2, further comprising:
and if the target file does not exist, writing and creating a file under the file directory corresponding to the project.
4. The method for managing modules in the process of web multi-person collaborative development according to any one of claims 1 to 3, characterized in that the method further comprises:
installing a current project directory file structure and inputting a creation instruction;
and automatically generating corresponding business documents and modules.
CN202010940316.4A 2020-09-09 2020-09-09 Module management method in web multi-person collaborative development process Pending CN112181387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010940316.4A CN112181387A (en) 2020-09-09 2020-09-09 Module management method in web multi-person collaborative development process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010940316.4A CN112181387A (en) 2020-09-09 2020-09-09 Module management method in web multi-person collaborative development process

Publications (1)

Publication Number Publication Date
CN112181387A true CN112181387A (en) 2021-01-05

Family

ID=73920212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010940316.4A Pending CN112181387A (en) 2020-09-09 2020-09-09 Module management method in web multi-person collaborative development process

Country Status (1)

Country Link
CN (1) CN112181387A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254017A (en) * 2021-05-27 2021-08-13 平安普惠企业管理有限公司 Method, device, equipment and medium for generating development template file based on Vue framework

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332008A (en) * 2011-08-31 2012-01-25 北京邦诺存储科技有限公司 Standard file access protocol-based file management method and equipment
US20140032703A1 (en) * 2008-05-30 2014-01-30 Matthew A. Wormley System and method for an expandable computer storage system
WO2016165472A1 (en) * 2015-07-13 2016-10-20 中兴通讯股份有限公司 Method and device for creating virtual machine
US20160337392A1 (en) * 2014-06-11 2016-11-17 Tencent Technology (Shenzhen) Company Limited Web page vulnerability detection method and apparatus
CN106201642A (en) * 2016-06-29 2016-12-07 微梦创科网络科技(中国)有限公司 A kind of template automatization based on NODEJS compiling loading method and system
CN109947711A (en) * 2018-08-22 2019-06-28 重庆金康特智能穿戴技术研究院有限公司 A kind of multilingual file automating management method in pair of IOS project development process
CN110825452A (en) * 2019-10-10 2020-02-21 国云科技股份有限公司 Cloud service adaptation module management method for multi-cloud management
CN111488339A (en) * 2019-01-25 2020-08-04 上海哔哩哔哩科技有限公司 NoSQ L database based on node.JS, and establishing and processing method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140032703A1 (en) * 2008-05-30 2014-01-30 Matthew A. Wormley System and method for an expandable computer storage system
CN102332008A (en) * 2011-08-31 2012-01-25 北京邦诺存储科技有限公司 Standard file access protocol-based file management method and equipment
US20160337392A1 (en) * 2014-06-11 2016-11-17 Tencent Technology (Shenzhen) Company Limited Web page vulnerability detection method and apparatus
WO2016165472A1 (en) * 2015-07-13 2016-10-20 中兴通讯股份有限公司 Method and device for creating virtual machine
CN106201642A (en) * 2016-06-29 2016-12-07 微梦创科网络科技(中国)有限公司 A kind of template automatization based on NODEJS compiling loading method and system
CN109947711A (en) * 2018-08-22 2019-06-28 重庆金康特智能穿戴技术研究院有限公司 A kind of multilingual file automating management method in pair of IOS project development process
CN111488339A (en) * 2019-01-25 2020-08-04 上海哔哩哔哩科技有限公司 NoSQ L database based on node.JS, and establishing and processing method
CN110825452A (en) * 2019-10-10 2020-02-21 国云科技股份有限公司 Cloud service adaptation module management method for multi-cloud management

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JUNJIE: "node.js中的fs.existsSync方法使用说明", 《HTTPS://WWW.JB51.NET/ARTICLE/58629.HTM》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254017A (en) * 2021-05-27 2021-08-13 平安普惠企业管理有限公司 Method, device, equipment and medium for generating development template file based on Vue framework

Similar Documents

Publication Publication Date Title
CN102541521B (en) Automatic operating instruction generating device based on structured query language and method
CN102591647B (en) Desktop application is converted to web application
CN105243159A (en) Visual script editor-based distributed web crawler system
CN110196725A (en) Configuration file management method, apparatus, computer equipment and storage medium
CN103605660B (en) Graphic processing method for SCD (Substation Configuration Description) file
EP1456769A1 (en) System and process for gathering, recording and validating requirements for computer applications
CN104572043A (en) Method and device for embedding points for controls of client application in real time
CN103150165A (en) Frame and method for building outdoor data acquisition program
US8117610B2 (en) System and method for integrated artifact management
CN101866315B (en) Test method and system of software development tool
CN105528418A (en) Design document generation method and apparatus
CN110471698A (en) The generation method and device, storage medium and computer equipment of API document
CN103186376A (en) Method, device and equipment for establishing or updating software development environment
CN114995801B (en) Visual application development method and system based on Internet of things platform
CN115454417A (en) Web front-end project building method
CN112181387A (en) Module management method in web multi-person collaborative development process
CN110362792A (en) RN file is converted to the method, apparatus and conversion equipment of small routine file
Bayer et al. Design and development of a web-based EPANET model catalogue and execution environment
CN117311718A (en) Domestic GIS application development method and system
CN117215556A (en) Modularized page rapid construction method, system, equipment and medium
CN110110153A (en) A kind of method and apparatus of node searching
CN109062548B (en) Web service expansion method and system based on workflow construction
CN114443294B (en) Big data service component deployment method, system, terminal and storage medium
CN114625372A (en) Automatic component compiling method and device, computer equipment and storage medium
CN112068841B (en) Method and system for automatically generating project flow document

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210105