Added wscat tool to work with websockets

This commit is contained in:
cytopia
2022-12-26 03:12:03 +01:00
parent 06cb912d1e
commit c14d2d8881
19 changed files with 209 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ tools_enabled:
- webpack-cli
- wkhtmltopdf
- wp-cli
- wscat
- yamllint
- yq
- zsh
@@ -691,6 +692,18 @@ tools_available:
5.3:
type: custom
pre: WPCLI_URL="https://github.com/wp-cli/wp-cli/releases/download/v1.5.1/wp-cli-1.5.1.phar"
wscat:
disabled: []
check: wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false)
all:
type: npm
package: wscat
binary: wscat
version:
build_dep: []
run_dep: []
pre:
post:
yamllint:
disabled: []
check: yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false)

View File

@@ -4,6 +4,12 @@
## Unreleased
## Release 0.148
### Added
- Added `wscat` to work with websockets
## Release 0.147
### Fixed

View File

@@ -461,6 +461,13 @@ RUN set -eux \
&& webpack-cli --version | grep -E '[0-9][.0-9]+' || (webpack-cli --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -724,6 +731,11 @@ RUN set -eux \
&& webpack-cli --version | grep -E '[0-9][.0-9]+' || (webpack-cli --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -533,6 +533,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -817,6 +824,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -556,6 +556,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -855,6 +862,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -611,6 +611,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -942,6 +949,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -636,6 +636,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -980,6 +987,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -636,6 +636,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -980,6 +987,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -636,6 +636,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -980,6 +987,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -636,6 +636,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -980,6 +987,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -636,6 +636,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -980,6 +987,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -636,6 +636,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -980,6 +987,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -636,6 +636,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -980,6 +987,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -636,6 +636,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -980,6 +987,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -589,6 +589,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -906,6 +913,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \

View File

@@ -416,6 +416,7 @@ Additionally to all of the `slim` tools shown above, the following PHP cli tools
| [webpack-cli][lnk_webpack-cli] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| [wkhtmltopdf][lnk_wkhtmltopdf] | | | | | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| [wp-cli][lnk_wp-cli] | | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| [wscat][lnk_wscat] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| [yamllint][lnk_yamllint] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| [**yarn**][lnk_**yarn**] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| [yq][lnk_yq] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
@@ -467,6 +468,7 @@ Additionally to all of the `slim` tools shown above, the following PHP cli tools
[lnk_webpack-cli]: ../php_tools/webpack-cli
[lnk_wkhtmltopdf]: ../php_tools/wkhtmltopdf
[lnk_wp-cli]: ../php_tools/wp-cli
[lnk_wscat]: ../php_tools/wscat
[lnk_yamllint]: ../php_tools/yamllint
[lnk_**yarn**]: https://yarnpkg.com/cli/install
[lnk_yq]: ../php_tools/yq

View File

@@ -0,0 +1,8 @@
# wscat
WebSocket cat
| Platform | Url |
|----------|------------------------------------------------------------------|
| NPM | https://www.npmjs.com/package/wscat |
| GitHub | https://github.com/websockets/wscat |

View File

@@ -0,0 +1,13 @@
---
check: wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false)
all:
type: npm
package: wscat
binary: wscat
version:
build_dep: []
run_dep: []
pre:
post:

View File

@@ -0,0 +1,11 @@
---
# The name of the module
name: wscat
# Exclude module build/installation for the following PHP versions
exclude: []
# In order for this tool to build/install correctly,
# the following tools must have been installed first.
depends: []