Skip to content

Commit

Permalink
feat!: convert to Polymer 3, add events type definitions (#234)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomi Virkki <virkki@vaadin.com>
  • Loading branch information
web-padawan and tomivirkki authored Nov 16, 2020
1 parent be157a1 commit 350da59
Show file tree
Hide file tree
Showing 88 changed files with 2,792 additions and 3,875 deletions.
16 changes: 8 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"extends": "vaadin",
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"plugins": ["prettier"],
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"html"
],
"globals": {
"Polymer": false,
"Vaadin": false
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
}
}
22 changes: 0 additions & 22 deletions .gemini.yml

This file was deleted.

30 changes: 12 additions & 18 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,34 @@
### Description
<!-- Example: Error thrown when calling `appendChild` on Vaadin element -->
<!-- Example: The `vaadin-select` element does not open when the input is clicked. -->

#### Live Demo
<!-- Click "Remix This" and edit -- must be logged in to persist! -->
https://glitch.com/edit/#!/rhetorical-oil
https://glitch.com/edit/#!/vaadin-select-renderer
<!-- ...or provide your own repro URL -->

#### Steps to Reproduce
<!--
Example:
1. Create `vaadin-select`
2. Append `vaadin-select` to document.body
3. Create `div`.
4. Append `div` to `vaadin-select`
<!-- Example
1. Put a `vaadin-select` element in the page.
3. Click the `vaadin-select` element.
-->


#### Expected Results
<!-- Example: No error is throw -->
<!-- Example: Overlay should appear when `vaadin-select` is clicked. -->

#### Actual Results
<!-- Example: Error is thrown -->
<!-- Example: Overlay stays hidden. -->

### Browsers Affected
<!-- Check all that apply -->
- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge
- [ ] Safari 9
- [ ] Safari 8
- [ ] IE 11
- [ ] iOS Safari
- [ ] Android Chrome

### Versions
### Version
<!--
`bower ls` or `npm ls` will show the version of webcomponents.js or webcomponents-lite.js
`$ npm ls | grep @vaadin` will show the version of the components.
-->
- vaadin-select: vX.X.X
- webcomponents: vX.X.X
40 changes: 40 additions & 0 deletions .github/workflows/sauce.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: sauce

on: [push]

jobs:
unit-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: npm install

- name: SauceLabs tests
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: npm run test:sauce

visual-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: npm install

- name: Visual tests
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: npm run test:visual
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: tests

on: [pull_request]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: npm install

- name: Check version
run: npm run check-version

- name: Lint JavaScript
run: npm run lint:js

- name: Lint CSS
run: npm run lint:css

- name: Lint typings
run: npm run lint:types

unit-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: npm install

- name: Unit tests
run: npm test
21 changes: 21 additions & 0 deletions .hermione.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
browsers: {
chrome: {
baseUrl: 'http://localhost:8080/test/visual/',
screenshotsDir: () => 'test/visual/screens/vaadin-select',
desiredCapabilities: {
browserName: 'chrome',
version: '85.0',
platform: 'Windows 10'
}
}
},
plugins: {
'hermione-esm': {
port: 8080
},
'hermione-sauce': {
verbose: false
}
}
};
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"printWidth": 120,
"trailingComma": "none"
}
66 changes: 0 additions & 66 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions @types/interfaces.d.ts

This file was deleted.

27 changes: 0 additions & 27 deletions ISSUE_TEMPLATE.md

This file was deleted.

Loading

0 comments on commit 350da59

Please sign in to comment.