Project creation method and device, equipment and storage medium

By receiving scaffolding tool installation instructions and project creation instructions in mobile app development, detecting and downloading installation packages, the problem of low development efficiency of mobile apps is solved, and the rapid generation of engineering projects and improvement of development efficiency is achieved.

CN119166165APending Publication Date: 2024-12-20CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310739170.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-20
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

The creation of existing project creation methods is not efficient, especially when developing mobile apps, which requires manual configuration of directory structure, files, development certificates, etc., resulting in a long time and low efficiency.

Method used

By receiving the user's scaffolding tool installation instructions and project creation instructions, check whether the scaffolding tool is installed on the development side. If it is not installed, download and install it from the shared library. Then download the installation package from the pre-configured project address and use the scaffolding tool to the development side. Create target projects to avoid repeated configuration work every time.

Benefits of technology

It realizes the rapid generation of configured engineering projects, improves development efficiency, reduces duplicate labor and code volume, ensures the quality and reliability of the application, and simplifies team collaboration and project management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166165A_ABST
    Figure CN119166165A_ABST
Patent Text Reader

Abstract

The invention provides a project creation method and device, equipment and a storage medium. The method comprises the following steps: receiving a scaffold tool installation instruction and a project creation instruction sent by a user; detecting a scaffold tool in the development end according to the scaffold tool installation instruction; if the scaffold tool is not installed in the development end, downloading and installing the scaffold tool from a preset shared library according to the scaffold installation instruction; after the scaffold tool is installed, an installation package of a target project is downloaded from a project address according to the project creation instruction, the project address is pre-configured address information in the scaffold tool, the address information is an address used for storing the target project, and the target project is a project corresponding to the project creation instruction; and creating a target project in the development end according to the installation package and the scaffold tool. According to the method, the project development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a project creation method, device, equipment and storage medium. Background Art

[0002] With the development of the times and the popularization of mobile Internet, more and more people are starting to use mobile applications. Therefore, many companies and developers will rush to launch various apps (Applications) to gain market share and competitive advantage.

[0003] At present, in order to create an App, the existing method is generally to use scaffolding tools to quickly build the project's infrastructure and configuration, so that the project code can be managed and built through the infrastructure and configuration files generated by the scaffolding tools, and finally generate an executable mobile application, thereby improving development efficiency.

[0004] However, the existing project creation method has the problem of low creation efficiency. Summary of the invention

[0005] The present application provides a project creation method, device, equipment and storage medium to solve the problem of low creation efficiency in existing project creation methods.

[0006] In a first aspect, the present application provides a project creation method, which is applied to a development end, and the method includes:

[0007] Receive scaffolding tool installation instructions and project creation instructions sent by users;

[0008] According to the scaffolding tool installation instructions, detect the scaffolding tool in the development end;

[0009] If the scaffolding tool is not installed on the development end, download and install the scaffolding tool from the preset shared library according to the scaffolding installation instructions;

[0010] After the scaffolding tool is installed, according to the project creation instruction, the installation package of the target project is downloaded from the project address, wherein the project address is the address information pre-configured in the scaffolding tool, the address information is the address for storing the target project, and the target project is the project corresponding to the project creation instruction;

[0011] Create a target project on the development side based on the installation package and scaffolding tools.

[0012] In this application, after detecting the scaffolding tool in the development end according to the scaffolding tool installation instruction, the method further includes:

[0013] If the scaffolding tool is installed on the development end, execute the steps of downloading the installation package of the target project from the project address according to the project creation instructions.

[0014] In this application, after the scaffolding tool is installed, according to the project creation instructions, the installation package of the target project is downloaded from the project address, including:

[0015] After the scaffolding tool is installed, obtain the project address pre-configured in the scaffolding tool according to the project creation instructions;

[0016] Download the resource code of the target project according to the project address;

[0017] According to the packaging script pre-configured in the scaffolding tool, the resource code of the target project is packaged to obtain the installation package of the target project.

[0018] In the present application, when the project creation instruction includes a project name, the method further includes:

