Skip to content

Commit 6c7b585

Browse files
authored
refactor!: convert to Polymer 3
vaadin/vaadin-icons#98
1 parent f5f0657 commit 6c7b585

File tree

26 files changed

+720
-1236
lines changed

26 files changed

+720
-1236
lines changed

packages/vaadin-icons/.editorconfig

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"extends": "vaadin",
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:prettier/recommended"
5+
],
6+
"plugins": ["prettier"],
37
"env": {
48
"browser": true,
5-
"node": true,
69
"es6": true
710
},
8-
"plugins": [
9-
"html"
10-
],
11-
"globals": {
12-
"Polymer": false,
13-
"Vaadin": false
11+
"parserOptions": {
12+
"sourceType": "module",
13+
"ecmaVersion": 2020
1414
}
1515
}

packages/vaadin-icons/.gemini.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: tests
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
unit-tests:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: 12
14+
15+
- name: Install dependencies
16+
run: npm install
17+
18+
- name: Lint JavaScript
19+
run: npm run lint

packages/vaadin-icons/.npmignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/vaadin-icons/.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 120,
4+
"trailingComma": "none",
5+
"htmlWhitespaceSensitivity": "strict"
6+
}

packages/vaadin-icons/.stylelintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/vaadin-icons/.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

packages/vaadin-icons/README.md

Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,19 @@
1+
# Vaadin Icons
2+
13
[![npm version](https://badgen.net/npm/v/@vaadin/vaadin-icons)](https://www.npmjs.com/package/@vaadin/vaadin-icons)
2-
[![Bower version](https://badgen.net/github/release/vaadin/vaadin-icons)](https://github.com/vaadin/vaadin-icons/releases)
34
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/vaadin/vaadin-icons)
45
[![Build status](https://travis-ci.org/vaadin/vaadin-icons.svg?branch=master)](https://travis-ci.org/vaadin/vaadin-icons)
5-
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/vaadin/web-components?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
6-
76
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-icons)
87
[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/vaadinvaadin-icons.svg)](https://vaadin.com/directory/component/vaadinvaadin-icons)
98

10-
# Vaadin Icons
11-
129
[<img src="https://raw.github.com/vaadin/vaadin-icons/master/screenshot.png" width="611" alt="Screenshot of some icons in the Vaadin Icons collection" />](https://vaadin.com/icons)
1310

14-
1511
[Vaadin Icons](https://vaadin.com/icons) is a set of 600+ icons designed for web applications. Free to use, anywhere!
1612

1713
Visit **https://vaadin.com/icons** for more information and instructions how to get started using them.
1814

1915
## Installation
2016

21-
The Vaadin components are distributed as Bower and npm packages.
22-
Please note that the version range is the same, as the API has not changed.
23-
You should not mix Bower and npm versions in the same application, though.
24-
25-
Unlike the official Polymer Elements, the converted Polymer 3 compatible Vaadin components
26-
are only published on npm, not pushed to GitHub repositories.
27-
28-
### Polymer 2 and HTML Imports compatible version
29-
30-
Install `vaadin-icons`:
31-
32-
```sh
33-
bower i vaadin/vaadin-icons --save
34-
```
35-
36-
Once installed, import it in your application:
37-
38-
```html
39-
<link rel="import" href="bower_components/vaadin-icons/vaadin-icons.html">
40-
```
41-
42-
### Polymer 3 and ES Modules compatible version
43-
4417
Install `vaadin-icons`:
4518

4619
```sh
@@ -53,17 +26,17 @@ Once installed, import it in your application:
5326
import '@vaadin/vaadin-icons/vaadin-icons.js';
5427
```
5528

29+
## Running API docs in a browser
5630

57-
## Running demos in browser
58-
59-
1. Install [polymer-cli](https://www.npmjs.com/package/polymer-cli): `npm install -g polymer-cli`
31+
1. Fork the `vaadin-icons` repository and clone it locally.
6032

61-
1. When in the `vaadin-icons` directory, run `bower install` to install Bower dependencies
33+
1. Make sure you have [node.js](https://nodejs.org/) 12.x installed.
6234

63-
1. Run `npm start`, after that you will be able to access:
35+
1. Make sure you have [npm](https://www.npmjs.com/) installed.
6436

65-
- http://127.0.0.1:3000/components/vaadin-icons/demo
37+
1. When in the `vaadin-icons` directory, run `npm install` to install dependencies.
6638

39+
1. Run `npm start`, browser will automatically open the component API documentation.
6740

6841
## License
6942

packages/vaadin-icons/bower.json

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)