Closed shamilovtim closed 10 months ago
Open the branch in Web Editor • VS Code • Insiders
Open Preview
Attention: 1 lines
in your changes are missing coverage. Please review.
Comparison is base (
02780d9
) 80.90% compared to head (1f1706c
) 80.81%.
Files | Patch % | Lines |
---|---|---|
src/main.ts | 0.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Reason for PR
On some of our CI we run Docker which takes a whopping 7 minutes on a macOS 12 runner. Setup of docker represents almost 50% of the entire time spent waiting on some CI runs. Yet many of our projects are already Javascript + npm environments that can run
node
binaries natively. We simplynpx @web5/dwn-server
and we're good to go. No Linux hypervisor necessary. Option for Docker will still be there for cases where it's necessary.Implementation
Add support for
npx
withbin
directive. See video for local run on my machine. Validated withnpx link
locally.Video
https://github.com/TBD54566975/dwn-server/assets/3495974/3a51d4b8-f792-466f-b9c8-75e451dee9f5