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
parent
76c4dc9795
commit
d0b1a448e8
|
@ -10,3 +10,4 @@ bin/
|
||||||
features/*/src/main/history
|
features/*/src/main/history
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
node_modules/
|
node_modules/
|
||||||
|
.idea
|
||||||
|
|
|
@ -57,7 +57,8 @@ You find the following repository structure:
|
||||||
|
|
||||||
In most cases, you **don't** need a Java development environment for UI development.
|
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 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.
|
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.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
var
|
var
|
||||||
gulp = require("gulp"),
|
gulp = require("gulp"),
|
||||||
sass = require("gulp-sass"),
|
sass = require('gulp-sass')(require('node-sass')),
|
||||||
uglify = require("gulp-uglify"),
|
uglify = require("gulp-uglify"),
|
||||||
eslint = require("gulp-eslint");
|
eslint = require("gulp-eslint");
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -8,7 +8,8 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-eslint": "^6.0.0",
|
"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",
|
"gulp-uglify": "^3.0.2",
|
||||||
"material-design-icons": "^3.0.1",
|
"material-design-icons": "^3.0.1",
|
||||||
"roboto-fontface": "^0.10.0"
|
"roboto-fontface": "^0.10.0"
|
||||||
|
|
|
@ -35,8 +35,8 @@
|
||||||
<version>1.9.0</version>
|
<version>1.9.0</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<nodeVersion>v12.16.1</nodeVersion>
|
<nodeVersion>v16.14.2</nodeVersion>
|
||||||
<npmVersion>6.14.3</npmVersion>
|
<npmVersion>8.6.0</npmVersion>
|
||||||
<environmentVariables>
|
<environmentVariables>
|
||||||
<npm_config_cache>${project.basedir}/npm_cache</npm_config_cache>
|
<npm_config_cache>${project.basedir}/npm_cache</npm_config_cache>
|
||||||
<npm_config_tmp>${project.basedir}/npm_tmp</npm_config_tmp>
|
<npm_config_tmp>${project.basedir}/npm_tmp</npm_config_tmp>
|
||||||
|
|
|
@ -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).
|
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
|
## NPM Scripts
|
||||||
|
|
||||||
|
|
|
@ -38,8 +38,8 @@
|
||||||
<version>1.9.0</version>
|
<version>1.9.0</version>
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<nodeVersion>v12.16.1</nodeVersion>
|
<nodeVersion>v16.14.2</nodeVersion>
|
||||||
<npmVersion>6.14.3</npmVersion>
|
<npmVersion>8.6.0</npmVersion>
|
||||||
<workingDirectory>web</workingDirectory>
|
<workingDirectory>web</workingDirectory>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue