简体   繁体   English

使用apm发布带有git子模块的软件包会包含该子模块吗?

[英]Will publishing a package with a git submodule using apm include the submodule?

I have a git repository and I want to leave a separate git repo with fonts as a submodule. 我有一个git存储库,我想留下一个单独的带有字体的git repo作为子模块。 Can I leave it as a submodule for apm to pick it up correctly with the included submodule or do I need to add the files separately from git repository? 我可以将其保留为apm的子模块,以便与包含的子模块正确地拾取它,还是需要将文件与git存储库分开添加?

Will apm publish the package with with the repository on github added in to the main repository? apm是否会发布该软件包,并将github上的存储库添加到主存储库中?

As far as I know, this is not possible. 据我所知,这是不可能的。 See this issue for reference and keep in mind that apm is a fork of npm . 请参阅此问题以供参考,并记住apmnpm的分支。

In my opinion, the Node-way is to install a repository as a standard dependency (see npm documentation ). 我认为,Node-way是将存储库安装为标准依赖项(请参阅npm文档 )。 However, this requires the extra step of copying the files to the desired target location. 但是,这需要将文件复制到所需目标位置的额外步骤。 This can be done in the postinstall script . 这可以在postinstall脚本中完成

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM