Skip to content
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

introduce npx #94

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Conversation

shamilovtim
Copy link
Member

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 simply npx @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 with bin directive. See video for local run on my machine. Validated with npx link locally.

Video

Screen.Recording.2023-12-02.at.4.27.11.AM.mov

Copy link

codesandbox bot commented Dec 2, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@codecov-commenter
Copy link

Codecov Report

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 ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #94      +/-   ##
==========================================
- Coverage   80.90%   80.81%   -0.09%     
==========================================
  Files          15       15              
  Lines        1000     1001       +1     
  Branches      100      100              
==========================================
  Hits          809      809              
- Misses        191      192       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@finn-tbd finn-tbd left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@thehenrytsai thehenrytsai left a comment

Choose a reason for hiding this comment

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

🙏 🏅

@thehenrytsai thehenrytsai merged commit 7a178b5 into TBD54566975:main Dec 7, 2023
4 checks passed
@shamilovtim shamilovtim deleted the tshamilov/npx branch December 7, 2023 00:29
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.

4 participants