[0019] Determine the project name according to the project creation instructions;

[0020] Configure the target project and the name of the installation package of the target project according to the project name.

[0021] In the present application, before receiving the scaffolding tool installation instruction and the project name instruction sent by the user, the method further includes:

[0022] In response to a project creation operation by a user, creating a target project;

[0023] In response to a scaffolding tool configuration operation by a user, a configuration file of the scaffolding tool is configured, wherein the configuration file of the scaffolding tool is configured with a project address;

[0024] According to the project address, the target project is stored in the target project file, and the target project file is the file of the project address;

[0025] The configuration file of the scaffolding tool is sent to the shared library to execute the step of receiving the scaffolding tool installation instruction and the project name instruction sent by the user.

[0026] In this application, in response to the user's scaffolding tool configuration operation, the configuration file of the scaffolding tool is configured, including:

[0027] In response to a user's scaffolding tool configuration operation for a target project, generating an initial configuration file of the scaffolding tool;

[0028] In response to a user's naming operation on the initial configuration file, modifying the name of the initial configuration file, wherein the name of the initial configuration file is associated with an entry file of the target project;

[0029] In response to the user's project address configuration operation, the project address is configured in the initial configuration file to obtain a configured configuration file.

[0030] In this application, the method further comprises:

[0031] In response to the user's packaging script address configuration operation, the packaging script configured in the configuration file downloads the resource code of the target project according to the project address, and then packages the resource code of the target project according to the packaging script to obtain the installation package of the target project.

[0032] In a second aspect, the present application provides a project creation device, the device comprising:

[0033] The receiving module is used to receive the scaffolding tool installation instructions and project creation instructions sent by the user;

[0034] The detection module is used to detect the scaffolding tool in the development end according to the scaffolding tool installation instructions;

[0035] The download and installation module is used to download and install the scaffolding tool from the preset shared library according to the scaffolding installation instructions if the scaffolding tool is not installed on the development end;

[0036] A download module is used to download the installation package of the target project from the project address according to the project creation instruction after the scaffolding tool is installed, wherein the project address is the address information pre-configured in the scaffolding tool, the address information is the address for storing the target project, and the target project is the project corresponding to the project creation instruction;

[0037] Create a module to create a target project in the development end based on the installation package and scaffolding tools.

[0038] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0039] Memory stores computer-executable instructions;

[0040] The processor executes the computer-executable instructions stored in the memory to implement the method of the present application.

[0041] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method of the present application.

[0042] The project creation method, device, equipment and storage medium provided by the present application receive scaffolding tool installation instructions and project creation instructions sent by the user; detect the scaffolding tool in the development end according to the scaffolding tool installation instructions; if the scaffolding tool is not installed in the development end, download and install the scaffolding tool from a preset shared library according to the scaffolding installation instructions; after the scaffolding tool is installed, download the installation package of the target project from the project address according to the project creation instructions, wherein the project address is the address information pre-configured in the scaffolding tool, the address information is the address for storing the target project, and the target project is the project corresponding to the project creation instruction; according to the installation package and the scaffolding tool, a means of creating a target project in the development end, so that when in use, the scaffolding tool can be directly downloaded and installed from the shared library through instructions, and the installation package of the target project can be directly downloaded from the project address, so that the work of quickly generating a configured engineering project and uploading the installation package to develop the target project can be realized, thereby, based on modular processing of repeatable development content, the work of reconfiguration each time a project is developed can be avoided, thereby achieving the effect of improving project development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0044] Figure 1 A schematic diagram of a project creation method provided in an embodiment of the present application;

[0045] Figure 2 A flowchart of another project creation method provided in an embodiment of the present application;

[0046] Figure 3 A schematic diagram of the structure of a project creation device provided in an embodiment of the present application;

[0047] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0048] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0049] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0050] In the prior art, when creating an iOS mobile project, the Xcode tool is usually used to click in sequence to "create a new project in Xcode", "select a template suitable for your new project", "select options for the new project", "select a location to save the new project", and "click the Create button to start creating a new project". After the process is completed, it is still necessary to manually configure the directory structure, configuration files, development certificates, various dependent libraries, etc., and a cumbersome and time-consuming packaging and uploading process is still required when the project goes online. Based on this, the creation time of the entire iOS mobile project is relatively long and the creation efficiency is low.

[0051] In order to solve the above problems, the present application provides a project creation method, which can receive scaffolding tool installation instructions, directly download and install a pre-configured scaffolding tool from a shared library, and then download the pre-configured target project from the project address in the pre-configured scaffolding tool according to the project creation instructions. Finally, the target project will be created in the development end according to the installation package and the scaffolding tool. In this way, based on modular processing of repeatable development content, the need to reconfigure each time a project is developed can be avoided, thereby achieving the effect of improving development efficiency.

[0052] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0053] The execution subject of the project creation method provided in the embodiment of the present application can be a server. Among them, the server can be a mobile phone, a tablet, a computer and other devices. This embodiment does not impose any special restrictions on the implementation method of the execution subject, as long as the execution subject can receive the scaffolding tool installation instructions and project creation instructions sent by the user; according to the scaffolding tool installation instructions, the scaffolding tool in the development end is detected; if the scaffolding tool is not installed in the development end, the scaffolding tool is downloaded and installed from the preset shared library according to the scaffolding installation instructions; after the scaffolding tool is installed, according to the project creation instructions, the installation package of the target project is downloaded from the project address, wherein the project address is the address information pre-configured in the scaffolding tool, the address information is the address for storing the target project, and the target project is the project corresponding to the project creation instruction; according to the installation package and the scaffolding tool, the target project can be created in the development end.

[0054] Project creation refers to creating a new project during the software development process, including steps such as selecting the project type, template, options, and save location. When creating a project, you need to consider the project's requirements and goals, select appropriate development tools and frameworks, and set the project's basic information and configuration. Project creation is the first step in software development, which determines the project's infrastructure and development direction.

[0055] Figure 1 The flowchart of the project creation method provided in the embodiment of the present application is shown in FIG. The execution subject of the method can be a server or other servers, and this embodiment is not particularly limited here. Figure 1 As shown, the method may include:

[0056] S101, receiving a scaffolding tool installation instruction and a project creation instruction sent by a user.

[0057] Among them, the scaffolding tool installation instruction may refer to a command for installing the scaffolding tool sent by the user to the development end when the user is preparing to create a mobile project. In some embodiments, the scaffolding tool installation instruction may be used to determine the scaffolding tool that needs to be installed and install the scaffolding tool globally.

[0058] The project creation instruction may refer to a command for creating a target project, wherein the target project may be a project to be created. After receiving the project creation instruction, the target project may be downloaded from the scaffolding tool.

[0059] Receiving scaffolding tool installation instructions and project creation instructions sent by the user may refer to the user sending a scaffolding tool installation command to the development end, so that the development end can globally install the scaffolding tool, and then according to the project creation command, the code and resources of the target project can be managed and built through the infrastructure and configuration files generated by the scaffolding tool.

[0060] In the embodiment of the present application, the order of the scaffolding tool installation instructions and the project creation instructions sent by the user can be arbitrary.

[0061] S102. According to the scaffolding tool installation instruction, the scaffolding tool in the development end is detected.

[0062] Among them, scaffolding tools can refer to an automated tool for quickly generating the infrastructure and code of a project. Scaffolding tools can achieve rapid project creation and avoid repetitive work to improve development efficiency. Scaffolding tools usually include the project's infrastructure, configuration files, dependency management, build tools, etc. In a project, different scaffolding tools can be selected according to different project requirements and technology stacks. In mobile development, scaffolding tools can be used to quickly create mobile application projects based on frameworks such as React Native and Flutter.

[0063] In an embodiment of the present application, the scaffolding tool may be a Node.js project scaffolding, thereby enabling rapid creation of a Node.js project in a mobile terminal.

