Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 1.36 KB

File metadata and controls

74 lines (51 loc) · 1.36 KB

Contributing

Setup

Installing npm dependencies

npm i

Using mock data

Data from the mocks folder is used to create a fake Zigbee2MQTT server connection.

npm start
open http://localhost:5173/

Using your Zigbee2MQTT instance

Use the Z2M_API_URI environment variable with the appropriate IP & port. Example:

Z2M_API_URI="ws://192.168.1.200:8080" npm start
open http://localhost:5173/

Format & lint

All contributions are expected to match the repository's formatting and linting rules (using biomejs).

npm run check

Test

All contributions are expected to pass the current tests, and implement coverage for new features as appropriate.

npm run test:cov

Build

All contributions are expected to build successfully.

npm run build

Translating

Locales directory

You can edit the JSON files directly from Github, using the EN file as reference. The EN file contains all the keys to support for full coverage in a given language. If starting from a blank JSON, copy the content of the EN file in it and then translate the values.

For example:

en.json

{
    "common": {
        "action": "Action",
        [...]

es.json

{
    "common": {
        "action": "Acción",
        [...]