Skip to content

TypeScript conversion #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"globals": {
"TaskListsElement": "readable"
},
"extends": [
"plugin:github/es6",
"plugin:github/recommended",
"plugin:github/browser",
"plugin:github/flow"
"plugin:github/typescript"
]
}
}
9 changes: 0 additions & 9 deletions .flowconfig

This file was deleted.

20 changes: 10 additions & 10 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Node CI

on:
pull_request:
branches:
- master
on: push
jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version: [8.x, 10.x, 12.x]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
- name: Set git to not change EoL
run: |
git config --global core.autocrlf false
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version: 12.x
- name: npm install, build, and test
run: |
npm install
Expand Down
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,22 @@ $ npm install --save @github/task-lists-element

## Usage

### Script

Import as ES modules:

```js
import '@github/task-lists-element'
```

With a script tag:

```html
<script type="module" src="./node_modules/@github/task-lists-element/dist/index.js">
```

### Markup

```html
<task-lists sortable>
<ul class="contains-task-list">
Expand Down
4 changes: 2 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<html lang="en">
<head>
<meta charset="utf-8">
<!-- <script type="text/javascript" src="../dist/index.umd.js"></script> -->
<script type="text/javascript" src="https://unpkg.com/@github/task-lists-element@latest"></script>
<!-- <script type="module" src="../dist/index.js"></script> -->
<script type="module" src="https://unpkg.com/@github/task-lists-element@latest"></script>
<title>task-lists-element demo</title>
</head>
<body>
Expand Down
13 changes: 0 additions & 13 deletions index.d.ts

This file was deleted.

Loading