Skip to content

Commit

Permalink
feat: migrate jwt to pnpm workspace & vite (#241)
Browse files Browse the repository at this point in the history
* chore: upgrade deps
* chore: remove jest
* feat: remove data exporter
* feat: switch to the official websocket impl
* chore: clean up redundant functions
* feat: migrate to `pnpm` workspace & `vite`
* fix: docker build
* feat: add `turborepo` support
* feat: correct build order
* feat: add swc support
  • Loading branch information
darkskygit authored Mar 5, 2023
1 parent 6063268 commit 815be28
Show file tree
Hide file tree
Showing 183 changed files with 6,502 additions and 16,101 deletions.
13 changes: 6 additions & 7 deletions .github/deployment/Dockerfile-jwst
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

FROM node:16-alpine as frontend
WORKDIR /app
RUN apk add git && npm i -g pnpm@7
COPY ./apps/frontend .
RUN apk add git libc6-compat && npm i -g pnpm@7
COPY . .
RUN --mount=type=cache,target=/app/node_modules,rw,sharing=private \
pnpm i --frozen-lockfile --store=node_modules/.pnpm-store && \
pnpm build --skip-nx-cache
RUN rm -rf /app/dist/apps/jwst/*.txt
pnpm i --frozen-lockfile --store=node_modules/.pnpm-store --filter @toeverything/jwt* --filter @toeverything/playground && \
pnpm build:playground

FROM messense/rust-musl-cross:x86_64-musl AS builder-amd64
ENV CARGO_TERM_COLOR="always"
COPY . .
COPY --from=frontend /app/dist ./dist
# COPY --from=frontend /app/dist/apps/jwst ./dist
# COPY --from=frontend /app/dist ./dist
COPY --from=frontend /app/apps/jwst/dist ./dist
RUN cargo build --release --package keck && \
mv /home/rust/src/target/x86_64-unknown-linux-musl/release/keck /tmp/jwst-amd64

Expand Down
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
target

.turbo
.env
.DS_Store
*.db*
/data/*
/data/*
**/dist
**/node_modules
**/stats.html
.npmrc
4 changes: 0 additions & 4 deletions apps/frontend/.commitlintrc.json

This file was deleted.

13 changes: 0 additions & 13 deletions apps/frontend/.editorconfig

This file was deleted.

35 changes: 0 additions & 35 deletions apps/frontend/.eslintrc.json

This file was deleted.

39 changes: 0 additions & 39 deletions apps/frontend/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions apps/frontend/.npmrc

This file was deleted.

4 changes: 0 additions & 4 deletions apps/frontend/.prettierignore

This file was deleted.

6 changes: 0 additions & 6 deletions apps/frontend/.prettierrc

This file was deleted.

7 changes: 0 additions & 7 deletions apps/frontend/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions apps/frontend/apps/homepage/.babelrc

This file was deleted.

16 changes: 0 additions & 16 deletions apps/frontend/apps/homepage/.browserslistrc

This file was deleted.

18 changes: 0 additions & 18 deletions apps/frontend/apps/homepage/.eslintrc.json

This file was deleted.

12 changes: 0 additions & 12 deletions apps/frontend/apps/homepage/package.json

This file was deleted.

73 changes: 0 additions & 73 deletions apps/frontend/apps/homepage/project.json

This file was deleted.

12 changes: 0 additions & 12 deletions apps/frontend/apps/homepage/src/app/App.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions apps/frontend/apps/homepage/src/app/home/common.tsx

This file was deleted.

Loading

0 comments on commit 815be28

Please sign in to comment.