Skip to content

Commit a8b8366

Browse files
Merge pull request #249 from NFDI4Chem/development
Updates for the beta version and whitelisting of Jiuzhou Pharma
2 parents 155193f + 3ed95eb commit a8b8366

25 files changed

+7341
-11064
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
FROM node:18-alpine3.14
1+
FROM node:22-alpine3.18
22

33
WORKDIR /app
44

55
ENV PATH /app/node_modules/.bin:$PATH
66

77
COPY package.json ./
8-
COPY package-lock.json ./
9-
RUN npm install --silent
10-
RUN npm install react-scripts@latest -g --silent
8+
RUN npm i --silent
9+
RUN npm i react-scripts@latest -g --silent
1110

1211
COPY . ./

Dockerfile.dev

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# build environment
2-
FROM node:18-alpine3.14 as build
2+
FROM node:22-alpine as build
33
WORKDIR /app
44
ENV PATH /app/node_modules/.bin:$PATH
55
COPY package.json ./
6-
COPY package-lock.json ./
76
RUN export NODE_OPTIONS=--max-old-space-size=8192
8-
RUN npm ci --silent
9-
RUN npm install react-scripts@latest -g --silent
7+
RUN npm i --silent
8+
9+
RUN npm i react-scripts@latest -g --silent
1010
COPY . ./
1111
RUN npm run build
1212

Dockerfile.prod

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
# build environment
2-
FROM node:18-alpine3.14 as build
2+
FROM node:22-alpine3.18 as build
33

44
# ARG RELEASE_VERSION
55
# ENV RELEASE_VERSION=${RELEASE_VERSION}
66

77
WORKDIR /app
88
ENV PATH /app/node_modules/.bin:$PATH
99
COPY package.json ./
10-
COPY package-lock.json ./
1110
RUN export NODE_OPTIONS=--max-old-space-size=8192
12-
RUN npm ci --silent
13-
RUN npm install react-scripts@latest -g --silent
11+
RUN npm i --silent
12+
RUN npm i react-scripts@latest -g --silent
1413
COPY . ./
1514
RUN echo "export default { version: '$RELEASE_VERSION' };" > src/versionInfo.ts
1615
RUN npm run build -- --outDir=build

eslint.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ export default [
1919
...ts,
2020
...unicorn,
2121
...react,
22+
{
23+
files: ['**/*.{ts,tsx,cts,mts}'],
24+
rules: {
25+
'@typescript-eslint/consistent-type-imports': 'error',
26+
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
27+
},
28+
},
2229
{
2330
rules: {
2431
'import/default': 'off',

0 commit comments

Comments
 (0)