Compare commits

..

1 Commits

3 changed files with 32 additions and 13 deletions

View File

@@ -1,7 +1,5 @@
# HA-Matter-Bridge # HA-Matter-Bridge
[![paypal](https://camo.githubusercontent.com/0283ea90498d8ea623c07906a5e07e9e6c2a5eaa6911d52033687c60cfa8d22f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/donate/?business=VHWQSZR2SS898&no_recurring=0&item_name=HA+Matter+Bridge&currency_code=EUR) [![Publish Docker image](https://github.com/Jatus93/ha-matter-bridge/actions/workflows/docker-image.yml/badge.svg)](https://github.com/Jatus93/ha-matter-bridge/actions/workflows/docker-image.yml)
## Purpose ## Purpose
This project serves as a proof of concept to connect HomeAssistant devices to Voice Assistants through the Matter Protocol. This project serves as a proof of concept to connect HomeAssistant devices to Voice Assistants through the Matter Protocol.
@@ -34,6 +32,15 @@ This project serves as a proof of concept to connect HomeAssistant devices to Vo
2. Add integrations for other devices. 2. Add integrations for other devices.
3. Add some tests 3. Add some tests
4. Donation 4. Donation
<div class=donation>
<form action="https://www.paypal.com/donate" method="post" target="_top">
<input type="hidden" name="business" value="VHWQSZR2SS898" />
<input type="hidden" name="no_recurring" value="0" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_IT/i/scr/pixel.gif" width="1" height="1" />
</form>
</div>
## Known Issues and Limitations ## Known Issues and Limitations

View File

@@ -1,21 +1,33 @@
ARG BUILD_FROM=ghcr.io/hassio-addons/base:15.0.3 ARG BUILD_FROM=ghcr.io/hassio-addons/base:15.0.3
FROM node:18.19.0-alpine as node
FROM ${BUILD_FROM} as runenv
COPY --from=node /usr/lib /usr/lib FROM node:18.19.0-alpine as buildbase
COPY --from=node /usr/local/lib /usr/local/lib
COPY --from=node /usr/local/include /usr/local/include
COPY --from=node /usr/local/bin /usr/local/bin
COPY ./package.json ./ COPY ./package.json ./
COPY ./package-lock.json ./ COPY ./package-lock.json ./
COPY ./src ./src COPY ./src ./src
COPY ./tsconfig.json ./ COPY ./tsconfig.json ./
RUN npm install
RUN HUSKY=0 && npm install
RUN npm run build RUN npm run build
RUN rm -rf ./node_modules
RUN HUSKY=0 && npm install --production FROM node:18.19.0-alpine as deps
COPY ./package.json ./
COPY ./package-lock.json ./
COPY ./src ./src
COPY ./tsconfig.json ./
RUN npm install --production
FROM ${BUILD_FROM} as runenv
COPY --from=buildbase /usr/lib /usr/lib
COPY --from=buildbase /usr/local/lib /usr/local/lib
COPY --from=buildbase /usr/local/include /usr/local/include
COPY --from=buildbase /usr/local/bin /usr/local/bin
COPY --from=buildbase ./build ./build
COPY --from=deps ./node_modules ./node_modules
COPY --from=deps ./package.json ./package.json
COPY run.sh / COPY run.sh /
RUN chmod a+x /run.sh RUN chmod a+x /run.sh

View File

@@ -6,7 +6,7 @@
"start": "node ./build/index.js", "start": "node ./build/index.js",
"lint": "eslint .", "lint": "eslint .",
"lint-fix": "eslint --fix .", "lint-fix": "eslint --fix .",
"prepare": "if [ $HUSKY ]; then cd .. && husky install matter-bridge/.husky; fi", "prepare": "cd .. && husky install matter-bridge/.husky",
"commit": "./node_modules/.bin/git-cz" "commit": "./node_modules/.bin/git-cz"
}, },
"author": "", "author": "",