An open API service indexing awesome lists of open source software.

https://github.com/aabuhijleh/hid-headset-test


https://github.com/aabuhijleh/hid-headset-test

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# HID Headset Test

![](readme/usage.gif)

## Prerequisites

- Node.js v12 or higher should be installed on your machine
- [node-gyp](https://github.com/nodejs/node-gyp#installation)'s prerequisites need to be installed

## How to use?

```sh
# install dependencies
$ npm install

# compile typescript files
$ npm run compile

# watch typescript files for changes (auto compilation)
$ npm run watch

# run the app
$ npm start

# create distributable packages for specific platforms
$ npm run dist-linux
$ npm run dist-mac
$ npm run dist-windows
```

## Troubleshooting

If you get "Module did not register" or "Compiled against a different Node.js version" errors after starting the app, this means a native module dependency was not built correctly. Let electron-builder rebuild it for you by running a `npm run dist-${platform}` command.

## Directory Structure


.
├── electron-builder.json (electron-builder configuration)
├── .gitignore
├── LICENSE.md
├── package.json
├── package-lock.json
├── README.md
├── src (typescript files go here)
│ ├── main.ts
│ ├── preload.ts
│ └── renderer.ts
├── tsconfig.json (typescript compiler options)
├── tslint.json (tslint configuration)
└── views (html, css files go here)
└── index.html

## Resources

- [Electron docs](https://www.electronjs.org/docs)
- [electron-builder docs](https://www.electron.build)
- [Typescript docs](https://www.typescriptlang.org/docs)
- [Tslint docs](https://palantir.github.io/tslint/usage/configuration)