Skip to content

Commit 48535c6

Browse files
authored
Merge pull request #29 from github/ts
TypeScript conversion
2 parents e40c1e8 + 67491f1 commit 48535c6

File tree

19 files changed

+2497
-4545
lines changed

19 files changed

+2497
-4545
lines changed

.babelrc

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

.eslintrc.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,9 @@
22
"extends": [
33
"plugin:github/es6",
44
"plugin:github/browser",
5-
"plugin:github/flow"
5+
"plugin:github/typescript"
66
],
7-
"overrides": [
8-
{
9-
"files": "test/**/*.js",
10-
"rules": {
11-
"flowtype/require-valid-file-annotation": "off"
12-
},
13-
"env": {
14-
"mocha": true
15-
},
16-
"globals": {
17-
"assert": true
18-
}
19-
}
20-
]
7+
"globals": {
8+
"ImageCropElement": "readable"
9+
}
2110
}

.flowconfig

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

.github/workflows/nodejs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Node CI
2+
3+
on: [push, pull_request]
4+
jobs:
5+
build:
6+
runs-on: ${{ matrix.os }}
7+
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-latest, windows-latest, macos-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js 12.x
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 12.x
19+
- name: npm install, build, and test
20+
run: |
21+
npm install
22+
npm run build --if-present
23+
npm test
24+
env:
25+
CI: true

.nojekyll

Whitespace-only changes.

.travis.yml

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

examples/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
}
1414
</style>
1515
<meta charset="utf-8">
16-
<link href="../index.css" rel="stylesheet">
17-
<!-- <script type="module" src="../dist/index.esm.js"></script> -->
18-
<script type="module" src="https://unpkg.com/@github/image-crop-element@latest/dist/index.esm.js"></script>
16+
<link href="../src/index.css" rel="stylesheet">
17+
<!-- <script type="module" src="../dist/index.js"></script> -->
18+
<script type="module" src="https://unpkg.com/@github/image-crop-element@latest/dist/index.js"></script>
1919
<title>image-crop-element demo</title>
2020
</head>
2121
<body>
22-
<image-crop src="../ams.jpg" class="wrapper" tabindex="0">
22+
<image-crop src="./ams.jpg" class="wrapper" tabindex="0">
2323
<div data-loading-slot class="loading">loading</div>
2424
<input type="text" data-image-crop-input="x" name="x" size="4" aria-label="x">
2525
<input type="text" data-image-crop-input="y" name="y" size="4" aria-label="y">

index.d.ts

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

index.js.flow

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

0 commit comments

Comments
 (0)