Home

Awesome

polyup

Automates the boring parts of migrating your code from Polymer 0.5 to 1.0.

Build Status

The change from Polymer 0.5 to 1.0 is a large one, as we transitioned from exploratory beta releases to a stable production-ready product.

polyup will parse your HTML and any Javascript in either inline or external scripts and perform a number of automatic transformations to your code.

For most projects polyup won't be able to do everything necessary to upgrade, but its goal is to make it way easier.

Try it out in the interactive demo.

Installation

polyup is available on npm. We recommend installing polyup globally.

npm install -g polyup

This will install polyup to the bin directory configured when node was installed. (e.g. /usr/local/bin/polyup). You may need sudo for this step.

Usage

The command

polyup photo-lightbox.html

will parse and transform photo-lightbox and any linked Javascript that polyup can find and then print the transformed code back out onto the command line.

If that looks good, then you can run polyup with the --overwrite option to overwrite your code on disk with the upgraded version. Make sure that you've got your code checked into source control first, as this will in effect delete the v0.5 version of your code!

Manual Changes

polyup does a lot of stuff! But it doesn't do everything. See the After Use Guide for common changes that you'll need to make by hand.

Reporting Bugs

polyup is still in early and active development. Since so many people are looking at migrating to 1.0 right now we thought that it was better to get what we have now out there now, even if it won't be right for everyone.

Please file bugs as you see them! See CONTRIBUTING.md for more info.

Transformations

HTML

Javascript

CSS

Other