Jordan-Hall / nx-bun

https://jordan-hall.github.io/nx-bun/
Other
58 stars 6 forks source link

Is it ready yet? #13

Closed JulioC closed 9 months ago

JulioC commented 9 months ago

For now, the answer appears to be "no".

@Jordan-Hall commented on nx Discord:

Not yet. You will not be able to properly run on full bun yet. Major issue is with package manager. I'll have a guide shortly once I've finishes with the e2e testing. You can create bun applications though https://github.com/Jordan-Hall/nx-bun


I'm creating this issue so anyone interested can follow. It would be nice if the maintainers could share milestone updates here.

Jordan-Hall commented 9 months ago

You are able to run bun applications yes.

However, we still unable to remove the need for bun as bun --bun nx doesn't work. So in short you can create applications and libraries now and it works. But NX commands will run in node

Jordan-Hall commented 9 months ago

I could be wrong not checked it for a little bit but using the worker task runner does allow you to run bun --bun so nx runs in bun too.

This is area I'm working on next. Got PR in for bun package manager and I'm going to provide a patch file for anyone that once it. #14 need to change Ci away from nx-cloud as it doesn't support bun runtime then this is merged and work on task runner and patch files will be coming

Jordan-Hall commented 9 months ago

V1 released. Closing this as the support coming in next

Jordan-Hall commented 9 months ago

If you are willing to swap the NX task runner for https://www.npmjs.com/package/@nx-bun/task-worker-runner you can use NX in complete bun environment today

Jordan-Hall commented 9 months ago

@JulioC here a template repo for pure bun https://github.com/Jordan-Hall/nx-bun-template

JulioC commented 9 months ago

That was much quicker than expected! I'll experiment with it and report back any issues. Thanks a lot!