I'm new in working with Polymer 2.
I created two custom elements, let's call them <a-elem>
and <b-elem>
. I want to use these two together in a new element called <c-elem>
.
So when developing <c-elem>
I can't just bower install --save a-elem b-elem
because these are not published online (yet). But before testing everything together I don't want to publish them. I could just copy their directories and paste them into the /bower_components folder of c-elem
but since /bower_components is a generated folder, it isn't pushed to the private git repo, so whenever a colleague wants to work with c-elem
, he would be missing these dependencies. Keep in mind, that I'm very new to web development and want to follow best practices, so this might be an easy answer for some of you. After researching for a couple of hours I couldn't find any "Polymer way of doing it". So maybe just create a folder /lib and copy them in there? But then all changes I make to a-elem
and b-elem
wouldn't change the copies in c-elem
.
How can I include a-elem
and b-elem
into c-elem
(preferably with setting dependencies) the right way?
EDIT: Also if the solution is to just copy the elements into a /lib folder, the html imports in the demo of c-elem
would be completly wrong. So I would have to create a whole different version of a-elem
and b-elem
. This can't be the only way.