Skip to content

Commit

Permalink
feat!: convert to Polymer 3, add events type definitions (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Dec 10, 2020
1 parent f88fa4c commit 58a1f26
Show file tree
Hide file tree
Showing 176 changed files with 12,030 additions and 10,215 deletions.
19 changes: 9 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"extends": "vaadin",
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"plugins": ["prettier"],
"env": {
"browser": true,
"es6": true,
"node": true
"es6": true
},
"plugins": [
"html"
],
"globals": {
"Vaadin": false,
"Polymer": false,
"CustomElements": false
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
}
}
16 changes: 0 additions & 16 deletions .gemini-ff.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .gemini.yml

This file was deleted.

24 changes: 15 additions & 9 deletions ISSUE_TEMPLATE.md → .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
### Description
<!-- Example: The `vaadin-combo-box` element does not open when the input is clicked. -->

### Expected outcome
<!-- Example: Overlay should appear when input is clicked. -->

### Actual outcome
<!-- Example: Overlay stays hidden. -->

### Live Demo
<!-- The template, click "Remix This" to edit it: https://glitch.com/edit/#!/capricious-bug -->
<!-- Click "Remix This" and edit -- must be logged in to persist! -->
https://glitch.com/edit/#!/vaadin-combo-box-issue
<!-- ...or provide your own repro URL -->

### Steps to reproduce
<!-- Example
Expand All @@ -17,12 +13,22 @@
3. Click the input of `vaadin-combo-box` element.
-->

### Expected Results
<!-- Example: Overlay should appear when input is clicked. -->

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

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

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

on:
push:
branches:
- '**'
tags-ignore:
- '*.*'

jobs:
unit-tests:
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"

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
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"

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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
package-lock.json
yarn.lock
coverage
dist
analysis.json
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-combo-box',
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"
}
5 changes: 4 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "stylelint-config-vaadin"
"extends": [
"stylelint-config-vaadin",
"stylelint-config-prettier"
]
}
64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

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

This file was deleted.

Loading

0 comments on commit 58a1f26

Please sign in to comment.