Skip to content

Commit d0b1a44

Browse files
authored
Upgrade Maven builds to Node.js v16 and npm v8 (#1353)
For Main UI & Basic UI, with appropriate changes for the latter. Leaving HABot to current versions for now until the build is fixed. Signed-off-by: Jan N. Klug <[email protected]>
1 parent 76c4dc9 commit d0b1a44

File tree

8 files changed

+6624
-242
lines changed

8 files changed

+6624
-242
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ bin/
1010
features/*/src/main/history
1111
npm-debug.log
1212
node_modules/
13+
.idea

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ You find the following repository structure:
5757

5858
In most cases, you **don't** need a Java development environment for UI development.
5959

60-
Instead, make sure you have NodeJS 12.16 or later and npm 6.14 or later installed.
60+
Instead, make sure you have NodeJS 16.14 (HABot: 12.16) or later and npm 8.6 (HABot: 6.14) or later installed.
61+
6162

6263
Then identify in the `bundles` directories where the frontend code is - for instance, for the main UI it is `bundles/org.openhab.ui/web/`.
6364
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.

bundles/org.openhab.ui.basic/gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
var
55
gulp = require("gulp"),
6-
sass = require("gulp-sass"),
6+
sass = require('gulp-sass')(require('node-sass')),
77
uglify = require("gulp-uglify"),
88
eslint = require("gulp-eslint");
99

0 commit comments

Comments
 (0)