-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Better dependency management #1592
Comments
You can build your application with many launchers JavaScript tasks. With this tools you can:
At the end, your production is 1 JS, 1 CSS and 1 HTML files all optimized and your imports ('.min'). I hope have understood your post and I'm sorry for my poor English. |
@LM450N I'm not sure if you really understood my question. I'm not talking about building tools, but how polymer depends on a folder structure. You were saying:
How are you minifying your polymer project in 1 HTML and 1JS? |
Maybe I have misunderstood the sense of your question. In fact, I told you about a build tool because I think the dependencies manager is good. To build my application I use GulpJs. If you have created your project with the Yeoman, more precisely the polymer generator, the I this answer helps you. |
@LM450N Again, I'm not talking about build tools. The essence of the questions is that right now I cannot use a tool like Gulp to easily retrieve all the dependency's main files from
|
In my gulpfile.js I run a task called "vulcanize". |
Yes. That would be something I'm looking for. Thanks! |
Closing: |
I see that bower installations of polymer and polymer components are tightly coupled with the folder structure.
That is fine for development, but when building for production I would like to extract all the main files for each dependency in a common folder.
Why?
The way this should work is to specify the main files for each repository (component) and then to use a tool like main-bower-files to extract them in a common folder.
Another problem that needs to be solved is that polymer components assume a folder structure when they require the polymer file which in case of a common folder will result in broken links. A hack to solve would be to substring the directories from the path before the static files are served (which is basically polyserve), but I wouldn't like to have something like that in production.
Any thoughts on this?
The text was updated successfully, but these errors were encountered: