-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5a312c
commit 75b75e9
Showing
2 changed files
with
60 additions
and
20 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,57 @@ | ||
# Contributing | ||
|
||
## Getting Started | ||
|
||
This project requires Node.js. Get started with: | ||
|
||
```sh | ||
npm i | ||
``` | ||
|
||
## Building | ||
|
||
To build the project (the build will be in `build/me.reinii.harvest-billables.sdPlugin`): | ||
|
||
```sh | ||
npm run build | ||
``` | ||
|
||
To copy the build to the plugin directory: | ||
|
||
```sh | ||
npm run copy | ||
``` | ||
|
||
Or, to run both: | ||
|
||
```sh | ||
npm run build-copy | ||
``` | ||
|
||
## DevTools | ||
|
||
You can debug error messages by enabling DevTools. | ||
|
||
On macOS, you will first need to run the following command line in the Terminal: | ||
|
||
```sh | ||
defaults write com.elgato.StreamDeck html_remote_debugging_enabled -bool YESCopy | ||
``` | ||
|
||
On Windows, you will need to add a `DWORD` `html_remote_debugging_enabled` with value `1` in the | ||
registry at `HKEY_CURRENT_USER\Software\Elgato Systems GmbH\StreamDeckCopy`. | ||
|
||
After you relaunch the Stream Deck app, you can open http://localhost:23654/ in Chrome, where you | ||
will find a list of ‘Inspectable pages‘ (plugins). Click `me.reinii.harvest-billables`. | ||
Error message details may be available in the console. | ||
|
||
## Tests | ||
|
||
This project uses jest. You can run tests with: | ||
|
||
```sh | ||
npm run test | ||
``` | ||
|
||
Before running, copy `.env-sample` to `.env` and fill with your keys. This file takes the place | ||
of Stream Deck settings for the purposes of testing. |
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