You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade webpack and related build dependencies from v4 to v5.
Also upgrade the NodeJS and npm versions used by the Main UI build as well as babel.
The changes follow the recommendations of the webpack migration guide at https://webpack.js.org/migrate/5/ or are required changes for updated webpack plugins.
New default values causing problems have been overwritten, e.g. devServer.compress: false because compression broke the SSE event streams.
The ModuleConcatenationPlugin is not created manually in production mode anymore, as this setting broke the production build, and it is not neccassary to create that, as this plugin is automatically enabled in production mode.
See https://webpack.js.org/plugins/module-concatenation-plugin/.
---------
Also-by: Florian Hotze <[email protected]>
Signed-off-by: Miguel Álvarez <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -56,11 +56,12 @@ You find the following repository structure:
56
56
57
57
In most cases, you **don't** need a Java development environment for UI development.
58
58
59
-
Instead, make sure you have NodeJS 16.14 (HABot: 12.16) or later and npm 8.6 (HABot: 6.14) or later installed.
59
+
Instead, you need NodeJS and npm installed, you'll learn about the required versions later.
60
60
61
-
62
-
Then identify in the `bundles` directories where the frontend code is - for instance, for the main UI it is `bundles/org.openhab.ui/web/`.
63
-
Then follow the instructions in the specific add-on's `CONTRIBUTING.md` file to get started. In the main UI's case, it is located in [bundles/org.openhab.ui/CONTRIBUTING.md](https://github.com/openhab/openhab-webui/blob/master/bundles/org.openhab.ui/CONTRIBUTING.md). In many cases it will involve executing some `npm` commands to install dependencies and start a development server.
61
+
Then identify in the `bundles` directories where the frontend code is - for instance, for the Main UI it is `bundles/org.openhab.ui/web/`.
62
+
Then follow the instructions in the specific add-on's `CONTRIBUTING.md` file to get started, e.g. install the correct versions of NodeJS and npm.
63
+
For Main UI, it is located in [bundles/org.openhab.ui/CONTRIBUTING.md](https://github.com/openhab/openhab-webui/blob/master/bundles/org.openhab.ui/CONTRIBUTING.md).
64
+
In many cases it will involve executing some `npm` commands to install dependencies and start a development server.
64
65
65
66
However, if you want to compile the final `.jar` add-ons, we have assembled some step-by-step guides for different IDEs on our developer documentation website:
Copy file name to clipboardExpand all lines: bundles/org.openhab.ui.basic/CONTRIBUTING.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
## Contributing
2
2
3
-
Javascript linting, compressing and LESS compilation is handled through Gulp. Therefore, please run `gulp` instead of changing compressed CSS/JS manually. Default Gulp task will also check the code using ESLint.
3
+
You need NodeJS 18.17.0 or later and npm 9.8.1 or later installed.
4
+
5
+
Javascript linting, compressing and LESS compilation is handled through Gulp.
6
+
Therefore, please run `gulp` instead of changing compressed CSS/JS manually.
7
+
Default Gulp task will also check the code using ESLint.
Copy file name to clipboardExpand all lines: bundles/org.openhab.ui/CONTRIBUTING.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,9 @@ The repository for web user interfaces, including this project, is located at <h
8
8
9
9
This project is built using [Vue.js](https://vuejs.org/), [webpack](https://webpack.js.org/) and [Framework7](https://framework7.io).
10
10
11
-
You need Node 16.14.0 or later and npm 8.6.0. Change to the `web` directory, gather the necessary dependencies with `npm install` then the scripts below will be available.
11
+
You need Node 18.18.0 or later and npm 9.8.1 or later installed.
12
+
13
+
Change to the `web` directory, gather the necessary dependencies with `npm install` then the scripts below will be available.
0 commit comments