[0064] Detecting the scaffolding tool in the development end may refer to the process of determining whether the scaffolding tool has been installed in the development end. In an embodiment of the present application, it is possible to determine whether the Node.js project scaffolding is installed in npm (Node Package Manager) by receiving a user input representing a scaffolding tool installation instruction in a command line.

[0065] Among them, in the embodiment of the present application, after detecting the scaffolding tool in the development end according to the scaffolding tool installation instruction, the method may also include:

[0066] If the scaffolding tool is installed on the development end, execute the steps of downloading the installation package of the target project from the project address according to the project creation instructions.

[0067] Among them, if the scaffolding tool is installed on the development end, there is no need to download the scaffolding tool.

[0068] The step of downloading the installation package of the target project from the project address according to the project creation instruction may refer to the step of executing step S104.

[0069] S103. If the scaffolding tool is not installed in the development end, the scaffolding tool is downloaded and installed from the preset shared library according to the scaffolding installation instruction.

[0070] Among them, the shared library can refer to the npm warehouse, which can be a place to store and share npm packages. In the embodiment of the present application, the developer can pre-upload various scaffolding tools to the npm warehouse in advance. When the scaffolding tool needs to be downloaded, it is only necessary to follow the scaffolding tool installation instruction corresponding to the name of the scaffolding tool to determine the scaffolding tool and download the tool.

[0071] S104. After the scaffolding tool is installed, according to the project creation instruction, the installation package of the target project is downloaded from the project address, wherein the project address is the address information pre-configured in the scaffolding tool, the address information is the address for storing the target project, and the target project is the project corresponding to the project creation instruction.

[0072] The project address may refer to the address of the installation package storing the target project, which may be a folder address or other addresses. In an embodiment of the present application, the information of the project address may be pre-configured into the scaffolding tool, which may be a Git address. After the scaffolding tool is installed, the target project may be determined through the project creation instruction. Thus, when creating the target project, the target project may be downloaded from the Git address.

[0073] The target project is a project corresponding to the project creation instruction and the scaffolding tool, wherein the scaffolding tool can be selected by the developer according to the target project, and the project creation instruction can be a command generated and sent by the developer according to the target project. In the embodiment of the present application, the target project can be an Android source project or an IOS (iPhone Operating System) source project.

[0074] Among them, in the embodiment of the present application, after the scaffolding tool is installed, according to the project creation instruction, the method of downloading the installation package of the target project from the project address may include:

[0075] After the scaffolding tool is installed, obtain the project address pre-configured in the scaffolding tool according to the project creation instructions;

[0076] Download the resource code of the target project according to the project address;

[0077] According to the packaging script pre-configured in the scaffolding tool, the resource code of the target project is packaged to obtain the installation package of the target project.

[0078] The resource code of the target project may refer to the code of the target project stored in the project address.

[0079] A packaging script can refer to a script that packages resource code into a deployable application. In front-end development, packaging tools (such as Webpack, Rollup, Parcel, etc.) can be used to package applications.

[0080] The installation package of the target project may refer to an installation package packaged by a packaging script. In some embodiments, the installation package may be an IPA (iOS Application Archive) package.

[0081] In this embodiment of the present application, when the project creation instruction includes a project name, the method further includes:

[0082] Determine the project name according to the project creation instructions;

[0083] Configure the target project and the name of the installation package of the target project according to the project name.

[0084] When creating a project, the name given to the target project by the user can be determined according to the project creation instruction. After the name is determined, the target project and the name of the installation package of the target project can be configured according to the project name.

[0085] S105. Create a target project on the development side according to the installation package and scaffolding tools.

[0086] Among them, creating a target project may refer to a process of developing a project according to an installation package and a scaffolding tool.

[0087] Among them, in the embodiment of the present application, the method before receiving the scaffolding tool installation instruction and the project name instruction sent by the user may also include:

[0088] In response to a project creation operation by a user, creating a target project;

[0089] In response to a scaffolding tool configuration operation by a user, a configuration file of the scaffolding tool is configured, wherein the configuration file of the scaffolding tool is configured with a project address;

