Skip to content

Commit 63f5e54

Browse files
committed
Merge branch 'main' into usage-stats
2 parents 67528f3 + 374c974 commit 63f5e54

File tree

107 files changed

+3368
-9985
lines changed

Some content is hidden

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

107 files changed

+3368
-9985
lines changed

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.7.0
1+
22.13.1

.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

.yarn/releases/yarn-4.3.1.cjs

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

.yarn/releases/yarn-4.9.4.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
compressionLevel: mixed
2-
3-
enableGlobalCache: false
4-
5-
nodeLinker: node-modules
1+
nodeLinker: pnp
62

73
packageExtensions:
84
debug@*:
@@ -16,4 +12,4 @@ pnpFallbackMode: all
1612

1713
pnpMode: loose
1814

19-
yarnPath: .yarn/releases/yarn-4.3.1.cjs
15+
yarnPath: .yarn/releases/yarn-4.9.4.cjs

Dockerfile

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20
1+
FROM node:22
22

33
# Install rsync
44
RUN apt-get update && apt-get install -y rsync
@@ -10,27 +10,13 @@ WORKDIR /usr/src/app
1010
COPY .yarn/releases .yarn/releases
1111
COPY .yarnrc.yml yarn.lock package.json ./
1212

13-
# Copy only the elements needed for a Yarn install to take advantage of
14-
# Docker's layer caching
15-
# This is complex because we are working with multiple workspaces.
16-
17-
# Copy package JSON files with wildcards
18-
# This scoops up all package.json files in the directory and subdirectories
19-
# to deal with Yarn workspaces. However it requires BUILDKIT to be enabled,
20-
# which is done by setting DOCKER_BUILDKIT=1 in the environment
21-
RUN --mount=type=bind,target=/docker-context \
22-
cd /docker-context/; \
23-
find . -name "package.json" -mindepth 0 -maxdepth 5 -exec cp --parents "{}" /usr/src/app/ \;
24-
2513
RUN yarn install --immutable
2614

27-
28-
2915
# Load the cache from the previous build
30-
RUN --mount=type=cache,target=/yarn-cache \
31-
rsync -a /yarn-cache/ .yarn/cache/ \
32-
&& yarn install --immutable \
33-
&& rsync -a .yarn/cache/ /yarn-cache
16+
#RUN --mount=type=cache,target=/yarn-cache \
17+
# rsync -a /yarn-cache/ .yarn/cache/ \
18+
# && yarn install --immutable \
19+
# && rsync -a .yarn/cache/ /yarn-cache
3420

3521
# # Remove rsync
3622
RUN apt-get remove -y rsync

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ debug:
1919
node --inspect=0.0.0.0:9229 /code/server.js
2020

2121
publish:
22-
docker build --platform=linux/amd64 -t $(TAG) .
23-
docker push $(TAG)
24-
22+
# Ensure the git repository is clean
23+
@git diff --quiet || (echo "Uncommitted changes present. Please commit or stash them before publishing." && exit 1)
24+
git tag -a v$(VERSION) -m "Version $(VERSION)"

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ The new website also contains an updated version of [trips viewer](https://githu
1515
4. Run `make` (or `yarn install`) to pull down submodules and update packages
1616
5. Start the live-reloading development server with `yarn run dev`. The server will be available at
1717
`http://localhost:3000` by default.
18+
19+
## Publishing
20+
21+
- Commit all changes and merge to `main` (optional). Update the package.json version to the desired number.
22+
- Run `make publish` to sync the `package.json` version to a git tag
23+
- Push the tag to GitHub, which should kick off CI to build and publish to OSG Harbor.

0 commit comments

Comments
 (0)