Skip to content

Commit

Permalink
AMQP websocket support
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed Mar 8, 2021
1 parent 94fff50 commit 8dbbec6
Show file tree
Hide file tree
Showing 17 changed files with 10,141 additions and 4,107 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/static/js/lib/
14 changes: 9 additions & 5 deletions .eslintrc.js → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
module.exports = {
{
"env": {
"es2020": true,
"browser": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2020
},
"plugins": [
"html"
],
"settings": {
"html/indent": "+2"
},
"globals": {
"avalanchemq": true
},
"rules": {
"no-console": "off"
}
};
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Websocket support

## [1.0.0-alpha.26] - 2021-02-19

### Fixes
Expand Down
10 changes: 6 additions & 4 deletions build/npm_postinstall
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/bin/bash

set -e

[[ -d static/js/lib ]] && cp node_modules/chart.js/dist/Chart.bundle.min.js static/js/lib/chart.js
echo "Copying javascript libraries to static/js/lib/"
mkdir -p static/js/lib
cp node_modules/chart.js/dist/Chart.bundle.min.js static/js/lib/chart.js
cp node_modules/@cloudamqp/amqp-client/dist/amqp-websocket-client.mjs static/js/lib/

echo "Linting HTTP API documentation..."
echo "Linting HTTP API documentation"
spectral lint openapi/openapi.yaml

echo "Generating HTML for HTTP documentation... "
echo "Generating HTML for HTTP documentation"
redoc-cli bundle openapi/openapi.yaml
mkdir -p static/docs
mv redoc-static.html static/docs/index.html
Loading

0 comments on commit 8dbbec6

Please sign in to comment.