-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for monorepos and JS-Controller 5 #371
base: main
Are you sure you want to change the base?
Conversation
This has been tested extensively and seems to be working, with the caveat that the dev has to manually execute |
backupFile: string | undefined, | ||
useSymlinks: boolean, | ||
): Promise<void> { | ||
await this.buildLocalAdapter(); | ||
// await this.buildLocalAdapter(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: personally I am not a fan of out commented code, as we have git history to know how it looked like a while ago
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may have forgotten to clean this up 😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on a quick overview it lgtm
The open todos are still open? If you found out already, you may adapt them.
@dependabot rebase |
@Apollon77 I'm not Dependabot 🫣 |
lol :-) sorry |
With this PR and ioBroker/ioBroker.js-controller#2103, dev-server can now be used in the JS-Controller 5 monorepo. The install command must be changed slightly, because dev-server needs to know where the "entrypoint" is, and we should be using symlinks to avoid having to pack and install 8 packages on each change:
For executing the controller, it is recommended NOT to build and not to install (symlinks make the later unnecessary). Not sure if we should automatically do this:
TODO:
dev-server run
dev-server debug
dev-server watch