-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making mimosa-bower work with polymerjs #40
Comments
Well, one thing you can do with Here's an example from here I have a gist that explains all that.
So you could do something like this
or something like that. Though, because the assets won't be in a vendor library or in a javascript library they may miss out on some special treatment the vendor libs get, like not being linted. In that case you'll just have to tell the linter to ignore those folders. |
Yep I did come across that gist before. With polymerjs however, there are too many of the packages for which overriding needs to be done manually. They have a bower package for each of the custom-element and there are about 40+ core elements. These potentially will increase as project uses different custom elements. Currently polymer team has not come up with a viable solution for populating main property. Is there an alternate way to bypass default behavior? Maybe another copy strategy!! |
Yeah, copy strat is probably best. So I am clear, can you just show me the desired folder structure? Rather than talk me through it if you just wrote down the structure it would help a good deal. |
Sure. Here' what is my desired structure. Its pretty much a straight forward copy for bower packages. It will be great if there is an option to include/exclude regexp/globb supported files. FYI... polymer team has released vulcanize as build tool for intelligent polymer component concatenation for production purpose. This could however be supported through |
That just keeps the components in the bower_components directory rather than putting them in the code? Or do they go in elements? |
yep.. They are imported in the template file through html-imports. After which they can be used as any other html elements. While for other bower packages we normally import In |
I am currently experimenting with polymerjs. All of the
polymerjs components
do not declaremain
inbower.json
. Hence I have setbower.copy.unknownMainFullCopy
totrue
.On
mimosa build
, js files are moved topublic/javascripts/vendor
and rest of the files are moved intopublic/stylesheets/vendor
. Is there a way to keep all of the package files intact without these separations? I would prefer not to usemainOverrides
as there are too many components for which override will have to be configured. Also is it possible to move all of them under a separate path without pre-processing them? In polymer, html files are typically imported using the newhtml-import
. They internally refer to dependent javascript and css as a relative path. Mymimosa-config.coffee
file is as followsThe text was updated successfully, but these errors were encountered: