-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Task and Bun workspaces instead of nx
- Loading branch information
Showing
53 changed files
with
165 additions
and
17,146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ Thumbs.db | |
# Bun | ||
node_modules.bun | ||
|
||
# Nx | ||
# Tasks | ||
.env.local | ||
|
||
*-secret.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,27 @@ | ||
FROM node:lts-alpine AS buildtime | ||
FROM oven/bun:1.1.20-alpine | ||
WORKDIR /app | ||
COPY package*.json nx.json /app/ | ||
COPY package.json bun.lockb /app/ | ||
|
||
# Add any node packages | ||
COPY packages/archive/*.json /app/packages/archive/ | ||
COPY packages/configurator/*.json /app/packages/configurator/ | ||
COPY packages/base-node/*.json /app/packages/base-node/ | ||
COPY packages/common-archive-client/*.json /app/packages/common-archive-client/ | ||
COPY packages/common-data/*.json /app/packages/common-data/ | ||
COPY packages/common-postgres/*.json /app/packages/common-postgres/ | ||
# Add bun install dependencies | ||
COPY packages/archive/package.json /app/ | ||
COPY packages/base-bun/package.json /app/ | ||
COPY packages/configurator/package.json /app/ | ||
COPY packages/common-archive-client/package.json /app/ | ||
COPY packages/common-data/package.json /app/ | ||
COPY packages/common-postgres/package.json /app/ | ||
COPY packages/gatherer-http/package.json /app/ | ||
COPY packages/gatherer-stdin/package.json /app/ | ||
COPY packages/publisher/package.json /app/ | ||
|
||
# Install dev deps for buildtime | ||
RUN npm ci | ||
# Install deps | ||
RUN bun install --frozen-lockfile --production | ||
|
||
# Copy source code | ||
COPY packages/archive /app/packages/archive/ | ||
COPY packages/configurator /app/packages/configurator/ | ||
COPY packages/base-node /app/packages/base-node/ | ||
COPY packages/base-bun /app/packages/base-bun/ | ||
COPY packages/common-archive-client /app/packages/common-archive-client/ | ||
COPY packages/common-data /app/packages/common-data/ | ||
COPY packages/common-postgres /app/packages/common-postgres/ | ||
|
||
# Build any node packages | ||
RUN npx nx run-many --target=node:build --all | ||
|
||
# Clean slate for runtime | ||
FROM node:lts-alpine AS runtime | ||
WORKDIR /app | ||
COPY --link --from=buildtime /app/package*.json /app/nx.json /app/ | ||
COPY --link --from=buildtime /app/packages /app/packages | ||
|
||
# Remove dev deps for runtime | ||
RUN npm ci --omit=dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.