Skip to content

Commit c85ee72

Browse files
authored
Merge pull request #17 from github/ts
TypeScript conversion
2 parents 04fa1f7 + 32b94f3 commit c85ee72

File tree

16 files changed

+1298
-4979
lines changed

16 files changed

+1298
-4979
lines changed

.babelrc

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

.eslintrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"extends": [
3-
"plugin:github/es6",
3+
"plugin:github/recommended",
44
"plugin:github/browser",
5-
"plugin:github/flow"
5+
"plugin:github/typescript"
66
],
7-
"parser": "babel-eslint"
7+
"overrides": [{"files": "**/*.js", "parser": "espree", "parserOptions": {"ecmaVersion": 8}}]
88
}

.flowconfig

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

.github/workflows/nodejs.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
name: Node CI
22

3-
on:
4-
pull_request:
5-
branches:
6-
- master
3+
on: [push]
74
jobs:
85
build:
9-
10-
runs-on: ubuntu-latest
6+
runs-on: ${{ matrix.os }}
117

128
strategy:
9+
fail-fast: false
1310
matrix:
14-
node-version: [10.x, 12.x]
11+
os: [ubuntu-latest, windows-latest, macos-latest]
1512

1613
steps:
17-
- uses: actions/checkout@v1
18-
- name: Use Node.js ${{ matrix.node-version }}
14+
- name: Set git to not change EoL
15+
run: |
16+
git config --global core.autocrlf false
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js 12.x
1919
uses: actions/setup-node@v1
2020
with:
21-
node-version: ${{ matrix.node-version }}
21+
node-version: 12.x
2222
- name: npm install, build, and test
2323
run: |
2424
npm install

.travis.yml

Lines changed: 0 additions & 9 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

check-all.js.flow

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

examples/index.html

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,10 @@
1313
<label><input type="checkbox" data-check-all-item> github/eventlistener-polyfill</label>
1414
<label><input type="checkbox" data-check-all-item> github/quote-selection</label>
1515
</div>
16-
<!-- GitHub Pages demo -->
17-
<script type="text/javascript" src="https://unpkg.com/@github/check-all@latest"></script>
18-
<script type="text/javascript">
19-
checkAll.default(document.querySelector('[data-check-all-container]'))
20-
</script>
21-
<!-- Uncomment to test in development -->
22-
<!--<script type="module">
23-
import checkAll from '../dist/check-all.js'
16+
<script type="module">
17+
// import checkAll from '../dist/index.js'
18+
import checkAll from 'https://unpkg.com/@github/check-all@latest?module'
2419
checkAll(document.querySelector('[data-check-all-container]'))
25-
</script>-->
20+
</script>
2621
</body>
2722
</html>

index.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function (config) {
22
config.set({
33
frameworks: ['mocha', 'chai'],
4-
files: ['../dist/check-all.umd.js', 'test.js'],
4+
files: [{pattern: 'dist/index.js', type: 'module'}, {pattern: 'test/test.js', type: 'module'}],
55
reporters: ['mocha'],
66
port: 9876,
77
colors: true,

0 commit comments

Comments
 (0)