Skip to content

Commit

Permalink
feat: allow npx to test credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
apexad committed Nov 25, 2020
1 parent cefe561 commit 9a561bf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# homebridge-mysmartrollershades-bridge

This plugin is a work in progress and not ready to use

## Testing
Use `npx homebridge-mysmartrollershades-bridge` to test your credentials.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
"url": "https://github.com/apexad/homebridge-mysmartrollershades-bridge/issues"
},
"main": "dist/index.js",
"bin": {
"homebridge-mysmartrollershades-bridge": "./test.js"
},
"funding": [
{
"type": "paypal",
Expand Down
2 changes: 1 addition & 1 deletion src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import prompt from 'prompt';
import {
MYSMARTBLINDS_DOMAIN,
TILTSMARTHOME_OPTIONS,
TILTSMARTHOME_URL
TILTSMARTHOME_URL,
} from './settings';

import {
Expand Down
2 changes: 2 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require("./dist/test.js");

0 comments on commit 9a561bf

Please sign in to comment.