Skip to content

Commit 2856eec

Browse files
authored
Merge pull request #926 from Ostap-Zherebetskyi/feature/merge_develop
[ENG-10644] Merge latest `develop` into feature branch
2 parents fdac31c + 369e3ad commit 2856eec

575 files changed

Lines changed: 16813 additions & 10793 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.

CHANGELOG

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
22

33
We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO.
44

5+
26.6.1 (2026-03-26)
6+
===================
7+
8+
* Hotfix to prevent redirect on 403 error
9+
10+
26.6.0 (2026-03-26)
11+
===================
12+
13+
* Misc. improvements and bug fixes
14+
15+
26.5.1 (2026-03-18)
16+
===================
17+
18+
* Hotfix for Angular SSR
19+
20+
26.5.0 (2026-02-26)
21+
===================
22+
23+
* Config updates to enable Angular SSR
24+
25+
26.4.0 (2026-02-26)
26+
===================
27+
28+
* Search and fetch funder ids from ROR instead of CrossRef
29+
30+
26.3.1 (2026-02-25)
31+
===================
32+
33+
* Hotfix to prevent 403 error when fetching metadata from causing a redirect
34+
35+
26.3.0 (2026-02-24)
36+
===================
37+
38+
* FAIR Signposting
39+
540
26.2.1 (2026-02-03)
641
===================
742

Dockerfile

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,37 @@
1-
# Build
2-
FROM node:22-alpine AS build
3-
1+
# Dependencies stage
2+
FROM node:22-alpine AS deps
43
WORKDIR /app
5-
64
COPY package*.json ./
7-
RUN npm install
5+
RUN npm ci --no-audit --no-fund
86

7+
# Build stage (SSR build output)
8+
FROM deps AS build
99
COPY . .
10+
RUN NG_BUILD_OPTIMIZE_CHUNKS=1 npx ng build --configuration=ssr --verbose
1011

11-
RUN npm link @angular/cli
12-
RUN NG_BUILD_OPTIMIZE_CHUNKS=1 ng build --verbose
12+
# SSR runtime stage
13+
FROM build AS ssr
14+
WORKDIR /app
15+
RUN npm prune --omit=dev --no-audit --no-fund
16+
EXPOSE 4000
17+
ENV PORT=4000
18+
CMD ["node", "--enable-source-maps", "dist/osf/server/server.mjs"]
1319

14-
# Dist
20+
# Static dist artifact stage
1521
FROM node:22-alpine AS dist
16-
1722
WORKDIR /code
18-
1923
COPY --from=build /app/dist /code/dist
2024

21-
# SSR
22-
FROM node:22-alpine AS ssr
23-
24-
WORKDIR /app
25-
26-
COPY package*.json ./
27-
RUN npm install
28-
25+
# Dev server stage
26+
FROM deps AS dev
2927
COPY . .
30-
31-
RUN npm link @angular/cli
32-
RUN NG_BUILD_OPTIMIZE_CHUNKS=1 ng build --configuration=ssr --verbose
33-
34-
RUN npm ci --omit=dev --ignore-scripts --no-audit --no-fund
35-
36-
EXPOSE 4000
37-
38-
ENV PORT=4000
39-
40-
CMD ["node", "dist/osf/server/server.mjs"]
41-
42-
# Dev - run only
43-
FROM build AS dev
44-
4528
EXPOSE 4200
29+
CMD ["npx", "ng", "serve", "--host", "0.0.0.0"]
4630

47-
CMD ["ng", "serve"]
48-
49-
# Local Development - coding
31+
# Local development stage
5032
FROM node:22-alpine AS local-dev
5133
WORKDIR /app
52-
53-
# Install deps in the image (kept in container)
5434
COPY package*.json ./
55-
# COPY package-lock.docker.json ./package-lock.json
5635
RUN npm ci --no-audit --no-fund
57-
58-
# Expose Angular dev server
5936
EXPOSE 4200
37+
CMD ["npx", "ng", "serve", "--host", "0.0.0.0"]

angular.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"ssr": {
9797
"entry": "src/server.ts"
9898
},
99+
"sourceMap": true,
99100
"budgets": [
100101
{
101102
"type": "initial",
@@ -117,6 +118,20 @@
117118
"namedChunks": true
118119
},
119120
"development": {
121+
"outputMode": "static",
122+
"server": false,
123+
"ssr": false,
124+
"optimization": false,
125+
"extractLicenses": false,
126+
"sourceMap": true,
127+
"fileReplacements": [
128+
{
129+
"replace": "src/environments/environment.ts",
130+
"with": "src/environments/environment.development.ts"
131+
}
132+
]
133+
},
134+
"dev-ssr": {
120135
"optimization": false,
121136
"extractLicenses": false,
122137
"sourceMap": true,
@@ -164,6 +179,9 @@
164179
"development": {
165180
"buildTarget": "osf:build:development"
166181
},
182+
"dev-ssr": {
183+
"buildTarget": "osf:build:dev-ssr"
184+
},
167185
"docker": {
168186
"buildTarget": "osf:build:docker"
169187
},

docs/ngxs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Typical NGXS-related files are organized as follows:
4646
src/app/shared/stores/
4747
└── addons/
4848
├── addons.actions.ts # All action definitions
49-
├── addons.models.ts # Interfaces & data models
49+
├── addons.model.ts # Interfaces & data model
5050
├── addons.state.ts # State implementation
5151
├── addons.selectors.ts # Reusable selectors
5252
```

0 commit comments

Comments
 (0)