mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a script to automatically prepare UI components before running the build watch process in the web app. - **Bug Fixes** - Improved build and release processes to ensure directories are properly cleaned and created, preventing potential errors during Docker operations. - **Chores** - Updated build watch scripts for faster development feedback and more efficient parallel execution. - Refined Docker Compose configuration to use the correct release directory for plugin builds. - Introduced a new script to streamline and centralize file watching and build triggering in the plugin system. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
23 lines
984 B
YAML
23 lines
984 B
YAML
services:
|
|
plugin-builder:
|
|
ports:
|
|
- 5858:5858
|
|
build: .
|
|
volumes:
|
|
- ./:/app
|
|
- /app/node_modules
|
|
- ../.git:/app/.git
|
|
- ../.nvmrc:/app/.nvmrc
|
|
- ./source:/app/source
|
|
- ./scripts:/app/scripts
|
|
- ../unraid-ui/dist-wc:/app/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/uui
|
|
- ../web/.nuxt/nuxt-custom-elements/dist/unraid-components:/app/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/nuxt
|
|
- ../api/deploy/release/:/app/source/dynamix.unraid.net/usr/local/unraid-api # Use the release dir instead of pack to allow watcher to not try to build with node_modules
|
|
- ../api/deploy/node-modules-archive:/app/node-modules-archive
|
|
stdin_open: true # equivalent to -i
|
|
tty: true # equivalent to -t
|
|
environment:
|
|
- HOST_LAN_IP=${HOST_LAN_IP}
|
|
- CI=${CI:-false}
|
|
- TAG=${TAG}
|
|
- API_VERSION=${API_VERSION} |