Skip to content

Commit

Permalink
Update to node 20. (#148)
Browse files Browse the repository at this point in the history
* Update to node 18

* Update dependencies and README.md

* Update Impressum.

* Add missing eslint dependency.

* Add missing eslint dependency.

* Update Github actions.

* Update Github actions.

* Update README.

* Add npmrc to force legac-peer-deps.

* Legacy peer deps activated in .npmrc, so it can be omitted here.

* Remove  --legacy-peer-deps as it's not part of .npmrc.

* Update 'Vorstand'.

* Switch to main branch.

* Update to node 20.

* Update github action.

---------

Co-authored-by: Christian Rijke <[email protected]>
  • Loading branch information
crijke and Christian Rijke committed Oct 31, 2023
1 parent 3414577 commit 87f9f58
Show file tree
Hide file tree
Showing 9 changed files with 12,478 additions and 31,575 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/site-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.1.5
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20.9.0'
- name: Install dependencies
working-directory: ./
run: npm ci
Expand Down Expand Up @@ -53,12 +53,12 @@ jobs:
needs: test
if: github.ref == 'refs/heads/preview'
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '20.9.0'
- name: Notify slack started
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
Expand Down Expand Up @@ -103,12 +103,12 @@ jobs:
needs: test
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '20.9.0'
- name: Notify slack started
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions .ncurc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
upgrade: true,
reject: ['carbon-components', 'carbon-components-react'],
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.9.0
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ernte-teilen.org

This repository contains the source code of the [ernte-teilen.org project website](https://ernte-teilen.org). For the mapping and data management tools used on [ernte-teilen.org/karte](https://ernte-teilen.org/karte) and [solawi.ch](https://www.solawi.ch/vernetzungsplattform/), see the [main *teikei* repository](http://github.com/teikei/teikei).
This repository contains the source code of the [ernte-teilen.org project website](https://ernte-teilen.org). For the mapping and data management tools used on [ernte-teilen.org/karte](https://ernte-teilen.org/karte) and [solawi.ch](https://www.solawi.ch/vernetzungsplattform/), see the [main _teikei_ repository](http://github.com/teikei/teikei).

## How to setup and run this project

Expand All @@ -11,20 +11,20 @@ This web application is built upon [React](https://reactjs.org/) and [Gatsby](ht
1. Install the [Node.js runtime](https://nodejs.org/en/)
2. Install the [Yarn package manager](https://yarnpkg.com/lang/en/docs/install/#mac-stable)

*Note:* This web application uses [sharp](http://sharp.pixelplumbing.com) for image optimization. This requires `libvips`, which should come pre-installed on most UNIX-like systems. If not, use your package manager of choice to install `libvips-dev` before installing the node dependencies in the next step.
_Note:_ This web application uses [sharp](http://sharp.pixelplumbing.com) for image optimization. This requires `libvips`, which should come pre-installed on most UNIX-like systems. If not, use your package manager of choice to install `libvips-dev` before installing the node dependencies in the next step.

### Install dependencies

`yarn install`
`npm install`

### Run in development

`yarn dev`
`npm run dev`

### Build for production

`yarn build`
`npm run build`

### Serve production build

`yarn serve`
`npm run serve`
Loading

0 comments on commit 87f9f58

Please sign in to comment.