Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

JavaScript module installation method and apparatus

An installation method and module file technology, applied in program control devices, instruments, computing, etc., can solve problems such as more consumption, reduced installation efficiency, and increased project file size, and achieve the goal of reducing volume, reducing cost, and improving user experience. Effect

Active Publication Date: 2017-11-24
ADVANCED NEW TECH CO LTD
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In a JavaScript project, there are often complex dependencies between modules. According to the existing solution, if multiple modules in the project depend on the same module, you need to install this module once when installing each module. Relying on modules leads to a decrease in installation efficiency, and when the project is subsequently built, it will also increase the size of the built project file, making users need to consume more costs (time, network bandwidth, etc.) to download files

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
  • JavaScript module installation method and apparatus
  • JavaScript module installation method and apparatus
  • JavaScript module installation method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application shall fall within the protection scope of this application.

[0023] Assume that for a JavaScript project a, it depends on module b and module c, and both module b and module c depend on module d. Then, when developing a project, you need to install the dependent modules b and c of project a independently first. In the process of installing modules b and c, module d will be installed respectively. According to the existing module installation sc...

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 JavaScript module installation method and apparatus. The JavaScript module installation method comprises the steps of creating a module file storage directory for a to-be-installed project; and for each module involved in a module dependency chain of the to-be-installed project, executing the following installation operations: copying a content file of the module to the module file storage directory; and in a dependency library directory of a father dependency object of the module, creating a soft link, and enabling the soft link to point to an installation path of the module in the module file storage directory. According to the technical scheme, the module installation efficiency can be effectively improved, and the volume of project files can be effectively reduced, so that the cost of downloading the project files by a user is reduced and the usage experience of the user is improved.

Description

technical field [0001] The present application relates to the technical field of computer applications, and in particular to a JavaScript module installation method and device. Background technique [0002] JavaScript is a literal scripting language that is currently widely used in web application development. Early JavaScript did not support modular programming. With the increasing complexity of Web application functions, modular programming has become an urgent need, and some solutions that can achieve modular effects in the JavaScript environment have also emerged. [0003] In a JavaScript project, there are often complex dependencies between modules. According to the existing solution, if multiple modules in the project depend on the same module, you need to install this module once when installing each module. Relying on modules leads to a decrease in installation efficiency, and when the project is subsequently built, the volume of the built project file will also inc...

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): G06F9/445
CPCG06F9/44521
Inventor 陈成
Owner ADVANCED NEW TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products