Skip to content
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

[jsscripting] GraalJS now uses automation/js #11719

Merged
merged 2 commits into from
Dec 12, 2021

Conversation

jpg0
Copy link
Contributor

@jpg0 jpg0 commented Dec 6, 2021

This change modifies the 'new' GraalJS plugin to monitor <openHAB-conf>/automation/js for scripts, with libraries in <openHAB-conf>/automation/js/node_modules - as per NodeJS standard spec.

It also removes itself from monitoring the original automation/jsr233/javascript/* directories, and instead leaves this for Nashorn. This allows users to move scripts over to GraalJS from Nashorn one-by-one.

Note that this change breaks any ES6+ scripts which are in automation/jsr233/javascript/* directories. These will need to be moved to automation/js.

Note also that this PR depends on openhab/openhab-core#2593 which enables it to use it's own script directory.

Signed-off-by: Jonathan Gilbert [email protected]

@jpg0 jpg0 force-pushed the js-script-dir branch 2 times, most recently from bb733d1 to bb7bac7 Compare December 8, 2021 20:26
Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for https://github.com/openhab/openhab-core/runs/4497892590 to succeed. Then we can rerun the build for this PR.

@cweitkamp cweitkamp added enhancement An enhancement or new feature for an existing add-on rebuild Triggers Jenkins PR build and removed awaiting other PR Depends on another PR rebuild Triggers Jenkins PR build labels Dec 12, 2021
Signed-off-by: Jonathan Gilbert <[email protected]>
@jpg0
Copy link
Contributor Author

jpg0 commented Dec 12, 2021

I am not sure why this is failing; has it not yet caught up with the change in core?

@cweitkamp cweitkamp added rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Dec 12, 2021
@digitaldan
Copy link
Contributor

@jpg0 https://ci.openhab.org/job/openHAB-Core/880/ is building right now which i think will push updated core bundles to the repos.

@kaikreuzer kaikreuzer added rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Dec 12, 2021
…penhab/automation/jsscripting/internal/fs/watch/JSDependencyTracker.java
@kaikreuzer kaikreuzer merged commit 306c30e into openhab:main Dec 12, 2021
@kaikreuzer kaikreuzer added this to the 3.2 milestone Dec 12, 2021
@wborn wborn changed the title GraalJS now uses automation/js [jsscripting] GraalJS now uses automation/js Dec 18, 2021
NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this pull request Dec 30, 2021
* GraalJS now uses automation/js

Signed-off-by: Jonathan Gilbert <[email protected]>
Signed-off-by: Nick Waterton <[email protected]>
mischmidt83 pushed a commit to mischmidt83/openhab-addons that referenced this pull request Jan 9, 2022
* GraalJS now uses automation/js

Signed-off-by: Jonathan Gilbert <[email protected]>
Signed-off-by: Michael Schmidt <[email protected]>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Jan 28, 2022
* GraalJS now uses automation/js

Signed-off-by: Jonathan Gilbert <[email protected]>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
* GraalJS now uses automation/js

Signed-off-by: Jonathan Gilbert <[email protected]>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
* GraalJS now uses automation/js

Signed-off-by: Jonathan Gilbert <[email protected]>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
* GraalJS now uses automation/js

Signed-off-by: Jonathan Gilbert <[email protected]>
Signed-off-by: Andras Uhrin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants