简体   繁体   English

如何与我的应用一起开发已安装npm的软件包?

[英]How do I develop npm installed packages along with my app?

I'm working on my application. 我正在处理我的应用程序。 In parallel, I'm working on updating(and adding to) a couple of the npm installed submodules at the same time. 同时,我正在同时更新(和添加)几个npm安装的子模块。

In my package.json dependencies I have: 在我的package.json依赖项中,我有:

"zeke-bootstrap": "git://github.com/twilson63/zeke-bootstrap.git",

When I do npm install, it goes and checks out the repository and puts it under node modules just fine. 当我执行npm install时,它会去检出存储库并将其放在节点模块下。 My question is how to I setup this directory so that I can use git, and do commits, and eventually a push to send my changes in my dependent directory back up to github? 我的问题是如何设置此目录,以便可以使用git并进行提交,最终推动将我的从属目录中的更改发送回github?

Thanks, 谢谢,

Fred 弗雷德

You can checkout your git repo in the node_modules folder under the same folder name as your module and node will automatically use it. 您可以在node_modules文件夹下签出您的git repo,该文件夹的名称与模块相同,节点将自动使用它。 However, I don't think its a very good idea. 但是,我认为这不是一个好主意。 Modules are modules because they are meant to be developed separately. 模块是模块,因为它们是要单独开发的。

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

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