Home
last modified time | relevance | path

Searched refs:hpm (Results 1 – 25 of 34) sorted by relevance

12

/ohos5.0/docs/zh-cn/device-dev/hpm-part/
H A Dhpm-part-development.md14 在进行HPM Part开发之前,首先需要安装包管理器命令行工具hpm-cli。Hpm-cli是一个基于Node.js开发的跨平台的命令行工具,而要运行hpm命令,需要先安装Node.js,然后使用n…
33 hpm -V 或 hpm --version
45 安装完hpm命令行工具后,如果需要更改配置信息(如代理,shell路径),可执行以下命令可以查看hpm配置:
49 hpm config
52 上述命令执行后将会显示hpm的默认配置,您可以根据自己需要对默认配置进行修改,以下是hpm的常用配置:
132 hpm init
142 $ hpm init
273 hpm build
287 hpm dist
309 hpm gen-keys
[all …]
H A Dhpm-part-reference.md31 | plugin | 以插件形态分发,作为hpm cli的插件,扩展hpm cli的功能。 |
152 Part的全生命周期管理,可以通过hpm命令工具进行操作,hpm的操作命令如下(详细帮助可以执行hpm -h学习):
154 **表2** hpm操作命令
158 | 版本查询 | hpm -V或hpm --version | 查看hpm-cli版本号。 |
159 | 帮助查询 | hpm -h或hpm --version | 查看命令列表及帮助。 |
163 | 安装 | hpm install或hpm i | 安装bundle.json中依赖的Part。 |
166 || hpm remove或hpm rm bundlename | 删除depedencies依赖的Part。 |
167 | 查看 | hpm list或者hpm ls | 显示当前HPM Part的依赖树。 |
183 | 转换为hpm包格式 | hpm x2h | 将一个maven格式或npm格式包转换成hpm的包格式,并发布到HPM |
239 Part的依赖关系(包括间接依赖)可以通过hpm list命令显示(也可以通过hpm ui命令在可视化的页面中显示)
[all …]
H A Dhpm-part-about.md67 - **客户端的命令行工具:hpm-cli(发布在[@ohos/hpm-cli](https://www.npmjs.com/package/@ohos/hpm-cli))**
69 hpm-cli是一个跨平台包管理器命令行工具,包含一系列的命令(创建、编译、安装、打包、运行、发布等),开发者使用这些命令完成HPM Part的生命周期管理。
H A DReadme-CN.md3 - [HPM Part介绍](hpm-part-about.md)
4 - [HPM Part开发指导](hpm-part-development.md)
5 - [HPM Part参考](hpm-part-reference.md)
/ohos5.0/docs/en/device-dev/hpm-part/
H A Dhpm-part-development.md13 ## Installing hpm-cli
34 hpm -V or hpm --version
46 After hpm-cli is installed, run the following command to view the hpm configuration:
50 hpm config
133 hpm init
143 $ hpm init
275 hpm build
289 hpm dist
311 hpm gen-keys
322 hpm publish
[all …]
H A Dhpm-part-reference.md152 …n use the hpm-cli tool to manage the lifecycle of an HPM Part. The following table describes avail…
154 **Table 2** Commands available on hpm-cli
158 | Querying version information| **hpm -V** or **hpm --version**| Displays the version of the hpm-cl…
159 | Querying help information| **hpm -h** or **hpm --version**| Displays the command list and help in…
163 | Installing HPM Parts| **hpm install** or **hpm i**| Installs dependent HPM Parts in the bundle.js…
166 || **hpm remove** or **hpm rm bundlename**| Uninstalls dependent HPM Parts.|
167 | Viewing information| **hpm list** or **hpm ls**| Displays the dependency tree of the HPM part.|
168hpm dependencies | Generates the dependency relationship data of the HPM Part. (This command …
174 | Building| hpm build | Builds an HPM Part.|
239 …ies) can be displayed by running the **hpm list** command or on the hpm UI, which is started by ru…
[all …]
H A DReadme-EN.md3 - [HPM Part Overview](hpm-part-about.md)
4 - [HPM Part Development](hpm-part-development.md)
5 - [HPM Part Reference](hpm-part-reference.md)
H A Dhpm-part-about.md67 - **hpm-cli: a cross-platform command line tool released in [@ohos/hpm-cli](https://www.npmjs.com/p…
69 …The hpm-cli tool offers a series of commands for creating, building, installing, packing, running,…
/ohos5.0/docs/zh-cn/device-dev/
H A Ddevice-dev-guide.md43 …绍](hpm-part/hpm-part-about.md)<br/>-&nbsp;[HPM&nbsp;Part&nbsp;开发指导](hpm-part/hpm-part-development.…
55 …绍](hpm-part/hpm-part-about.md)<br/>-&nbsp;[HPM&nbsp;Part&nbsp;开发指导](hpm-part/hpm-part-development.…
/ohos5.0/build/hb/resolver/
H A Dinstall_args_resolver.py28 from services.hpm import CMDTYPE
42 install_module.hpm.regist_flag('part_name', part_name)
48 install_module.hpm.regist_flag('global', '')
53 install_module.hpm.regist_flag('local', target_arg.arg_value)
58 …install_module.hpm.regist_flag('defaultDeps', ComponentUtil.get_default_deps(target_arg.arg_value))
60 install_module.hpm.regist_flag('defaultDeps', ComponentUtil.get_default_deps("default"))
H A Dpackage_args_resolver.py28 from services.hpm import CMDTYPE
42 package_module.hpm.regist_flag('part_name', part_name)
48 package_module.hpm.regist_flag('output', target_arg.arg_value)
H A Dupdate_args_resolver.py28 from services.hpm import CMDTYPE
42 update_module.hpm.regist_flag('part_name', part_name)
47 update_module.hpm.regist_flag('global', '')
H A Dindep_build_args_resolver.py37 build_executor = indep_build_module.hpm
47 build_executor = indep_build_module.hpm
60 build_executor = indep_build_module.hpm
94 build_executor = indep_build_module.hpm
H A Dpublish_args_resolver.py28 from services.hpm import CMDTYPE
42 publish_module.hpm.regist_flag('part_name', part_name)
/ohos5.0/build/hb/modules/
H A Dohos_install_module.py19 from services.hpm import CMDTYPE
32 …def __init__(self, args_dict: dict, args_resolver: ArgsResolverInterface, hpm: BuildFileGeneratorI…
34 self._hpm = hpm
38 def hpm(self): member in OHOSInstallModule
60 self.hpm.execute_hpm_cmd(CMDTYPE.INSTALL)
H A Dohos_package_module.py19 from services.hpm import CMDTYPE
32 …def __init__(self, args_dict: dict, args_resolver: ArgsResolverInterface, hpm: BuildFileGeneratorI…
34 self._hpm = hpm
38 def hpm(self): member in OHOSPackageModule
58 self.hpm.execute_hpm_cmd(CMDTYPE.PACKAGE)
H A Dohos_publish_module.py19 from services.hpm import CMDTYPE
32 …def __init__(self, args_dict: dict, args_resolver: ArgsResolverInterface, hpm: BuildFileGeneratorI…
34 self._hpm = hpm
38 def hpm(self): member in OHOSPublishModule
58 self.hpm.execute_hpm_cmd(CMDTYPE.PUBLISH)
H A Dohos_update_module.py19 from services.hpm import CMDTYPE
32 …def __init__(self, args_dict: dict, args_resolver: ArgsResolverInterface, hpm: BuildFileGeneratorI…
34 self._hpm = hpm
38 def hpm(self): member in OHOSUpdateModule
58 self.hpm.execute_hpm_cmd(CMDTYPE.UPDATE)
H A Dohos_indep_build_module.py31 …def __init__(self, args_dict: dict, args_resolver: ArgsResolverInterface, hpm: BuildFileGeneratorI…
33 self._hpm = hpm
37 def hpm(self): member in OHOSIndepBuildModule
60 self.hpm.run()
/ohos5.0/docs/zh-cn/device-dev/get-code/
H A Dsourcecode-acquire.md15 本文档将介绍如何获取OpenHarmony源码并说明OpenHarmony的源码目录结构。OpenHarmony的代码以[组件](../hpm-part/hpm-part-about.md)的形式开…
19 …ace](https://repo.harmonyos.com/#/cn/home)网站,查找满足需求的开源发行版,直接下载(或者定制后下载),再通过hpm-cli命令工具将所需的组件及工具链下载…
112 …harmonyos.com/#/cn/home)网站获取下载开源发行版,也可以在开源发行版的基础上定制(添加或删除组件)。然后通过包管理器命令行工具(hpm-cli)将需要的组件及相关的编译工具链…
117 先要在本地安装Node.js和hpm命令行工具,安装步骤如下:
125 2. 通过Node.js自带的npm安装hpm命令行工具。
130 npm install -g @ohos/hpm-cli
133 3. 安装完成后执行如下命令,显示hpm版本,即安装成功。
136 hpm -V 或 hpm --version
139 4. 如果升级hpm的版本,请执行如下命令:
142 npm update -g @ohos/hpm-cli
[all …]
H A Dgettools-acquire.md170hpm.harmonyos.com/)系统中的模板组件,能够帮助用户快速初始化HPM工程,利用docker镜像来快速编译OpenHarmony发行版,在很大程度上简化了编译前的环境配置。开发者在配…
180 hpm init -t @ohos/docker_dist
201 hpm run docker solution={product}
220 hpm run docker
238 hpm run distWithDocker solution={product}
240 hpm config set shellPath "gitbash路径"
241 hpm run distWithDocker solution={product}
/ohos5.0/build/hb/
H A Dmain.py41 from services.hpm import Hpm
195 hpm = Hpm()
197 return OHOSIndepBuildModule(args_dict, indep_build_args_resolver, hpm)
209 hpm = Hpm()
211 return OHOSInstallModule(args_dict, install_args_resolver, hpm)
217 hpm = Hpm()
219 return OHOSPackageModule(args_dict, package_args_resolver, hpm)
224 hpm = Hpm()
226 return OHOSPublishModule(args_dict, publish_args_resolver, hpm)
232 hpm = Hpm()
[all …]
/ohos5.0/docs/en/device-dev/
H A Ddevice-dev-guide.md40 …t Overview](hpm-part/hpm-part-about.md)<br>- [HPM Part Development](hpm-part/hpm-part-development.…
53 …t Overview](hpm-part/hpm-part-about.md)<br>- [HPM Part Development](hpm-part/hpm-part-development.…
/ohos5.0/docs/en/device-dev/get-code/
H A Dgettools-acquire.md170hpm.harmonyos.com/) system. It helps to quickly initialize an HPM project and use the Docker image…
180 hpm init -t @ohos/docker_dist
201 hpm run docker solution={product}
220 hpm run docker
238 hpm run distWithDocker solution={product}
240 hpm config set shellPath "Git Bash path"
241 hpm run distWithDocker solution={product}
H A Dsourcecode-acquire.md15 …ructure. The OpenHarmony source code is open to you as [HPM parts](../hpm-part/hpm-part-about.md),…
19 … (or customize components and download the component list). Then use the **hpm-cli** tool to downl…
112 …ding or deleting components of an open source distribution. Then use the **hpm-cli** tool to downl…
125 2. Install the **hpm-cli** tool using **npm** delivered with **Node.js**.
130 npm install -g @ohos/hpm-cli
136 hpm -V or hpm --version
142 npm update -g @ohos/hpm-cli
156 ![](figures/hpm-page.png "hpm-page")
182 …2. In the generated directory, run the **hpm install** command to download and install components.…

12