-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,876 additions
and
1,530 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,32 @@ | ||
name: MQTT.js CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm run build --if-present | ||
- run: npm test | ||
env: | ||
CI: true | ||
DEBUG: "mqttjs*" |
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
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,24 @@ | ||
#!/usr/bin/env node | ||
'use strict' | ||
|
||
/* | ||
* Copyright (c) 2015-2015 MQTT.js contributors. | ||
* Copyright (c) 2011-2014 Adam Rudd. | ||
* | ||
* See LICENSE for more information | ||
*/ | ||
|
||
var commist = require('commist')() | ||
var helpMe = require('help-me')() | ||
|
||
commist.register('publish', require('./bin/pub')) | ||
commist.register('subscribe', require('./bin/sub')) | ||
commist.register('version', function () { | ||
console.log('MQTT.js version:', require('./package.json').version) | ||
}) | ||
commist.register('help', helpMe.toStdout) | ||
|
||
if (commist.parse(process.argv.slice(2)) !== null) { | ||
console.log('No such command:', process.argv[2], '\n') | ||
helpMe.toStdout() | ||
} |
Oops, something went wrong.