[0090] According to the project address, the target project is stored in the target project file, and the target project file is the file of the project address;

[0091] The configuration file of the scaffolding tool is sent to the shared library to execute the step of receiving the scaffolding tool installation instruction and the project name instruction sent by the user.

[0092] The project creation operation may refer to an operation of creating a target project, wherein the project creation operation may include operations such as installing a dependent library and performing secondary packaging on the dependent library.

[0093] The scaffolding tool configuration operation may include an operation of configuring a configuration file of the scaffolding tool, wherein the configuration file may include various commands used by the scaffolding, such as a project command, a set version number command, a set certificate command, etc. In an embodiment of the present application, the configuration file of the scaffolding tool is configured with a project address.

[0094] In an embodiment of the present application, the configuration file of the configured scaffolding tool can be sent to the shared library to execute the step of receiving the scaffolding tool installation instruction and the project name instruction sent by the user.

[0095] Among them, in the embodiment of the present application, in response to the user's scaffolding tool configuration operation, the method for configuring the configuration file of the scaffolding tool may include:

[0096] In response to a user's scaffolding tool configuration operation for a target project, generating an initial configuration file of the scaffolding tool;

[0097] In response to a user's naming operation on the initial configuration file, modifying the name of the initial configuration file, wherein the name of the initial configuration file is associated with an entry file of the target project;

[0098] In response to the user's project address configuration operation, the project address is configured in the initial configuration file to obtain a configured configuration file.

[0099] The initial configuration file may refer to an initial configuration file when the scaffolding tool is initially established, wherein the initial configuration file may include various commands used by the scaffolding.

[0100] The naming operation may refer to the operation of modifying the noun of the scaffolding tool. In the embodiment of the present application, by associating the name of the initial configuration file with the entry file of the target project, it can help developers quickly start the project and automate some common development tasks, such as compilation, packaging, testing, etc.

[0101] Among them, in the embodiment of the present application, the project creation method may also include:

[0102] In response to the user's packaging script address configuration operation, the packaging script configured in the configuration file downloads the resource code of the target project according to the project address, and then packages the resource code of the target project according to the packaging script to obtain the installation package of the target project.

[0103] The packaging script address configuration operation may refer to a process of setting the packaging script using a command tool.

[0104] The project creation method provided in the embodiment of the present application can, when in use, directly download and install scaffolding tools from a shared library through instructions, and directly download the installation package of a target project from a project address, thereby enabling rapid generation of configured engineering projects and uploading of installation packages to develop target projects. Thus, based on modular processing of repeatable development content, the need to reconfigure each time a project is developed is avoided, thereby achieving the effect of improving development efficiency.

[0105] Figure 2 This is a flowchart of another project creation method provided in an embodiment of the present application. The execution subject of the method can be a server or other servers, and this embodiment is not particularly limited here. Figure 2 As shown, the method may include:

[0106] S201, initialize the node project, configure the scaffolding tool module, and the IOS source project module corresponding to the scaffolding tool module, wherein the configuration file of the scaffolding tool module includes a Git address.

[0107] Among them, the scaffolding tool is a scaffolding tool based on the node ecology, and the method of configuring the scaffolding tool module may include:

[0108] 1. According to the command: npm init-y, initialize the node project and modify the name of the scaffolding tool to associate the entry file of the origin iOS project. For example, the name of the scaffolding tool can be "iOSCreater";

[0109] 2. Use the Commander command line interactive tool to create various commands used by the scaffolding tool, such as the command to produce iOS projects, the command to set version numbers, the command to set certificates, etc.;

[0110] 3. Configure the Git address of the IOS source project, use "download-Git-repo" to download the IOS source project and monitor the download process. In this embodiment of the present application, the IOS source project can be created by using the command "iOSCreater+project name", and the IOS source project can be downloaded from the address;

[0111] 4. After the IOS source project is downloaded, use the Commander command to obtain the project name or version number entered by the user, and then set the name or version number of the IOS source project;

