Polymer 3 — First Impressions
My journey to Polymer 3 starts with an idea for a side project, Daily, a Chrome extension that will provide all the latest news for web developers. In a nutshell, a Chrome extension is nothing more than a webapp with special API for close integration with the browser. As a Polymer advocate, I immediately bootstrapped a Polymer 2 project using
import , very simple building flow.Moving to npm and es6 modules is the best thing the Polymer team has done, it enables us, developers, to use almost every nodejs package out there. But it is not all rainbows and butterflies as we need to manage devDependencies and regular dependencies a bit differently. The dependencies has to be managed in flat hierarchy because they will be executed in a browser environment and devDependencies are executed in a nodejs environment so they can be managed as usual. Yarn partially supports this flow, but Rob Dodson already on it, you can keep tracking progress here. Basically to install a package use:
yarn add --flat --modules-folder modules packageName --production
Polymer 3 has a lot of potential to be the perfect library, it just needs the right tooling to answer the community needs and of course the most important thing to keep everything simple as it always have been with Polymer.
I would like to thank the Polymer team for their great effort making this amazing library and the tight communication with the developers.You are more than welcome to check out Daily and see Polymer 3 in action. This extension made is for you and for you only, so you will always be up-to-date and not waste your time chasing blog posts and RSS feeders.