Re: [polymer-dev] Chrome packaged app with Polymer & Bower

154 views
Skip to first unread message

Rob Dodson

unread,
Jul 8, 2014, 11:34:11 AM7/8/14
to Pete Townsend, polymer-dev
I forked a different example to make this: https://github.com/robdodson/polymerchromeapp

I just added a bower.json, installed all the dependencies, and checked them into the project. To my knowledge, there's no automatic way to make bower run when a user installs your app, so you'll need to manage that process yourself. I think the easiest way to manage things is to just run `bower update` whenever you want to do a new release of your project.


On Tue, Jul 8, 2014 at 3:57 AM, Pete Townsend <prt...@gmail.com> wrote:
Is there a sample chrome app anywhere that uses polymer and bower?  I have found this, but it seems to be using an older version of Polymer that is copied to the project.  Is there a way to make chrome app work with bower to pull the latest version of polymer with paper elements and so on?

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/5265b83e-dc21-4cda-89a2-066fd6e0c209%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eric Bidelman

unread,
Jul 8, 2014, 6:00:11 PM7/8/14
to Rob Dodson, Pete Townsend, polymer-dev
Rob, we should get one of these in the FAQ. Chrome apps and CSP come up a lot.


Rob Dodson

unread,
Jul 8, 2014, 6:07:40 PM7/8/14
to Eric Bidelman, Pete Townsend, polymer-dev
this could be a good candidate. it's just our tutorial turned into a packaged app. I think the only nagging issue is we may need to include Roboto's font files so we don't have to jump through CSP hoops with XHR to load the font from google fonts. I got it working but it's annoying and would be easier to just have the font there

Eric Bidelman

unread,
Jul 8, 2014, 6:13:16 PM7/8/14
to Rob Dodson, art...@google.com, Pete Townsend, polymer-dev
Should we make our own tutorial runnable as a Chrome app? Stick in a manifest.json and any required resources.

Maybe the final step of the tutorial should be teaching people vulcanization? We get asked about this a lot and putting it up front might make it more discoverable.

Ian MacLeod

unread,
Jul 8, 2014, 7:28:35 PM7/8/14
to Eric Bidelman, Rob Dodson, art...@google.com, Pete Townsend, polymer-dev
Might be handy to set up a yeoman scaffold for it, too
On Tue, Jul 8, 2014 at 3:13 PM, Eric Bidelman <ebi...@gmail.com> wrote:
Should we make our own tutorial runnable as a Chrome app? Stick in a manifest.json and any required resources.

Maybe the final step of the tutorial should be teaching people vulcanization? We get asked about this a lot and putting it up front might make it more discoverable.
On Tue, Jul 8, 2014 at 5:07 PM, Rob Dodson <robd...@google.com> wrote:
this could be a good candidate. it's just our tutorial turned into a packaged app. I think the only nagging issue is we may need to include Roboto's font files so we don't have to jump through CSP hoops with XHR to load the font from google fonts. I got it working but it's annoying and would be easier to just have the font there
On Tue, Jul 8, 2014 at 2:59 PM, Eric Bidelman <ebi...@gmail.com> wrote:
Rob, we should get one of these in the FAQ. Chrome apps and CSP come up a lot.
On Tue, Jul 8, 2014 at 10:34 AM, 'Rob Dodson' via Polymer <polym...@googlegroups.com> wrote:
I forked a different example to make this: https://github.com/robdodson/polymerchromeapp

I just added a bower.json, installed all the dependencies, and checked them into the project. To my knowledge, there's no automatic way to make bower run when a user installs your app, so you'll need to manage that process yourself. I think the easiest way to manage things is to just run `bower update` whenever you want to do a new release of your project.
On Tue, Jul 8, 2014 at 3:57 AM, Pete Townsend <prt...@gmail.com> wrote:
Is there a sample chrome app anywhere that uses polymer and bower?  I have found this, but it seems to be using an older version of Polymer that is copied to the project.  Is there a way to make chrome app work with bower to pull the latest version of polymer with paper elements and so on?

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev+unsubscribe@googlegroups.com.

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev+unsubscribe@googlegroups.com.

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CACGqRCB%2BQvJTZ00faascgsyU%3Dr0gXcritDNk0nE%3DwEAKuWTU%2BQ%40mail.gmail.com.

Rob Dodson

unread,
Jul 8, 2014, 8:49:53 PM7/8/14
to Ian MacLeod, Eric Bidelman, Arthur Evans, Pete Townsend, polymer-dev
Here's my updated version:
https://github.com/robdodson/polymerchromeapp

I added a Gruntfile to make re-running vulcanize easier (that's a common complaint that I've heard). Though that may be overkill if we want to make this the last step of the tutorial. I'm fine taking it out if we decide it's unnecessary.


Reply all
Reply to author
Forward
0 new messages