Skip to content

Commit

Permalink
project
Browse files Browse the repository at this point in the history
  • Loading branch information
Stormpass committed Jun 16, 2023
0 parents commit 3ee9e0e
Show file tree
Hide file tree
Showing 38 changed files with 11,674 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/
**/*.html
src/nodes/icons
21 changes: 21 additions & 0 deletions .eslintrc
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"]
}
}
34 changes: 34 additions & 0 deletions .github/workflows/nodejs.yml
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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/
build/
coverage/
.nyc_output/
.idea/
.log
10 changes: 10 additions & 0 deletions .mocharc.js
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']
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/src/**/*.d.ts
build/src/**/*.js.map
13 changes: 13 additions & 0 deletions .nycrc.json
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
}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
*.html
9 changes: 9 additions & 0 deletions .prettierrc
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"
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"search.exclude": {
"**/build": true
},
"typescript.tsdk": "node_modules/typescript/lib"
}
45 changes: 45 additions & 0 deletions README.md
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
```

Loading

0 comments on commit 3ee9e0e

Please sign in to comment.