[0112] 5. You can use the xcodebuild command tool to implement the packaging script of the iOS source project to achieve one-click packaging of the iOS source project code.

[0113] Among them, the method of configuring the IOS source project module may include:

[0114] 1. Use Xcode to create an iOS blank project, install CocoaPods in the iOS blank project, and use CocoaPods to install network library AFNetworking, refresh library MJRefresh, image processing library SDWebImage, model conversion library MJExtension, layout constraint library Masonry and other dependent libraries;

[0115] 2. Repackage the installed dependent library. By using the repackaged library in the project, when the API of the dependent library is changed, the project code does not need to be changed.

[0116] 3. Set the project directory and define the file directory using the MVVM (Model-View-ViewModel) architecture pattern;

[0117] 4. Set the naming convention for class files. Use the first letter of the project name as the naming prefix for class files. This can easily distinguish between files created by this project and files in dependent libraries.

[0118] 5. Add commonly used tool classes, such as identity authentication, mobile phone model detection, time string processing, local cache processing and other tool classes, which can improve subsequent development efficiency;

[0119] 6. Upload the IOS source project to Git and configure the Git address to the node project created above to establish the connection between the IOS source project and the scaffolding tool.

[0120] S202, uploading the IOS source project module to the Git address in the configuration file of the scaffolding tool module, and publishing the uploaded scaffolding tool module to the npm repository.

[0121] Among them, you can use npm publish to publish the node project (that is, the configured scaffolding tool module) to the npm repository. When calling for use, the user can install the scaffolding through the "npm iOSCreater" command.

[0122] S203, receiving a scaffolding tool installation command sent by a user, and installing a scaffolding tool represented by a scaffolding tool module globally;

[0123] S204, receiving a project installation command sent by a user, and determining an IOS source project corresponding to the scaffolding tool module and the project installation command;

[0124] S205, downloading the IOS source project to the global according to the Git address configured in the configuration file in the scaffolding tool;

[0125] S206, packaging the IOS source project according to the packaging script pre-configured in the globally installed scaffolding tool to obtain an IPA package of the IOS source project;

[0126] S207. Develop an IOS source project based on the IPA package.

[0127] Another project creation method provided by the embodiment of the present application can improve development efficiency, that is, by providing a set of common code structures and components, there is no need to wait during the initialization and packaging process, and the use of IDE (Integrated Development Environment) is not delayed. The background is automatically packaged, which can save development time, reduce the developer's repetitive work and code volume, and improve development efficiency and development speed; in addition, the embodiment of the present application can also ensure the quality of the application, that is, through standardized code structures and components, the quality and reliability of the application can be guaranteed, and the probability of errors and bugs can be reduced; in addition, the embodiment of the present application can also unify project specifications: that is, through standardized project specifications and code styles, it can help developers better manage and maintain projects, and improve the readability and maintainability of projects; in addition, the embodiment of the present application can also improve the code reuse rate, that is, through the installed dependent libraries required for development, and the secondary packaging of various dependent libraries such as network libraries, image libraries, loading libraries, etc., it can help developers better reuse codes and functions, avoid reinventing the wheel, and reduce code redundancy; finally, the embodiment of the present application can also improve team collaboration efficiency, that is, through common code structures and components, it can reduce differences and communication costs between developers, and improve team collaboration efficiency and project progress.

[0128] Figure 3 This is a schematic diagram of the structure of the project creation device provided in the embodiment of the present application. Figure 3 As shown, the project creation device 30 includes: a receiving module 301, a detection module 302, a download and installation module 303, a download module 304 and a creation module 305. Among them:

[0129] The receiving module 301 is used to receive the scaffolding tool installation instruction and the project creation instruction sent by the user;

[0130] A detection module 302 is used to detect the scaffolding tool in the development end according to the scaffolding tool installation instruction;

[0131] The download and installation module 303 is used to download and install the scaffolding tool from a preset shared library according to the scaffolding installation instruction if the scaffolding tool is not installed in the development end;

