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

Skip to content

TypeScript conversion #30

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 10 commits into from
May 22, 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
12 changes: 8 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@
"extends": [
"plugin:github/es6",
"plugin:github/browser",
"plugin:github/flow"
"plugin:github/typescript"
],
"globals": {
"ClipboardCopyElement": "readable"
},
"overrides": [
{
"files": "test/**/*.js",
"rules": {
"flowtype/require-valid-file-annotation": "off"
},
"env": {
"mocha": true
},
"globals": {
"assert": true
}
},
{
"files": "*.js",
"parser": "espree"
}
]
}
9 changes: 0 additions & 9 deletions .flowconfig

This file was deleted.

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

on: push
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test
env:
CI: true
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @github/web-systems-reviewers
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/clipboard-copy-element

## Usage

### Script

Import as ES modules:

```js
import '@github/clipboard-copy-element'
```

With a script tag:

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

### Markup

```html
<clipboard-copy for="blob-path" class="btn btn-sm BtnGroup-item">
Copy path
Expand Down
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Clipboard copy examples</title>
<script src="https://unpkg.com/@github/clipboard-copy-element@latest" defer></script>
<!-- <script src="../dist/index.umd.js" defer></script> -->
<!-- <script src="../dist/index.js" defer></script> -->
<style>
clipboard-copy {
-webkit-appearance: button;
Expand Down
12 changes: 0 additions & 12 deletions index.d.ts

This file was deleted.

Loading