Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit b0ac326

Browse files
committed
Convert to TypeScript and modernize build
1 parent 1f3336d commit b0ac326

14 files changed

+2858
-4411
lines changed

.babelrc

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

.eslintrc.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"extends": [
3+
"plugin:github/browser",
34
"plugin:github/es6",
4-
"plugin:github/browser"
5+
"plugin:github/typescript"
56
],
6-
"parser": "babel-eslint",
7+
"globals": {
8+
"DetailsDialogElement": "readable"
9+
},
710
"overrides": [
811
{
912
"files": "test/**/*.js",
10-
"env": {
11-
"mocha": true
12-
},
13-
"globals": {
14-
"assert": true
13+
"rules": {
14+
"github/unescaped-html-literal": "off"
1515
}
1616
}
1717
]
18-
}
18+
}

.flowconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.
File renamed without changes.

index.html renamed to example/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<!-- <script type="text/javascript" src="dist/index.umd.js"></script> -->
6-
<script type="text/javascript" src="https://unpkg.com/@github/details-dialog-element@latest"></script>
5+
<!-- <script type="module" src="../dist/index.js"></script> -->
6+
<script type="module" src="https://unpkg.com/@github/details-dialog-element@latest"></script>
77
<script type="text/javascript" src="https://unpkg.com/@github/include-fragment-element@latest"></script>
88
<title>details-dialog-element demo</title>
9-
<link href="./index.css" rel="stylesheet">
9+
<link href="../src/index.css" rel="stylesheet">
1010
<link href="https://unpkg.com/primer@latest/build/build.css" rel="stylesheet">
1111
<style>
1212
.details-with-dialog[open] > summary {

index.d.ts

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

index.js.flow

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

0 commit comments

Comments
 (0)