[0132] The download module 304 is used to download the installation package of the target project from the project address according to the project creation instruction after the scaffolding tool is installed, wherein the project address is the address information pre-configured in the scaffolding tool, the address information is the address for storing the target project, and the target project is the project corresponding to the project creation instruction;

[0133] The creation module 305 is used to create a target project in the development end according to the installation package and the scaffolding tool. In the embodiment of the present application, the detection module 302 can also be specifically used for:

[0134] If the scaffolding tool is installed on the development end, execute the steps of downloading the installation package of the target project from the project address according to the project creation instructions.

[0135] In the embodiment of the present application, the download module 304 may also be specifically used for:

[0136] After the scaffolding tool is installed, obtain the project address pre-configured in the scaffolding tool according to the project creation instructions;

[0137] Download the resource code of the target project according to the project address;

[0138] According to the packaging script pre-configured in the scaffolding tool, the resource code of the target project is packaged to obtain the installation package of the target project.

[0139] In the embodiment of the present application, the download module 304 may also be specifically used for:

[0140] Determine the project name according to the project creation instructions;

[0141] Configure the target project and the name of the installation package of the target project according to the project name.

[0142] In the embodiment of the present application, the receiving module 301 may also be specifically used for:

[0143] In response to a project creation operation by a user, creating a target project;

[0144] In response to a scaffolding tool configuration operation by a user, a configuration file of the scaffolding tool is configured, wherein the configuration file of the scaffolding tool is configured with a project address;

[0145] According to the project address, the target project is stored in the target project file, and the target project file is the file of the project address;

[0146] The configuration file of the scaffolding tool is sent to the shared library to execute the step of receiving the scaffolding tool installation instruction and the project name instruction sent by the user.

[0147] In the embodiment of the present application, the receiving module 301 may also be specifically used for:

[0148] In response to a user's scaffolding tool configuration operation for a target project, generating an initial configuration file of the scaffolding tool;

[0149] In response to a naming operation of the user on the initial configuration file, modifying the name of the initial configuration file, wherein the name of the initial configuration file is associated with an entry file of the target project;

[0150] In response to the user's project address configuration operation, the project address is configured in the initial configuration file to obtain a configured configuration file.

[0151] In the embodiment of the present application, the receiving module 301 may also be specifically used for:

[0152] In response to the user's packaging script address configuration operation, the packaging script configured in the configuration file downloads the resource code of the target project according to the project address, and then packages the resource code of the target project according to the packaging script to obtain the installation package of the target project.

[0153] The project creation method provided by the present application comprises a receiving module 301 for receiving a scaffolding tool installation instruction and a project creation instruction sent by a user; a detection module 302 for detecting a scaffolding tool in a development end according to the scaffolding tool installation instruction; a download and installation module 303 for downloading and installing the scaffolding tool from a preset shared library according to the scaffolding installation instruction if the scaffolding tool is not installed in the development end; a download module 304 for downloading the installation package of the target project from the project address according to the project creation instruction after the scaffolding tool is installed, wherein the project address is the address information pre-configured in the scaffolding tool, the address information is the address for storing the target project, and the target project is the project corresponding to the project creation instruction; a creation module 305 for creating a target project in the development end according to the installation package and the scaffolding tool. Thus, the effect of improving the efficiency of project development is achieved.

[0154] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device 40 includes:

[0155] The electronic device 40 may include a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a communication component 403 and other components. The processor 401 , the memory 402 and the communication component 403 are connected via a bus 404 .

[0156] In a specific implementation process, at least one processor 401 executes the computer execution instructions stored in the memory 402, so that at least one processor 401 executes the above project creation method.

[0157] The specific implementation process of the processor 401 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0158] In the above Figure 4 In the illustrated embodiment, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0159] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0160] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0161] In some embodiments, a computer program product is also proposed, including a computer program or instructions, which implement the steps in any of the above-mentioned project creation methods when executed by a processor.

[0162] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0163] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0164] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple instructions are stored, and the instructions can be loaded by a processor to execute the steps in any project creation method provided in the embodiment of the present application.

