Skip to content

Commit 32554a8

Browse files
authored
feat!: convert to Polymer 3, add events type definitions
vaadin/vaadin-overlay#188
1 parent a097649 commit 32554a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+6977
-5476
lines changed
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +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,
14-
"CustomElements": false
11+
"parserOptions": {
12+
"sourceType": "module",
13+
"ecmaVersion": 2020
1514
}
1615
}

packages/vaadin-overlay/.gemini.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: sauce
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
tags-ignore:
8+
- '*.*'
9+
10+
jobs:
11+
unit-tests:
12+
runs-on: ubuntu-latest
13+
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: 12
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: SauceLabs tests
25+
env:
26+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
27+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
28+
run: npm run test:sauce
29+
30+
visual-tests:
31+
runs-on: ubuntu-latest
32+
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
33+
34+
steps:
35+
- uses: actions/checkout@v2
36+
- uses: actions/setup-node@v1
37+
with:
38+
node-version: 12
39+
40+
- name: Install dependencies
41+
run: npm install
42+
43+
- name: Visual tests
44+
env:
45+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
46+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
47+
run: npm run test:visual
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: tests
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
lint:
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:js
20+
21+
- name: Lint CSS
22+
run: npm run lint:css
23+
24+
- name: Lint typings
25+
run: npm run lint:types
26+
27+
unit-tests:
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: actions/setup-node@v1
33+
with:
34+
node-version: 12
35+
36+
- name: Install dependencies
37+
run: npm install
38+
39+
- name: Unit tests
40+
run: npm test

packages/vaadin-overlay/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
bower_components
22
node_modules
3+
package-lock.json
4+
yarn.lock
35
coverage
6+
dist
7+
analysis.json
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
browsers: {
3+
chrome: {
4+
baseUrl: 'http://localhost:8080/test/visual/',
5+
screenshotsDir: () => 'test/visual/screens/vaadin-overlay',
6+
desiredCapabilities: {
7+
browserName: 'chrome',
8+
version: '85.0',
9+
platform: 'Windows 10'
10+
}
11+
}
12+
},
13+
plugins: {
14+
'hermione-esm': {
15+
port: 8080
16+
},
17+
'hermione-sauce': {
18+
verbose: false
19+
}
20+
}
21+
};
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+
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"extends": "stylelint-config-vaadin"
2+
"extends": [
3+
"stylelint-config-vaadin",
4+
"stylelint-config-prettier"
5+
]
36
}

packages/vaadin-overlay/.travis.yml

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

packages/vaadin-overlay/@types/interfaces.d.ts

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

0 commit comments

Comments
 (0)