Skip to content

Commit

Permalink
chore: change to a monorepo structure with Lerna
Browse files Browse the repository at this point in the history
- move from istanbul to nyc
- global docs
- global linting
- global tests
  • Loading branch information
reconbot committed Jul 24, 2018
1 parent 31514fe commit 6769fd4
Show file tree
Hide file tree
Showing 104 changed files with 696 additions and 1,056 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages/*/node_modules
docs
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
"makeTestFeature": false
},
"rules": {
"no-process-exit": 0,
"no-unused-vars": [2, { "vars": "all", "args": "after-used" }],
"no-var": 2,
"no-process-exit": 0,
"node/no-extraneous-require": 0,
"node/no-unsupported-features": [2, {"version" : 4}],
"node/shebang": 0,
"object-curly-spacing": [2, "always"],
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ node_modules
npm-debug.log
package-lock.json
prebuilds/
.nyc_output
lerna-debug.log
2 changes: 0 additions & 2 deletions .istanbul.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"dictionaries": ["jsdoc"]
},
"source": {
"include": ["lib", "README.md"],
"includePattern": ".+\\.(js|jsx)?$"
"include": ["packages", "README.md"],
"excludePattern": "node_modules",
"includePattern": ".+\\.(js)?$"
},
"plugins": [
"plugins/markdown"
Expand Down
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,11 @@ before_install:
- echo "Publishing native platform Binary Package? ->" $PUBLISH_BINARY

install:
# ensure source install works
- npm install --build-from-source
- npm install
- npm run build-from-source

script:
- npm run lint
- node ./
- npm test

# if publishing, do it
Expand Down
485 changes: 11 additions & 474 deletions README.md

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,11 @@ install:
# - ps: $env:TEST_PORT = "COM1";

build_script:
- npm install --build-from-source
- npm install

test_script:
- ps: >
npm run lint
node ./
npm run lint;
# If we run npm test in powershell it'll have the wrong encoding so we have to do it like this
- npm test
Expand Down
2 changes: 1 addition & 1 deletion docs/BaseBinding.html
Original file line number Diff line number Diff line change
Expand Up @@ -2367,7 +2367,7 @@ <h5>Returns:</h5>
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/DarwinBinding.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h4 class="name" id="DarwinBinding"><span class="type-signature"></span>new Darw
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/LinuxBinding.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h4 class="name" id="LinuxBinding"><span class="type-signature"></span>new Linux
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/MockBinding.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h4 class="name" id="MockBinding"><span class="type-signature"></span>new MockBi
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/Poller.html
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ <h5>Returns:</h5>
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/SerialPort.html
Original file line number Diff line number Diff line change
Expand Up @@ -2961,7 +2961,7 @@ <h5>Returns:</h5>
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/WindowsBinding.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h4 class="name" id="WindowsBinding"><span class="type-signature"></span>new Win
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/bindings_base.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ <h1 class="page-title">bindings/base.js</h1>
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/bindings_darwin.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h1 class="page-title">bindings/darwin.js</h1>
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/bindings_linux.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h1 class="page-title">bindings/linux.js</h1>
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/bindings_mock.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ <h1 class="page-title">bindings/mock.js</h1>
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/bindings_poller.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ <h1 class="page-title">bindings/poller.js</h1>
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/bindings_win32.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ <h1 class="page-title">bindings/win32.js</h1>
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -2100,7 +2100,7 @@ <h4 class="name" id="event:open">open</h4>
<br class="clear">

<footer>
Documentation generated at Sat Jul 21 2018 00:54:26 GMT-0400 (EDT)
Documentation generated at Mon Jul 23 2018 23:48:35 GMT-0400 (EDT)
</footer>

<script>prettyPrint();</script>
Expand Down
Loading

0 comments on commit 6769fd4

Please sign in to comment.