Skip to content

Commit

Permalink
Updating to Polymer 3
Browse files Browse the repository at this point in the history
  • Loading branch information
myfrom committed Sep 27, 2018
1 parent 528c4d7 commit 8596ad4
Show file tree
Hide file tree
Showing 13 changed files with 1,121 additions and 993 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
bower_components/
node_modules/
bower_components-1.x/
bower-1.x.json
/node_modules/
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ addons:
- google-chrome
packages:
- google-chrome-stable
before_script:
- npm install -g polymer-cli bower
- polymer install --variants
install:
- npm install -g polymer-cli
- npm install
script:
- polymer lint --rules 'polymer-2-hybrid'
- polymer lint
- xvfb-run polymer test
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test -s 'default'; fi
env:
Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg?style=flat-square)](https://www.webcomponents.org/element/myfrom/paper-pager)
[![Build Status](https://img.shields.io/travis/rust-lang/rust.svg?style=flat-square)](https://travis-ci.org/myfrom/paper-pager)
[![npm](https://img.shields.io/npm/v/@myfrom/paper-pager.svg?style=flat-square)](https://www.npmjs.com/package/@myfrom/paper-pager)

# paper-pager

`paper-pager` is a Material Design page indicator that is easy to customise and allows controlling the selected page by clicking on the pager.

## Installation

Make sure you have installed Bower, then simply run
`$ bower install --save myfrom/paper-pager`
Make sure you have installed NPM, then simply run
`$ npm install --save @myfrom/paper-pager`

This element is made in Hybrid mode so it will work with both Polymer 2.0 and 1.0
Port for Polymer 3 is coming soon, stay tuned.
Newer versions of this element work only with Polymer 3.
For backwards compatibility use versions 1.x

## Usage

Import the element and then just use it as normal element.
Import the element
```js
import '@myfrom/paper-pager';
```
and then just use it as normal element.
<!--
```
<custom-element-demo>
Expand Down Expand Up @@ -44,10 +49,9 @@ If you found a bug or have an idea for a new feature, be sure to open an issue *

### Local development and testing

For local development use **[Polymer CLI](https://www.polymer-project.org/2.0/docs/tools/polymer-cli)**. It's a very easy tool for working on Polymer apps and elements. Serve your element with `$ polymer serve` and **before you submit a PR** run
For local development use **[Polymer CLI](https://www.polymer-project.org/3.0/docs/tools/polymer-cli)**. It's a very easy tool for working on Polymer apps and elements. Serve your element with `$ polymer serve` and **before you submit a PR** run
```bash
$ polymer install --variants # This will run tests on both Polymer 1 and 2
$ polymer lint --rules polymer-2-hybrid
$ polymer lint
$ polymer test
```

Expand Down
Loading

0 comments on commit 8596ad4

Please sign in to comment.