-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
10 changed files
with
1,500 additions
and
131 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,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, | ||
}], | ||
} | ||
}; |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.tgz | ||
*~ | ||
SHA256SUMS | ||
node_modules |
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
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 |
---|---|---|
@@ -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}" |
Oops, something went wrong.