Browse Source

Upgrade Node tooling to Node v16 and npm v8

Thibaud Colas 3 years ago
parent
commit
6bf0169e09
5 changed files with 607 additions and 315 deletions
  1. 2 4
      .circleci/config.yml
  2. 1 1
      .nvmrc
  3. 1 1
      .squash.yml
  4. 602 302
      package-lock.json
  5. 1 7
      package.json

+ 2 - 4
.circleci/config.yml

@@ -32,7 +32,7 @@ jobs:
 
   frontend:
     docker:
-      - image: circleci/node:14
+      - image: circleci/node:16
     steps:
       - checkout
       - restore_cache:
@@ -109,11 +109,9 @@ jobs:
 
   nightly-build:
     docker:
-      - image: cimg/python:3.8.11
+      - image: cimg/python:3.8.11-node
     steps:
       - checkout
-      - run: cd ~ && wget https://nodejs.org/dist/v14.17.5/node-v14.17.5-linux-x64.tar.gz
-      - run: cd /usr/local/ && sudo tar --strip-components 1 -xzf ~/node-v14.17.5-linux-x64.tar.gz
       - run: pip install --user wheel boto3
       - run: npm install
       - run: npm run build

+ 1 - 1
.nvmrc

@@ -1 +1 @@
-14
+16

+ 1 - 1
.squash.yml

@@ -3,7 +3,7 @@ deployments:
     dockerimage: python:3.7.4-stretch
     build_steps:
       - apt-get update && apt-get install -y libssl-dev libpq-dev git build-essential libfontconfig1 libfontconfig1-dev curl
-      - RUN bash -c "curl -sL https://deb.nodesource.com/setup_10.x | bash -"
+      - RUN bash -c "curl -sL https://deb.nodesource.com/setup_16.x | bash -"
       - apt install -y nodejs
       - pip install setuptools pip --upgrade --force-reinstall
       - cd /code

File diff suppressed because it is too large
+ 602 - 302
package-lock.json


+ 1 - 7
package.json

@@ -4,7 +4,7 @@
   "repository": "https://github.com/wagtail/wagtail",
   "private": true,
   "engines": {
-    "node": ">=14.0.0"
+    "node": ">=16.0.0"
   },
   "browserslist": [
     "Firefox ESR",
@@ -70,12 +70,6 @@
     "enzyme-adapter-react-16": "^1.15.6",
     "enzyme-to-json": "^3.6.2",
     "eslint": "^8.5.0",
-    "eslint-config-airbnb": "^19.0.2",
-    "eslint-config-prettier": "^8.3.0",
-    "eslint-plugin-import": "^2.25.3",
-    "eslint-plugin-jsx-a11y": "^6.5.1",
-    "eslint-plugin-react": "^7.28.0",
-    "eslint-plugin-react-hooks": "^4.3.0",
     "expose-loader": "^3.1.0",
     "jest": "^26.6.3",
     "mini-css-extract-plugin": "^2.4.5",

Some files were not shown because too many files changed in this diff