This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
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
0 parents
commit 3ee9e0e
Showing
38 changed files
with
11,674 additions
and
0 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,3 @@ | ||
build/ | ||
**/*.html | ||
src/nodes/icons |
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,21 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"semi": ["error", "never"], | ||
"no-console": ["off"], | ||
"arrow-parens": ["warn", "as-needed"], | ||
"no-lone-blocks": ["off"], | ||
"endOfLine": "auto", | ||
// 'array-element-newline': ['warn', { minItems: 4 }], | ||
// '@typescript-eslint/indent': ['error', 2], | ||
"@typescript-eslint/ban-ts-comment": ["warn"] | ||
} | ||
} |
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,34 @@ | ||
name: Lint, Build, Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x, 16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: install | ||
run: npm ci | ||
- name: lint | ||
run: npm run lint | ||
- name: build | ||
run: npm run build --if-present | ||
- name: test | ||
run: npm run test:cov | ||
env: | ||
CI: 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules/ | ||
build/ | ||
coverage/ | ||
.nyc_output/ | ||
.idea/ | ||
.log |
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,10 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
require: ['ts-node/register', 'source-map-support/register'], | ||
diff: true, | ||
ui: 'bdd', | ||
spec: 'build/test/**/*.spec.js', | ||
// 'watch-files': ['lib/**/*.js', 'test/**/*.js'], | ||
// 'watch-ignore': ['lib/vendor'] | ||
} |
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,2 @@ | ||
build/src/**/*.d.ts | ||
build/src/**/*.js.map |
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,13 @@ | ||
{ | ||
"extends": "@istanbuljs/nyc-config-typescript", | ||
"temp-directory": "./coverage/.nyc_output", | ||
"all": true, | ||
"extension": [".ts", ".tsx", ".html"], | ||
"reporter": ["lcov", "text"], | ||
"cache": true, | ||
"check-coverage": true, | ||
"statements": 82, | ||
"branches": 64, | ||
"functions": 77, | ||
"lines": 82 | ||
} |
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,2 @@ | ||
build/ | ||
*.html |
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,9 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"semi": false, | ||
"arrowParens": "avoid", | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"endOfLine":"auto" | ||
} |
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,6 @@ | ||
{ | ||
"search.exclude": { | ||
"**/build": true | ||
}, | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
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,45 @@ | ||
|
||
|
||
# source | ||
This repo fork from @meowwolf/node-red-contrib-amqp | ||
|
||
and | ||
|
||
+ upgrade amqplib so you can use it with node10+ | ||
+ fixed direct routing publish issues; | ||
|
||
AMQP nodes for node-red | ||
|
||
## Installation | ||
|
||
Install via the Palette Manager or from within your node-red directory (typically `~/.node-red`) run: | ||
|
||
``` | ||
npm i @stormpass/node-red-contrib-amqp | ||
``` | ||
|
||
## Usage | ||
|
||
Provides three standard nodes and an amqp broker config node. | ||
Please see the `Node Help` section from within node-red for more info | ||
|
||
## Development | ||
|
||
### Build the project | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
### Run tests | ||
|
||
``` | ||
npm test | ||
``` | ||
|
||
Run coverage: | ||
|
||
``` | ||
npm run test:cov | ||
``` | ||
|
Oops, something went wrong.