Mercurial > gemma
changeset 5168:a74390e92c3c
client: raise nodejs requirement to v12.16.1
* Raise nodejs requirement to v12.16.1, because v8 is unmaintained now.
And even if nodejs is just used for building the single page web application
it should be security maintained, e.g. for being able to get the right
modules when downloading.
* Add check of node version to packages.json in engines section.
This can be easily circumvented if someone really wants to try building
with a different version, e.g. v10, but most tests will be done with
v12 from now on, so it is better to have this check in there.
And v12.16.1. is the current stable version, so it should be the
minimum.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Tue, 07 Apr 2020 16:34:35 +0200 |
parents | a5fd84c4f2fe |
children | 4f0869b85038 |
files | client/README.md client/package.json |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/README.md Tue Apr 07 15:16:11 2020 +0200 +++ b/client/README.md Tue Apr 07 16:34:35 2020 +0200 @@ -1,7 +1,7 @@ * Install dependencies - * [Yarn](https://yarnpkg.com/) and a compatible nodejs version (>=8.10.0) - is needed. + * [Yarn](https://yarnpkg.com/) and a compatible nodejs version + is needed, see `engines` section in `packages.json`. * Install (`xgettext`) tool (e.g. for Debian xgettext (GNU gettext-tools) 0.19.8.1)
--- a/client/package.json Tue Apr 07 15:16:11 2020 +0200 +++ b/client/package.json Tue Apr 07 16:34:35 2020 +0200 @@ -7,6 +7,9 @@ "url": "https://hg.intevation.de/gemma" }, "private": true, + "engines": { + "node": "^12.16.1" + }, "scripts": { "serve": "make translations && VUE_APP_HGREV=$(hg log -r . --template \"{data|shortdate}-{node|short}\") vue-cli-service serve", "build": "make translations && VUE_APP_HGREV=$(hg log -r . --template \"{data|shortdate}-{node|short}\") vue-cli-service build",