简体   繁体   English

如何将已编辑的开源项目添加到自己的项目中?

[英]How do I add an edited open-source project to my own project?

I have downloaded an open-source package from github and I've made the edits that I needed to make it work in my own project. 我从github下载了一个开源程序包,并进行了必要的编辑以使其在我自己的项目中起作用。

Now, I need to place the edited code into my own project. 现在,我需要将编辑后的代码放入我自己的项目中。 How do I do this? 我该怎么做呢? The project is in Angular 4 and I'm using npm. 该项目在Angular 4中,我正在使用npm。

I am very new to using npm and Angular so I've mostly just done npm installs of packages I would need. 我对使用npm和Angular非常陌生,因此我基本上只是完成了需要的npm安装软件包。 How do I make sure I'm getting my edited version and not the original version from github? 如何确保我得到的是我的编辑版本而不是github的原始版本?

You should put up a fork/repository of your changes on Github (or any other git versioning system), which also makes them easier to track. 您应该在Github(或任何其他git版本系统)上建立您的更改的派生/存储库,这也使它们更易于跟踪。

If you have your repository up on Github or anywhere else, you can simply use 如果您在Github或其他任何地方建立了存储库,则只需使用

npm install <git remote url>

to install your package! 安装您的软件包!

暂无
暂无

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

相关问题 如何使用 FontAwesome 向我的项目添加更多图标? - How do I add more icons to my project using FontAwesome? 如何将自己的node.js脚本添加到Angular 4项目 - How to add my own node.js script to Angular 4 project 我当前的项目是使用 Angularjs 构建的,我想在同一个现有项目中的 angular 7 中添加新内容。 我怎样才能做到这一点 - My current project is build using Angularjs and i want to add new things in angular 7 in the same existing project. How can i do that 我在我的angular 7项目中哪里添加firebase.initializeApp()? - Where do I add firebase.initializeApp() in my angular 7 project? 当我尝试将自己的npm库添加到angular2项目时,出现意外值“ MyModule” - Unexpected value “MyModule” when i'm trying to add my own npm library to angular2 project 如何在Angular 2项目的Karma配置中“将提供的文件作为依赖项添加”? - How do I “add a served file as a dependency” in my Karma configuration for an Angular 2 project? 如何使用 workin routerlink 将组件正确添加到我的 Jhipster + Angular 项目中? - How do i add properly create a component to my Jhipster + Angular project with a workin routerlink? 如何在使用CLI创建的Visual Studio中打开Angular项目? - How do I open an Angular project in Visual Studio that was created with the CLI? 如何添加open-iconic到angular 2项目 - How to add open-iconic to angular 2 project 如何在 angular-cli 项目中添加另一个页面? - How do I add another page in an angular-cli project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM