* [jsscripting] Fix bundling of global script & regression from #14135 Fixes the regression from https://github.com/openhab/openhab-addons/pull/14135#issuecomment-1369231126. While working on this, I also noticed that the cache openhab-js does not work because of wrong webpack commandline args in the pom (wrong entrypoint). * [jsscripting] Enable stack logging for IllegalArgumentExceptions * [jsscripting] Upgrade openhab-js to 3.2.4 * [jsscripting] Update README for recent PR Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</bnd.importpackage>
|
||||
<graal.version>22.0.0.2</graal.version> <!-- DO NOT UPGRADE: 22.0.0.2 is the latest version working on armv7l / OpenJDK 11.0.16 & armv7l / Zulu 17.0.5+8 -->
|
||||
<oh.version>${project.version}</oh.version>
|
||||
<ohjs.version>openhab@3.2.1</ohjs.version>
|
||||
<ohjs.version>openhab@3.2.4</ohjs.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
@@ -66,11 +66,23 @@
|
||||
<goal>npm</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<!--suppress UnresolvedMavenProperty -->
|
||||
<arguments>install ${ohjs.version} webpack@5.75.0 webpack-cli@4.10.0</arguments> <!-- webpack-cli >= 5.0.0 doesn't properly process the given entrypoint -->
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>npx webpack</id>
|
||||
<id>npx webpack (openhab-js globals injection)</id>
|
||||
<goals>
|
||||
<goal>npx</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<!--suppress UnresolvedMavenProperty -->
|
||||
<arguments>webpack -c ./node_modules/openhab/@globals-webpack.config.js --entry
|
||||
./node_modules/openhab/@openhab-globals.js -o ./dist</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>npx webpack (openhab-js)</id>
|
||||
<goals>
|
||||
<goal>npx</goal>
|
||||
</goals>
|
||||
|
||||
Reference in New Issue
Block a user