1.1.1 • Published 6 years ago
polymer-npm-wrapper v1.1.1
polymer-npm-wrapper - :warning: Deprecated
Unofficial wrapper for getting Polymer v1.8.1 from Git as NPM dependency and exporting it as ES2015 module.
How to use
Install with Yarn or NPM client
$ yarn add polymer-npm-wrapper
--- or ---
$ npm install polymer-npm-wrapper --save
add the Polymer library in your main component file
<link rel="import" href="./node_modules/@polymer/polymer/polymer.html">
then in any Javascript class files that requires Polymer you can now do a simple import
import {Polymer} from "polymer-npm-wrapper";
Known issues
- Since Polymer isn't defined as an ES2015 module you have to to import both the HTML file and the JS module.
- This package downloads Polymer from the GitHub repo at its latest version, but do not directly downloads all of the dependencies. You may need them if you want to use some of its CLI tools, like WCT.
License
Released under the Apache 2.0 license.