Require the config as CLI arg for watch, build and production-build
The mqtt control map now loads the config provided via cli. It is no longer required to modify the src/config.js to load a different config.
This commit is contained in:
parent
3975518f6e
commit
c7ca716802
8 changed files with 34 additions and 22 deletions
15
README.md
15
README.md
|
|
@ -1,16 +1,17 @@
|
|||
# Space Map
|
||||
# MQTT Control Map
|
||||
|
||||
## How to set up
|
||||
## Development / Configuration
|
||||
|
||||
1. run `yarn` to install all dependencies.
|
||||
2. run `yarn build` to compile everything
|
||||
3. open the `index.html`
|
||||
4. ???
|
||||
5. profit
|
||||
2. run `yarn watch CONFIG` to run a local build server that automatically builds
|
||||
your the mqtt control map for the given CONFIG everytime something changes.
|
||||
3. run `yarn build CONFIG` to create just a single build of the mqtt control map
|
||||
for the given config.
|
||||
4. run `yarn production-build CONFIG` to generate all files for production use.
|
||||
|
||||
## Config
|
||||
|
||||
See `src/config.js`.
|
||||
See `config/`.
|
||||
|
||||
The Config format consists out of two sections. Topics and Controls.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue