nimble使用本地包

Local Package Development本地配套发展

The install command can also be used for locally testing or developing a Nimble package by leaving out the package name parameter. Your current working directory must be a Nimble package and contain a valid package.nimble file. install 命令还可以用于本地测试或开发一个Nimble包,省略包名参数。 您当前的工作目录必须是一个Nimble包,并且包含一个有效的 package.nimble 文件。

Nimble will install the package residing in the current working directory when you don't specify a package name and the directory contains a package.nimble file. This can be useful for developers who are locally testing their .nimble files before submitting them to the official package list. See the Create Packages guide for more info on this.当你没有指定包名并且目录包含 package.nimble 文件时,Nimble将安装驻留在当前工作目录中的包。 这对于在将 .nimble 文件提交到官方包列表之前在本地测试它们的开发人员来说非常有用。 有关这方面的更多信息,请参阅创建包指南。

Dependencies required for developing or testing a project can be installed by passing --depsOnly without specifying a package name. Nimble will then install any missing dependencies listed in the package's package.nimble file in the current working directory. Note that dependencies will be installed globally.开发或测试项目所需的依赖项可以通过传入 --depsOnly 而不指定包名来安装。 然后,Nimble将安装当前工作目录下的 package.nimble 文件中列出的任何缺失的依赖项。 注意,依赖项将被全局安装。

For example to install the dependencies for a Ni

$ cd myPackage
$ nimble install --depsOnly

 

mble project myPackage:例如,要安装一个敏捷项目 myPackage 的依赖项:

posted on 2025-12-22 12:14  小沙盒工作室  阅读(2)  评论(0)    收藏  举报