Skip to content

Commit

Permalink
add require-self and take advantage of it in play/
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Jul 13, 2017
1 parent 06f0b76 commit 0ea3ddd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion package.json
Expand Up @@ -24,6 +24,10 @@
"devDependencies": {
"body-parser": "^1.17.2",
"express": "^4.15.3",
"tinygradient": "^0.3.1"
"tinygradient": "^0.3.1",
"require-self": "^0.2.1"
},
"scripts": {
"prepare": "require-self"
}
}
2 changes: 1 addition & 1 deletion play/cli.js
@@ -1,5 +1,5 @@
const {createInterface} = require('readline')
const {discover, pair, setColor} = require('..')
const {discover, pair, setColor} = require('kasa')

const blubs = []
const paired = []
Expand Down
2 changes: 1 addition & 1 deletion play/go.js
@@ -1,4 +1,4 @@
const Blub = require('..')
const Blub = require('kasa')
const blubs = []
const paired = []

Expand Down
2 changes: 1 addition & 1 deletion play/promise/blue.js
@@ -1,4 +1,4 @@
const {discover, setColor, pair, stop = process.exit} = require('../..')
const {discover, setColor, pair, stop = process.exit} = require('kasa')

const setColorWithDispatch = (...color) => dispatch => dispatch(setColor(...color, 0xff))

Expand Down
2 changes: 1 addition & 1 deletion play/promise/pink.js
@@ -1,4 +1,4 @@
const {discover, setColor, pair, stop = process.exit} = require('../..')
const {discover, setColor, pair, stop = process.exit} = require('kasa')

const setColorWithDispatch = (...color) => dispatch => dispatch(setColor(...color, 0xff))

Expand Down
2 changes: 1 addition & 1 deletion play/socket.js
@@ -1,6 +1,6 @@
const fs = require('fs')
const net = require('net')
const Blub = require('..')
const Blub = require('kasa')
const blubs = []
const paired = []

Expand Down

0 comments on commit 0ea3ddd

Please sign in to comment.