Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b6aa2e

Browse files
committed
Convert to typescript setup
1 parent 76c015e commit 2b6aa2e

17 files changed

+1796
-4534
lines changed

.babelrc

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

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.eslintrc.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
"extends": [
33
"plugin:github/browser",
44
"plugin:github/es6",
5-
"plugin:github/flow"
5+
"plugin:github/typescript"
66
],
7-
"parser": "babel-eslint",
7+
"globals": {
8+
"FilterInputElement": "readable"
9+
},
810
"overrides": [
911
{
1012
"files": "test/**/*.js",
1113
"rules": {
12-
"flowtype/require-valid-file-annotation": "off",
1314
"github/unescaped-html-literal": "off"
1415
}
1516
}

.flowconfig

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

.github/workflows/nodejs.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ jobs:
99

1010
runs-on: ubuntu-latest
1111

12-
strategy:
13-
matrix:
14-
node-version: [8.x, 10.x, 12.x]
15-
1612
steps:
1713
- uses: actions/checkout@v1
18-
- name: Use Node.js ${{ matrix.node-version }}
14+
- name: Use Node.js 12.x
1915
uses: actions/setup-node@v1
2016
with:
21-
node-version: ${{ matrix.node-version }}
17+
node-version: 12.x
2218
- name: npm install, build, and test
2319
run: |
2420
npm install

.travis.yml

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

examples/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>custom-element demo</title>
5+
<title>filter-input demo</title>
66
</head>
77
<body>
8-
<custom-element></custom-element>
9-
8+
<filter-input></filter-input>
9+
1010
<script>
1111
const script = document.createElement('script')
1212
if (window.location.hostname.endsWith('github.io')) {
13-
script.src = "https://unpkg.com/@github/custom-element-boilerplate@latest/dist/index.umd.js"
13+
script.src = "https://unpkg.com/@github/filter-input-boilerplate@latest/dist/index.umd.js"
1414
} else {
1515
script.src = "../dist/index.umd.js"
1616
}

index.d.ts

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

index.js

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

index.js.flow

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

0 commit comments

Comments
 (0)