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

Typescript conversion #1828

Merged
merged 55 commits into from
May 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
d717bd1
initial typescript conversion
niklasvh May 3, 2019
3768c1b
test: update overflow+transform ref test
niklasvh May 3, 2019
0455f85
fix: correctly render pseudo element content
niklasvh May 4, 2019
8516fac
fix: testrunner build
niklasvh May 4, 2019
36d3ac6
fix: karma test urls
niklasvh May 4, 2019
4a8dc9b
test: update underline tests with <u> elements
niklasvh May 4, 2019
20b71ba
test: update to es6-promise polyfill
niklasvh May 4, 2019
989e83e
test: remove watch from server
niklasvh May 4, 2019
e5ebb9b
test: remove flow
niklasvh May 4, 2019
7017f5f
format: update prettier for typescript
niklasvh May 4, 2019
23aa47d
test: update eslint to use typescript parser
niklasvh May 5, 2019
c8e060e
test: update linear gradient reftest
niklasvh May 5, 2019
dd57e34
test: update test runner
niklasvh May 5, 2019
d88d8e2
test: update testrunner promise polyfill
niklasvh May 5, 2019
d7656b0
fix: handle display: -webkit-flex correctly (fix #1817)
niklasvh May 6, 2019
3c50e53
fix: correctly render gradients with clip & repeat (fix #1773)
niklasvh May 6, 2019
8253caf
fix: webkit-gradient function support
niklasvh May 6, 2019
5965feb
fix: implement radial gradients
niklasvh May 9, 2019
372916c
fix: text-decoration rendering
niklasvh May 9, 2019
ca22d98
fix: missing scroll positions for elements
niklasvh May 9, 2019
a075e1e
ci: fix ios 11 tests
niklasvh May 9, 2019
ec64381
fix: ie logging
niklasvh May 9, 2019
eab7853
ci: improve device availability logging
niklasvh May 9, 2019
778a886
fix: lint errors
niklasvh May 9, 2019
7830734
ci: update to ios 12
niklasvh May 9, 2019
b403d98
fix: check for console availability
niklasvh May 9, 2019
ec48571
ci: fix build dependency
niklasvh May 9, 2019
d7625d6
test: update text reftests
niklasvh May 9, 2019
882d8cf
fix: window reference for unit tests
niklasvh May 9, 2019
65d345f
feat: add hsl/hsla color support
niklasvh May 10, 2019
6577ac4
fix: render options
niklasvh May 10, 2019
bc270bb
fix: CSSKeyframesRule cssText Permission Denied on Internet Explorer …
niklasvh May 11, 2019
b6444cf
fix: option lint
niklasvh May 11, 2019
da84493
fix: list type rendering
niklasvh May 12, 2019
e855193
test: fix platform import
niklasvh May 12, 2019
d6b2804
fix: ie css parsing for numbers
niklasvh May 12, 2019
79023be
ci: add minified build
niklasvh May 12, 2019
347cede
fix: form element rendering
niklasvh May 21, 2019
b08f7c2
fix: iframe rendering
niklasvh May 22, 2019
9bf04e6
fix: re-introduce experimental foreignobject renderer
niklasvh May 22, 2019
5dae473
fix: text-shadow rendering
niklasvh May 22, 2019
41cd6bf
feat: improve logging
niklasvh May 22, 2019
96f2618
fix: unit test logging
niklasvh May 23, 2019
8e0f316
fix: cleanup resources
niklasvh May 25, 2019
b018867
test: update overflow scrolling to work with ie
niklasvh May 25, 2019
41aa711
build: update build to include typings
niklasvh May 25, 2019
63c04bb
fix: do not parse select element children
niklasvh May 25, 2019
cb17db3
test: fix onclone test to work with older IEs
niklasvh May 25, 2019
9469db8
test: reduce reftest canvas sizes
niklasvh May 25, 2019
1d772d6
test: remove dynamic setUp from list tests
niklasvh May 25, 2019
1dc6c4e
test: update linear-gradient tests
niklasvh May 25, 2019
a0da573
build: remove old source files
niklasvh May 25, 2019
b807052
build: update docs dependencies
niklasvh May 25, 2019
cc461ec
build: fix typescript definition path
niklasvh May 25, 2019
ab6f3d8
ci: include test.js on docs website
niklasvh May 25, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
{
"parser": "babel-eslint",
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
],
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"flowtype",
"@typescript-eslint",
"prettier"
],
"rules": {
"no-console": ["error", { "allow": ["warn", "error"] }],
"flowtype/boolean-style": [
2,
"boolean"
],
"flowtype/no-weak-types": 2,
"flowtype/delimiter-dangle": 2,
"prettier/prettier": ["error", {
"singleQuote": true,
"bracketSpacing": false,
"parser": "flow",
"tabWidth": 4,
"printWidth": 100
}]
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/class-name-casing": "off",
"prettier/prettier": "error"
}
}
8 changes: 0 additions & 8 deletions .flowconfig

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ npm-debug.log
debug.log
tests/reftests.js
*.log
.rpt2_cache
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ karma.js
karma.conf.js
rollup.config.js
webpack.config.js
.rpt2_cache
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "none",
"tabWidth": 4,
"bracketSpacing": false,
"singleQuote": true,
"printWidth": 120
}
14 changes: 6 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ jobs:
displayName: Build
- script: npm run lint
displayName: Lint
- script: npm run flow
displayName: Flow
- script: npm run test:node
- script: npm run unittest
displayName: Unit tests

