npm install from git repo subfolder

Viewed 5368

I have a repo with various components and I want to be able to include the components as individual dependencies (but I don't want to create a repo per component).

Is it a way to use a subfolder of a github repo as the path for a dependency in npm ? (that will not involve creating separate branches per component)

Something like

dropdown: git+https://git@github.com/me/mycomponents.git/components/dropdown

1 Answers
Related