Lines Matching refs:Part

1 # HPM Part Reference
4 This section describes the HPM Part division rules, HPM Part types, HPM Part composition, metadata …
7 ### HPM Part Division Rules
11 … relatively independent features and can be independently built. Each HPM Part is capable of provi…
13 - Coupling: If an HPM Part must depend on another one to provide services, they can be coupled to o…
15 … if other HPM Parts never depend on them, the group of HPM Parts can be combined into one HPM Part.
18 ### HPM Part Type
22 **Table 1** HPM Part types
34 ### HPM Part Composition
36 An HPM Part contains the following:
38 - **src** directory for storing code files or code library of the HPM Part.
40 …ing dependent HPM Parts. The folder is automatically generated during HPM Part installation and do…
42 - **README.md** file for describing the HPM Part.
44 - **bundle.json** file for declaring metadata of the HPM Part.
61 HPM Part code files are the same as those in a common code directory. The only difference lies in t…
66Part on [DevEco Marketplace](https://repo.harmonyos.com) and use it more conveniently, include a *…
70 …ructions on how to install, configure, and use the sample code in the HPM Part, as well as any oth…
72 The Readme file will be displayed on the homepage of the HPM Part on [DevEco Marketplace](https://r…
77 The **bundle.json** file describes the metadata of an HPM Part. Each HPM Part has its own **bundle.…
121 - **name**: an HPM Part name, which starts with the at sign (@) and is separated with the organizat…
123 - **version**: version of the HPM Part, for example, 1.0.0. The version must comply with the Semant…
125 - **description**: a brief description of the HPM Part.
129 - **envs**: parameters required for building the HPM Part, including global parameters and dependen…
131 - **scripts**: commands executable to the HPM Part, such as commands for compiling, building, testi…
133 - **publishAs**: HPM Part publishing type, which can be **source**, **binary**, **distribution**, o…
135 … path of the code-segment HPM Part, that is, the destination path of the files contained in the HP…
145 - For a distribution-level HPM Part, you can define the inheritance relationship and use the **base…
147 - **private**: indicates whether an HPM Part is private. A private HPM Part cannot be found by othe…
152 You can use the hpm-cli tool to manage the lifecycle of an HPM Part. The following table describes …
161 | Creating a project| hpm init bundle | Creates an HPM Part project.|
168 || hpm dependencies | Generates the dependency relationship data of the HPM Part. (This comman…
172 | Updating HPM Part versions| hpm update | Updates the versions of dependent HPM Parts.|
174 | Building| hpm build | Builds an HPM Part.|
178 | Publishing| hpm publish | Publishes an HPM Part, which must be unique in the repository and …
183 | Converting to HPM format| hpm x2h | Converts a Maven or npm package to an HPM Part and publi…
185 …](https://repo.harmonyos.com), which enables password-free hpm-cli login for HPM Part publishing.|
186 …le providing the notice on third-party open source by combining the description of each HPM Part.|
191 HPM Part dependencies are classified as mandatory and optional dependencies.
193Part A must depend on HPM Part B to implement a feature (the APIs or services specific to HPM Part
195Part C or D is required for HPM Part A to implement a feature, and if HPM Parts C and D are interc…
206 HPM Part dependencies can also be classified as compilation and development dependencies.
239 HPM Part dependencies (including indirect dependencies) can be displayed by running the **hpm list*…
260 During HPM Part building, system-provided environment variables are required to define the output a…
270 - **DEP_BUNDLE_BASE**: path of the outermost HPM Part
285 …ation of dependent HPM Parts can meet the requirements of the current HPM Part. The parameters def…
299 …e HPM Part needs to know the file path regarding the dependencies. Therefore, you need to pass the…
301 …me** format, where **BundleName** indicates the name of the dependent HPM Part, for example, **DEP…
308 2. Name of an HPM Part published to [DevEco Marketplace](https://repo.harmonyos.com) must start wit…
314 5. An HPM Part version must be in the format of ***majorVersion***.***minorVersion***.***revisionVe…