Skip to content

Commit 2308d41

Browse files
committed
Merge branch 'main' into check_to_workflows_PLATTA-6231
2 parents 4a0dfa6 + 9db49fd commit 2308d41

760 files changed

Lines changed: 17187 additions & 19240 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tsconfig.tsbuildinfo
2323
!.yarn/releases
2424

2525
# Used when building with nextjs (next-eslint)
26-
!.eslintrc.base.json
26+
!eslint.config.base.json
2727
!.prettierignore
2828
!.prettierrc.js
2929
!.eslintignore

.github/workflows/ci-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
strategy:
3838
matrix:
39-
node-version: [16.x]
39+
node-version: [20.x]
4040
steps:
4141
- uses: actions/checkout@v4
4242
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ yarn-error.log*
6767
# Deployment platforms
6868

6969
.vercel
70+
proxies/events-graphql-federation/router

.husky/commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
yarn commitlint --edit $1

.husky/pre-commit

100755100644
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
yarn g:lint-staged-files

.prettierrc.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ ENV PATH $PATH:/app/node_modules/.bin
200200
ENV NODE_ENV production
201201

202202
# Copy the configuration files to the apps/project root
203-
COPY --from=builder --chown=default:root /app/apps/${PROJECT}/next.config.js \
204-
/app/apps/${PROJECT}/i18nRoutes.config.js \
205-
/app/apps/${PROJECT}/next-i18next.config.js \
203+
COPY --from=builder --chown=default:root /app/apps/${PROJECT}/next.config.mjs \
204+
/app/apps/${PROJECT}/i18nRoutes.config.mjs \
205+
/app/apps/${PROJECT}/next-i18next.config.mjs \
206206
/app/apps/${PROJECT}/package.json \
207207
./apps/${PROJECT}/
208208

@@ -216,7 +216,7 @@ COPY --from=builder --chown=default:root /app/packages/common-i18n/src/locales \
216216
COPY --from=builder --chown=default:root /app/apps/${PROJECT}/.next/standalone .
217217
COPY --from=builder --chown=default:root /app/apps/${PROJECT}/.next/static ./apps/${PROJECT}/.next/static
218218
COPY --from=builder --chown=default:root /app/apps/${PROJECT}/public ./apps/${PROJECT}/public
219-
COPY --from=builder --chown=default:root /app/next.base.config.js .
219+
COPY --from=builder --chown=default:root /app/next.base.config.mjs .
220220
RUN cp -r /app/apps/${PROJECT}/.next/ /app/.next_orig/
221221

222222
# OpenShift write access to Next cache folder

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ All the applications inside the monorepo are sharing the similar Apollo-Router i
4545
│ └── events-graphql-proxy ("clone of events-helsinki-api-proxy")
4646
4747
├── apps
48-
│ ├── hobbies-helsinki (i18n, ssr, api, jest)
48+
│ ├── hobbies-helsinki (i18n, ssr, api, vitest)
4949
│ ├── events-helsinki ("clone of hobbies-helsinki")
5050
│ └── sports-helsinki ("clone of hobbies-helsinki")
5151
└── packages
5252
├── common-i18n (locales...)
53-
├── components (common event components, utils and hooks, storybook, jest)
53+
├── components (common event components, utils and hooks, storybook, vitest)
5454
├── graphql-proxy-server (common code for graphql api-proxy server)
5555
└── eslint-config-bases (to shared eslint configs)
5656
```
@@ -109,8 +109,8 @@ If needed static resources like **images**,... can be shared by using symlinks i
109109
│ ├── src/
110110
│ │ └── pages/api (api routes)
111111
│ ├── CHANGELOG.md
112-
│ ├── next.config.js
113-
│ ├── next-i18next.config.js
112+
│ ├── next.config.mjs
113+
│ ├── next-i18next.config.mjs
114114
│ ├── package.json (define package workspace:package deps)
115115
│ └── tsconfig.json (define path to packages)
116116
@@ -167,7 +167,7 @@ Some convenience scripts can be run in any folder of this repo and will call the
167167
| `yarn g:clean` | Clean builds in all workspaces |
168168
| `yarn g:check-dist` | Ensure build dist files passes es2017 (run `g:build` first). |
169169
| `yarn g:check-size` | Ensure browser dist files are within size limit (run `g:build` first). |
170-
| `yarn clean:global-cache` | Clean tooling caches (eslint, jest...) |
170+
| `yarn clean:global-cache` | Clean tooling caches (eslint, vitest...) |
171171
| `yarn deps:check --dep dev` | Will print what packages can be upgraded globally (see also [.ncurc.yml](https://github.com/sortlist/packages/blob/main/.ncurc.yml)) |
172172
| `yarn deps:update --dep dev` | Apply possible updates (run `yarn install && yarn dedupe` after) |
173173
| `yarn check:install` | Verify if there's no peer-deps missing in packages |
@@ -288,7 +288,7 @@ curl -X POST https://tapahtumat.test.hel.ninja/api/revalidate -H "Content-Type:
288288
289289
### 5.1 Linters
290290
291-
See in [./apps/hobbies-helsinki/.eslintrc.js](./apps/nextjs-app/.eslintrc.js) and
291+
See in [./apps/hobbies-helsinki/eslint.config.js](./apps/nextjs-app/eslint.config.js) and
292292
[eslint-config-bases](./packages/eslint-config-bases/README.md).
293293
294294
### 5.2 Hooks / Lint-staged
@@ -298,12 +298,12 @@ that lint and prettier are applied automatically on commit and/or pushes.
298298
299299
### 5.3 Tests
300300
301-
Tests relies on ts-jest or vitest depending on the app. All setups supports typescript path aliases.
301+
Tests relies on vitest. All setups supports typescript path aliases.
302302
React-testing-library is enabled whenever react is involved.
303303
304304
Configuration lives in the root folder of each apps/packages. See
305305
306-
- [./apps/hobbies-helsinki/jest.config.js](./apps/hobbies-helsinki/jest.config.js).
306+
- [./apps/hobbies-helsinki/vitest.config.js](./apps/hobbies-helsinki/vitest.config.js).
307307
308308
There are also some K6 performance testing scripts. The K6 package is included in the applications of the [apps](./apps/)-folder. To get more familiar with the K6 library, read the docs from https://k6.io/docs/.
309309
@@ -353,8 +353,6 @@ To ensure decent performance, those features are present in the example actions:
353353
> - "yarn.lock"
354354
> - ".yarnrc.yml"
355355
> - ".github/workflows/**"
356-
> - ".eslintrc.base.json"
357-
> - ".eslintignore"
358356
> ```
359357

360358
#### Pipeline configuration

apps/events-helsinki/.dockerignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
!*yarn*
77
!tsconfig.json
88
!next.base.config.js
9-
!next.config.js
9+
!next.config.mjs
1010
!.babelrc
1111
!i18nRoutes.config.js
12-
!next-i18next.config.js
12+
!next-i18next.config.mjs
1313
!sentry.client.config.js
1414
!sentry.server.config.js
1515
!sentry.properties

apps/events-helsinki/.escheckrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ecmaVersion": "es2020",
2+
"ecmaVersion": "es2022",
33
"module": false,
44
"files": "./.next/static/chunks/**/*.js"
5-
}
5+
}

0 commit comments

Comments
 (0)