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 <github@klug.nrw>
pull/1359/head
J-N-K 2022-04-19 20:02:57 +02:00 committed by GitHub
parent 76c4dc9795
commit d0b1a448e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 6621 additions and 239 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ bin/
features/*/src/main/history
npm-debug.log
node_modules/
.idea

View File

@ -57,7 +57,8 @@ You find the following repository structure:
In most cases, you **don't** need a Java development environment for UI development.
Instead, make sure you have NodeJS 12.16 or later and npm 6.14 or later installed.
Instead, make sure you have NodeJS 16.14 (HABot: 12.16) or later and npm 8.6 (HABot: 6.14) or later installed.
Then identify in the `bundles` directories where the frontend code is - for instance, for the main UI it is `bundles/org.openhab.ui/web/`.
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.

View File

@ -3,7 +3,7 @@
var
gulp = require("gulp"),
sass = require("gulp-sass"),
sass = require('gulp-sass')(require('node-sass')),
uglify = require("gulp-uglify"),
eslint = require("gulp-eslint");

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,8 @@
"dependencies": {
"gulp": "^4.0.2",
"gulp-eslint": "^6.0.0",
"gulp-sass": "^4.1.0",
"gulp-sass": "^5.0.0",
"node-sass": "^6.0.1",
"gulp-uglify": "^3.0.2",
"material-design-icons": "^3.0.1",
"roboto-fontface": "^0.10.0"

View File

@ -35,8 +35,8 @@
<version>1.9.0</version>
<configuration>
<nodeVersion>v12.16.1</nodeVersion>
<npmVersion>6.14.3</npmVersion>
<nodeVersion>v16.14.2</nodeVersion>
<npmVersion>8.6.0</npmVersion>
<environmentVariables>
<npm_config_cache>${project.basedir}/npm_cache</npm_config_cache>
<npm_config_tmp>${project.basedir}/npm_tmp</npm_config_tmp>

View File

@ -8,7 +8,7 @@ The repository for web user interfaces, including this project, is located at ht
This project is built using [Vue.js](https://vuejs.org/), [webpack](https://webpack.js.org/) and [Framework7](https://framework7.io).
You need Node 8.10.0 or later and npm 5.6.0. Change to the `web` directory, gather the necessary dependencies with `npm install` then the scripts below will be available.
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.
## NPM Scripts

View File

@ -38,8 +38,8 @@
<version>1.9.0</version>
<configuration>
<nodeVersion>v12.16.1</nodeVersion>
<npmVersion>6.14.3</npmVersion>
<nodeVersion>v16.14.2</nodeVersion>
<npmVersion>8.6.0</npmVersion>
<workingDirectory>web</workingDirectory>
</configuration>