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 the Custom Elements polyfill to TypeScript #246

Merged
merged 17 commits into from
Feb 11, 2020
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
packages/*/node_modules/
packages/custom-elements/src/
packages/custom-elements/buildcache
node_modules/
lerna-debug.log
*.min.js*
Expand Down
12 changes: 12 additions & 0 deletions packages/custom-elements/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BasedOnStyle: Google
AlignAfterOpenBracket: AlwaysBreak
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
rictic marked this conversation as resolved.
Show resolved Hide resolved
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BinPackArguments: false
# This breaks async functions sometimes, see
# https://github.com/Polymer/polymer-analyzer/pull/393
# BinPackParameters: false
52 changes: 48 additions & 4 deletions packages/custom-elements/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions packages/custom-elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
],
"license": "BSD-3-Clause",
"scripts": {
"build": "gulp",
"build": "tsc && gulp",
"debug": "rollup -c",
"test": "wct",
"prepack": "npm run build"
"prepack": "npm run build",
"format": "find src -name \"*.ts\" | xargs clang-format --style=file -i"
},
"files": [
"custom-elements.min.js*",
Expand All @@ -32,7 +33,9 @@
"@webcomponents/shadydom": "^1.7.1",
"@webcomponents/template": "^1.4.1",
"@webcomponents/webcomponents-platform": "^1.0.0",
"clang-format": "^1.3.0",
"es6-promise": "4.2.4",
"typescript": "^3.7.3",
"wct-browser-legacy": "^1.0.2"
},
"publishConfig": {
Expand Down
21 changes: 0 additions & 21 deletions packages/custom-elements/src/AlreadyConstructedMarker.js

This file was deleted.

19 changes: 0 additions & 19 deletions packages/custom-elements/src/CustomElementState.js

This file was deleted.

62 changes: 0 additions & 62 deletions packages/custom-elements/src/Deferred.js

This file was deleted.

65 changes: 0 additions & 65 deletions packages/custom-elements/src/Patch/Document.js

This file was deleted.

23 changes: 0 additions & 23 deletions packages/custom-elements/src/Patch/DocumentFragment.js

This file was deleted.

Loading