I have a Vue components library which is all developed under the same repository, as repository per component is not sustainable. Out of the box, I can only publish it as a whole, but I want to be able to publish it both as a whole (like lodash
) and Per-component (like lodash.debounce
), so I can add a feature/fix a bug in some component rather quickly and publish it asap. What is the way to go? I already began looking into how Lodash does it, but it seems some trickery is involved, a custom build of sort.
Asked
Active
Viewed 189 times
0

adi518
- 863
- 1
- 11
- 19
-
How are you importing from that repository today? – acdcjunior Mar 01 '18 at 03:18
-
I publish it to a private artifactory and then import it like a normal npm package. It's exposing itself as a plugin you'd install globally in your Vue.js app, or as an object of components which you can cherry-pick from. – adi518 Mar 01 '18 at 10:25