Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to Polymer 3, add events type definitions #2080

Merged
merged 60 commits into from
Nov 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
ee27d53
Remove app-localize-behavior tests
web-padawan Nov 10, 2020
4a7a61e
Remove style-scope tests
web-padawan Nov 10, 2020
6312b9f
Remove demo and related dependencies
web-padawan Nov 10, 2020
b2360e7
Convert to Polymer 3 with magi-cli
web-padawan Nov 20, 2020
5e35468
Remove remaining Polymer 2 tests
web-padawan Nov 10, 2020
187bde9
Cleanup and sort Polymer imports
web-padawan Nov 10, 2020
b3107e7
Remove custom-style usage from src
web-padawan Nov 10, 2020
540a5f0
Replace Base.async with setTimeout
web-padawan Nov 10, 2020
6cb0617
Commit typings to version control
web-padawan Nov 11, 2020
9fd4678
Sort package.json, add module entry
web-padawan Nov 20, 2020
ff2e35a
Replace dom-module with registerStyles
web-padawan Nov 11, 2020
c4fa35b
Fix flush import in helpers
web-padawan Nov 11, 2020
4265350
Cleanup iron-list code
web-padawan Nov 12, 2020
6fe86ed
Convert unit tests to web-test-runner
web-padawan Nov 16, 2020
45b7337
Update GitHub Actions configuration
web-padawan Nov 16, 2020
32f6959
Convert visual tests to hermione-esm
web-padawan Nov 17, 2020
412004c
Update copyright headers
web-padawan Nov 17, 2020
e4a0593
Remove ShadyDOM workarounds
web-padawan Nov 17, 2020
f290233
Cleanup TS definitions, extend HTMLElement
web-padawan Nov 17, 2020
95f21ec
Add ESLint, Prettier, Stylelint and magi
web-padawan Nov 17, 2020
b766f12
Renove old Firefox workarounds
web-padawan Nov 17, 2020
a34a26e
test: prevent loading Roboto from CDN
web-padawan Nov 18, 2020
0a8cc67
test: update Material theme screenshots
web-padawan Nov 18, 2020
38abbd8
Remove empty scroller iron-list methods
web-padawan Nov 18, 2020
4911e79
Fix API docs page, remove polyfills
web-padawan Nov 18, 2020
2d51f65
Mark internal classes as private
web-padawan Nov 18, 2020
c8ec7ee
Remove templatizer callbacks super calls
web-padawan Nov 18, 2020
6f545a9
Enable test coverage in Chrome
web-padawan Nov 18, 2020
486dc0b
Update and cleanup README
web-padawan Nov 18, 2020
dd93127
Update coverage threshold
web-padawan Nov 18, 2020
42ebac5
Cleanup root level TS definitions
web-padawan Nov 18, 2020
064dfba
Update test-runner and dependencies
web-padawan Nov 18, 2020
dc40da4
Reorganize type definitions
web-padawan Nov 18, 2020
5bb43ec
Remove IE11 specific workarounds
web-padawan Nov 18, 2020
6e0290f
Remove iOS 10 repaint workaround
web-padawan Nov 18, 2020
62f7266
Cleanup keyboard navigation tests
web-padawan Nov 18, 2020
af4748f
Update ESLint config, fix warnings
web-padawan Nov 18, 2020
62255ce
Simplify tests using console.warn
web-padawan Nov 18, 2020
9f74112
Reduce tests flakiness in Safari
web-padawan Nov 18, 2020
9521d49
Do not legacy API for event path
web-padawan Nov 18, 2020
9b55e85
Do not define vaadin-grid-scroller element
web-padawan Nov 18, 2020
3fab53c
Cleanup unused iron-list code
web-padawan Nov 18, 2020
8680fc9
Fix empty newlines
web-padawan Nov 19, 2020
30c68e5
Remove slot needed by ShadyDOM
web-padawan Nov 19, 2020
06ff3dc
Cleanup unused test helpers
web-padawan Nov 19, 2020
596b146
Refactor timeouts to constant
web-padawan Nov 19, 2020
78b7e5a
Replace var with let and const
web-padawan Nov 19, 2020
3bbdf8e
Simplify iron-list code
web-padawan Nov 19, 2020
cc07002
Remove unused Polymer dependencies
web-padawan Nov 19, 2020
bae71a0
Update internal CSS custom property
web-padawan Nov 20, 2020
28024f4
Update web-test-runner-saucelabs
web-padawan Nov 20, 2020
4cd0740
Exclude some tests to reduce Safari flakiness
web-padawan Nov 20, 2020
784bda4
Refactor keyboard navigation tests
web-padawan Nov 20, 2020
e64e752
Bump dev dependency versions
web-padawan Nov 20, 2020
eccb207
Update Safari version to latest
web-padawan Nov 20, 2020
28662b5
Set concurrency to 1 in Safari
web-padawan Nov 20, 2020
3436061
Support skipping SauceLabs build
web-padawan Nov 23, 2020
8af7d11
Cleanup vaadin-grid-templatizer
web-padawan Nov 23, 2020
7caa64f
Add type definitions for custom events
web-padawan Nov 23, 2020
18011be
Remove legacy Edge workarounds
web-padawan Nov 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 8 additions & 9 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,
"node": true,
"es6": true
},
"plugins": [
"html"
],
"globals": {
"vaadin": false,
"Vaadin": false,
"Polymer": false
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
}
}
16 changes: 0 additions & 16 deletions .gemini.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
name: sauce-p2-mobile
name: firefox

on: [push]

jobs:
tests:
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 CLI tools
run: npm install -g bower

- name: Install dependencies
run: npm -q i

- name: Install Bower
run: bower -q i
run: npm install

- name: Run unit tests
- name: Test in Firefox
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: npm test -- --env saucelabs:mobile
run: npm run test:firefox
59 changes: 0 additions & 59 deletions .github/workflows/local.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
name: sauce-p2-desktop
name: safari

on: [push]

jobs:
tests:
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 CLI tools
run: npm install -g bower

- name: Install dependencies
run: npm -q i

- name: Install Bower
run: bower -q i
run: npm install

- name: Run unit tests
- name: Test in Safari
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: npm test -- --env saucelabs:desktop
run: npm run test:safari
35 changes: 0 additions & 35 deletions .github/workflows/sauce-p3-desktop.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/sauce-p3-mobile.yml

This file was deleted.

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: Test in Chrome
run: npm test
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
name: sauce-visual
name: visual

on: [push]

jobs:
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 CLI tools
run: npm install -g bower gemini gemini-sauce gemini-polyserve

- name: Install dependencies
run: npm -q i

- name: Install Bower
run: bower -q i
run: npm install

- name: Run visual tests
- name: Visual tests
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: gemini test test/visual
run: npm run test:visual
24 changes: 24 additions & 0 deletions .hermione.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
browsers: {
chrome: {
baseUrl: 'http://localhost:8080/test/visual/',
screenshotsDir: (test) => {
const folder = test.title.replace(/-(lumo|material)(-)?(rtl|ltr)?/, '');
return `test/visual/screens/vaadin-grid/${folder}`;
},
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"
]
}
Loading