Skip to content

Commit 4414cba

Browse files
authored
Merge pull request #138 from github/ts
TypeScript conversion
2 parents f451756 + eeacffe commit 4414cba

29 files changed

+1412
-2458
lines changed

.eslintrc.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
{
22
"extends": [
33
"plugin:github/browser",
4-
"plugin:github/es6",
5-
"plugin:github/flow"
4+
"plugin:github/recommended",
5+
"plugin:github/typescript"
66
],
7-
"parser": "babel-eslint",
87
"overrides": [
98
{
109
"files": "test/**/*.js",
1110
"rules": {
12-
"flowtype/require-valid-file-annotation": "off",
1311
"github/unescaped-html-literal": "off"
1412
}
1513
},
1614
{
1715
"files": "test/**/*.js",
18-
"excludedFiles": "test/karma.config.js",
16+
"excludedFiles": "test/karma.config.cjs",
1917
"env": {
2018
"mocha": true
2119
},

.flowconfig

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

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Node CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Use Node.js 14.x
11+
uses: actions/setup-node@v1
12+
with:
13+
node-version: 14.x
14+
- name: npm install, build, and test
15+
run: |
16+
npm it
17+
env:
18+
CI: true

.travis.yml

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

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @github/web-systems-reviewers

examples/polymer.html renamed to examples/index.html

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<!-- For Reflect.construct -->
6-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-shim.min.js"></script>
7-
<!-- For CustomEvent -->
8-
<script type="text/javascript" src="https://unpkg.com/@webcomponents/[email protected]/webcomponents-platform.js"></script>
9-
<!-- For Template -->
10-
<script type="text/javascript" src="https://unpkg.com/@webcomponents/[email protected]/template.js"></script>
11-
<!-- For HTML Imports and Custom Elements -->
12-
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.22/webcomponents-hi-ce.js"></script>
5+
<title>time elements</title>
136
</head>
147
<body>
158
<h2>Past Date</h2>
@@ -86,17 +79,18 @@ <h2>Future Date</h2>
8679

8780
<p>
8881
Time until:
89-
<time-until datetime="2017-01-01T00:00:00.000Z">
82+
<time-until datetime="2020-12-31T00:00:00-05:00">
9083
Oops! This browser doesn't support Web Components.
9184
</time-until>
9285
</p>
9386

9487
<p>
9588
Time until (micro format):
96-
<time-until format="micro" datetime="2017-01-01T00:00:00.000Z">
89+
<time-until format="micro" datetime="2020-12-31T00:00:00-05:00">
9790
Oops! This browser doesn't support Web Components.
9891
</time-until>
9992
</p>
100-
<script src="../dist/time-elements-legacy.js"></script>
93+
<!-- <script type="module" src="../dist/index.js"></script> -->
94+
<script type="module" src="https://unpkg.com/@github/time-elements@latest?module"></script>
10195
</body>
10296
</html>

index.d.ts

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

0 commit comments

Comments
 (0)