- template: ci/browser-tests.yml
Expand Down Expand Up @@ -88,10 +86,10 @@ jobs:

- template: ci/browser-tests.yml
parameters:
name: Browser_Tests_OSX_Safari_IOS_11
displayName: iOS Simulator Safari 11
name: Browser_Tests_OSX_Safari_IOS_12
displayName: iOS Simulator Safari 12
vmImage: 'macOS-10.13'
targetBrowser: Safari_IOS_11
targetBrowser: Safari_IOS_12

- template: ci/browser-tests.yml
parameters:
Expand Down Expand Up @@ -130,7 +128,7 @@ jobs:
- Browser_Tests_Linux_Chrome_Stable
- Browser_Tests_OSX_Safari_IOS_9
- Browser_Tests_OSX_Safari_IOS_10
- Browser_Tests_OSX_Safari_IOS_11
- Browser_Tests_OSX_Safari_IOS_12
- Browser_Tests_OSX_Safari_Stable
- Browser_Tests_Windows_IE9
- Browser_Tests_Windows_IE10
Expand All @@ -153,7 +151,7 @@ jobs:
inputs:
artifactName: dist
downloadPath: $(System.DefaultWorkingDirectory)
- script: cp -R tests/reftests www/static/tests/reftests && cp -R tests/assets www/static/tests/assets && cp -R ReftestResults ./www/static/results
- script: cp -R tests/reftests www/static/tests/reftests && cp -R tests/assets www/static/tests/assets && cp tests/test.js www/static/tests/test.js && cp -R ReftestResults ./www/static/results
displayName: Copy reftests to docs website
- script: cp -R dist ./www/static/dist
displayName: Copy dist to docs website
Expand Down
11 changes: 0 additions & 11 deletions flow-typed/myLibDef.js

This file was deleted.

6 changes: 3 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ module.exports = function(config) {
name: 'iPhone 5s',
sdk: '10.0'
},
Safari_IOS_11: {
Safari_IOS_12: {
base: 'MobileSafari',
name: 'iPhone 5s',
sdk: '11.4'
sdk: '12.1'
},
SauceLabs_IE9: {
base: 'SauceLabs',
Expand Down Expand Up @@ -132,6 +132,7 @@ module.exports = function(config) {

if (!d) {
log.error(`No device found for sdk ${args.sdk} with name ${args.name}`);
log.info(`Available devices:`, devices);
this._process.kill();
return;
}
Expand Down Expand Up @@ -172,7 +173,6 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
'build/testrunner.js',
'build/RefTestRenderer.js',
{ pattern: './tests/**/*', 'watched': true, 'included': false, 'served': true},
{ pattern: './dist/**/*', 'watched': true, 'included': false, 'served': true},
{ pattern: './node_modules/**/*', 'watched': true, 'included': false, 'served': true},
Expand Down
Loading