[0165] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0166] According to one aspect of the present application, a computer program product or a computer program is provided. The computer program product or the computer program comprises computer instructions stored in a computer-readable storage medium.

[0167] Since the instructions stored in the storage medium can execute the steps in any project creation method provided in the embodiments of the present application, the beneficial effects that can be achieved by any project creation method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0168] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0169] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A project creation method, It is characterized in that Applied to the development end, the method includes: Receive scaffolding tool installation instructions and project creation instructions sent by users; According to the scaffolding tool installation instruction, detecting the scaffolding tool in the development end; If the scaffolding tool is not installed in the development end, download and install the scaffolding tool from a preset shared library according to the scaffolding installation instruction; After the scaffolding tool is installed, according to the project creation instruction, download the installation package of the target project from the project address, wherein the project address is address information pre-configured in the scaffolding tool, the address information is an address for storing the target project, and the target project is a project corresponding to the project creation instruction; The target project is created in the development end according to the installation package and the scaffolding tool.

2. The method according to claim 1, It is characterized in that After detecting the scaffolding tool in the development end according to the scaffolding tool installation instruction, the method further includes: If the scaffolding tool is installed in the development end, the step of downloading the installation package of the target project from the project address according to the project creation instruction is executed.

3. The method according to claim 1, It is characterized in that After the scaffolding tool is installed, according to the project creation instruction, the installation package of the target project is downloaded from the project address, including: After the scaffolding tool is installed, obtaining the project address pre-configured in the scaffolding tool according to the project creation instruction; According to the project address, download the resource code of the target project; According to the packaging script pre-configured in the scaffolding tool, the resource code of the target project is packaged to obtain the installation package of the target project.

4. The method according to claim 3, It is characterized in that When the project creation instruction includes a project name, the method further includes: Determine the project name according to the project creation instruction; The target project and the name of the installation package of the target project are configured according to the project name.

5. The method according to claim 1, It is characterized in that Before receiving the scaffolding tool installation instruction and the project name instruction sent by the user, the method further includes: In response to a project creation operation by a user, creating the target project; In response to a scaffolding tool configuration operation by a user, a configuration file of the scaffolding tool is configured, wherein the configuration file of the scaffolding tool is configured with a project address; According to the project address, the target project is stored in a target project file, where the target project file is a file at the project address; The configuration file of the scaffolding tool is sent to the shared library to execute the step of receiving the scaffolding tool installation instruction and the project name instruction sent by the user.

6. The method according to claim 5, It is characterized in that The configuring of the configuration file of the scaffolding tool in response to the user's scaffolding tool configuration operation includes: In response to a user's scaffolding tool configuration operation for the target project, generating an initial configuration file of the scaffolding tool; In response to a user's naming operation on the initial configuration file, modifying the name of the initial configuration file, wherein the name of the initial configuration file is associated with an entry file of the target project; In response to the user's project address configuration operation, the project address is configured in the initial configuration file to obtain a configured configuration file.

7. The method according to claim 6, It is characterized in that The method further comprises: In response to the user's packaging script address configuration operation, the packaging script configured in the configuration file downloads the resource code of the target project according to the project address, and then packages the resource code of the target project according to the packaging script to obtain the installation package of the target project.

8. A project creation device, It is characterized in that The device comprises: The receiving module is used to receive the scaffolding tool installation instructions and project creation instructions sent by the user; A detection module, used to detect the scaffolding tool in the development end according to the scaffolding tool installation instruction; A download and installation module, used for downloading and installing the scaffolding tool from a preset shared library according to the scaffolding installation instruction if the scaffolding tool is not installed in the development end; A download module, used to download the installation package of the target project from the project address according to the project creation instruction after the installation of the scaffolding tool is completed, wherein the project address is the address information pre-configured in the scaffolding tool, the address information is the address for storing the target project, and the target project is the project corresponding to the project creation instruction; A creation module is used to create the target project in the development end according to the installation package and the scaffolding tool.

9. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.