Skip to content

Commit

Permalink
Add zha hue (#2)
Browse files Browse the repository at this point in the history
* Add support for Hue bulbs over Zigbee (using ZHA protocol)
* This also supports Cree Connected bulbs and IKEA bulbs
* Add support for running lint
* removed a few extraneous console.log's
* Updated package.sh to include dependencies
* Enhanced console log for pairing started
* Add node_modules to files list
and fixup package.sh to include the dependencies in SHA256SUMS
  • Loading branch information
dhylands authored Feb 6, 2018
1 parent 2f98572 commit f8a5d93
Show file tree
Hide file tree
Showing 10 changed files with 1,500 additions and 131 deletions.
30 changes: 30 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
plugins: [
'html'
],
'env': {
'commonjs': true,
'es6': true,
'node': true,
'browser': true,
'jest': true,
'mocha': true,
'jasmine': true,
},
'extends': 'eslint:recommended',
'parser': 'babel-eslint',
'parserOptions': {
'sourceType': 'module'
},
'rules': {
'no-console': 0,
'max-len': ['error', 80],
'no-unused-vars': ['error', {
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_'
}],
quotes: ['error', 'single', {
allowTemplateLiterals: true,
}],
}
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.tgz
*~
SHA256SUMS
node_modules
15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
{
"name": "zigbee-adapter",
"version": "0.3.0-pre2",
"version": "0.3.0",
"description": "Zigbee adapter plugin for Mozilla IoT Gateway",
"main": "index.js",
"scripts": {
"lint": "eslint ."
},
"keywords": [
"mozilla",
"iot",
"adapter",
"zigbee"
],
"homepage": "https://github.com/mozilla-iot/zigbee-adapter",
"dependencies": {
"color": "^3.0.0"
},
"devDependencies": {
"eslint": "^4.7.0",
"eslint-plugin-html": "^4.0.0"
},
"license": "MPL-2.0",
"repository": {
"type": "git",
Expand All @@ -27,7 +37,8 @@
"zb-classifier.js",
"zb-node.js",
"zb-property.js",
"zb-zdo.js"
"zb-zdo.js",
"node_modules"
],
"moziot": {
"api": {
Expand Down
12 changes: 10 additions & 2 deletions package.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash

rm -rf node_modules
yarn install --production
rm -f SHA256SUMS
sha256sum *.json *.js LICENSE > SHA256SUMS
npm pack
sha256sum package.json *.js LICENSE > SHA256SUMS
find node_modules/ -type f -exec sha256sum {} \; >> SHA256SUMS
TARFILE=$(npm pack)
tar xf ${TARFILE}
cp -r node_modules ./package
tar cf ${TARFILE} package
rm -rf package
echo "Created ${TARFILE}"
Loading

0 comments on commit f8a5d93

Please sign in to comment.