Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial Commit * Add Linting * Minor tidy * Fixup polling * Fixup webusb * Complete webusb tests * Organise source files * Move polling to just InEndpoint * Tidy source * Fixups * Remove 'this' aliasing * Add npmignore * Script updates * v2.0.0-alpha.1 * Add gitattributes to stop autocrlf * New interface * Fixup tests for new API * Updates * Fix binary loading path * Formatting * Update yarn.lock * Port hotplug ref/unref to v2.0.0 * Port windows hotplug poll to v2.0.0 * Add findBySerialNumber test * Update docs * Tweak docs * Add device timeout option * Implement events
- Loading branch information
Showing
30 changed files
with
7,111 additions
and
5,339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
build | ||
dist | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
// https://eslint.org/docs/rules/ | ||
"eslint:recommended", | ||
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-empty-interface": [ | ||
"warn" | ||
], | ||
"@typescript-eslint/no-this-alias": [ | ||
"warn" | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"argsIgnorePattern": "^_" | ||
} | ||
], | ||
"block-spacing": [ | ||
"error", | ||
"always" | ||
], | ||
"brace-style": [ | ||
"error", | ||
"1tbs", | ||
{ | ||
"allowSingleLine": true | ||
} | ||
], | ||
"eol-last": [ | ||
"error" | ||
], | ||
"indent": [ | ||
"error", | ||
4, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"no-console": [ | ||
"warn" | ||
], | ||
"no-constant-condition": [ | ||
"error", | ||
{ | ||
"checkLoops": false | ||
} | ||
], | ||
"no-trailing-spaces": [ | ||
"error" | ||
], | ||
"object-curly-spacing": [ | ||
"error", | ||
"always" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
] | ||
}, | ||
"env": { | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module", | ||
"project": [ | ||
"./tsconfig.json" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- run: yarn install --ignore-scripts | ||
- run: yarn compile | ||
- run: yarn docs | ||
- name: Deploy to gh-pages | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
git config --global user.name thegecko | ||
git config --global user.email github@thegecko.org | ||
TMPDIR=`mktemp -d` | ||
cp -R docs/* $TMPDIR | ||
git checkout gh-pages | ||
git pull | ||
git clean -fd | ||
cp -R $TMPDIR/* ./ | ||
git add . | ||
git commit --allow-empty --message "Automatic Deployment" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
build/* | ||
prebuilds/ | ||
.DS_Store | ||
node_modules | ||
build | ||
*~ | ||
*.log | ||
docs | ||
test/*.js | ||
dist | ||
prebuilds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
build/* | ||
.DS_Store | ||
node_modules | ||
build | ||
*~ | ||
*.log | ||
docs | ||
test/*.js | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Full Test", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"preLaunchTask": "test", | ||
"command": "exit 0", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"tasks": [ | ||
{ | ||
"label": "compile", | ||
"type": "npm", | ||
"script": "compile" | ||
}, | ||
{ | ||
"label": "watch", | ||
"type": "npm", | ||
"script": "watch", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "test", | ||
"type": "npm", | ||
"script": "full-test" | ||
} | ||
] | ||
} |
Oops, something went wrong.