cloud-polymer-go icon indicating copy to clipboard operation
cloud-polymer-go copied to clipboard

Migrate to Polymer 1.0

Open campoy opened this issue 10 years ago • 5 comments

Basically did sed "s/0.5/1.0/g"

campoy avatar Nov 05 '15 16:11 campoy

What do you think, @crhym3?

campoy avatar Nov 05 '15 16:11 campoy

It's more than that, unfortunately.

A couple things spotted right away:

  • there are no more <core-*> elements, most of them have been ported to <iron-*
  • an element definition like <polymer-element name="post-card"> won't work anymore. It's been changed substantially.

There's a tool called polyup which is like "go fix". Migration guide explains most of it: https://www.polymer-project.org/1.0/docs/migration.html

Also, it's better to use 1.2, well the latest.

x1ddos avatar Nov 05 '15 16:11 x1ddos

btw, I don't think links like https://www.polymer-project.org/1.0/components/polymer/polymer.html actually exist. It's still serving 0.5. Check this out: https://www.polymer-project.org/1.0/components/polymer/polymer.js

// @version 0.5.5

x1ddos avatar Nov 05 '15 17:11 x1ddos

@x1ddos is right unfortunately. Some elements are radically changed in 1.0 version. So a sed "s/0.5/1.0/g" isnt working. Polyup is a great tool to migrate from 0.5 to 1.0, I ve tried it on this project.But still some of it you have to do manually. And what is the replacement for <google-api-loader id="api" name="posts" version="v1" appId="polymer-gopher" root="http://localhost:8080/_ah/api"> in Polymer 1.0 ?

kalpacg avatar Nov 17 '16 05:11 kalpacg

Polymer Project is forewading like wildfire. We have 1.7 stable release and they are thinking about 2.0. So I think bower will be a good solution for Polymer version upgrades.

kalpacg avatar Nov 17 '16 05:11 kalpacg