Skip to content

Feature/bun runtime #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
May 5, 2025
Merged

Feature/bun runtime #45

merged 35 commits into from
May 5, 2025

Conversation

tomast1337
Copy link
Member

This pull request introduces significant changes to the project, including a migration from pnpm/node to bun, enhancements to build and runtime configurations, and various codebase improvements.

Migration to bun:

  • Updated package.json scripts to use bun instead of pnpm for tasks such as development, building, and testing. Added concurrently to run the backend and frontend simultaneously for development.

Production build:

For running in production with bun, the following command is used:

Nest backend

bun run build:server

This will build the NestJS backend for production.


bun run start:server:prod

This will start the NestJS production build.

Next frontend

bun run build:web

This will build the Next.js frontend for production.


bun run start:web:prod

This will start the Next.js production build.

…T strategy tests

refactor: update fetch mock to use global as any in song webhook service tests
fix: return ArrayBuffer instead of Buffer in file service
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Was the removal of the assets folder from src necessary? Be sure it doesn't break loading of the font/note block sprite when generating the thumbnail server-side :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the assets folder outside the src directory to better align with common project structures where static or shared resources are separated from the application code logic, similar to how the public folder is treated in frontend and backend projects. This helps keep the source code focused and makes asset management more centralized and intuitive.

I’ve ensured that all paths referencing fonts and the note block sprite used in thumbnail generation are updated accordingly.

@Bentroen Bentroen merged commit d92ae99 into main May 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants