Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

feat(nuxi): switch to unjs/giget for nuxi init #7361

Merged
merged 8 commits into from
Sep 8, 2022
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Sep 8, 2022

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Previously we were using degit and then tiged for cloning repository. They were not quite stable and had issues with subdir handling and also because of depending on local git command, fail with strange issues. This PR migrates to use unjs/gitget that is designed for best performance and not depending on local git. It also adds --force, --offline, --prefer-offline flags and (experimental) --shell that replaces working dir.

Note: -v|--verbose previously passing to tiged is deprecated. Using DEBUG=1 environment variable to enable global verbose logs is possible.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented Sep 8, 2022

βœ… Deploy Preview for nuxt3-docs ready!

Name Link
πŸ”¨ Latest commit 6c5be77
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/631a0cd3f5a0c3000878eee5
😎 Deploy Preview https://deploy-preview-7361--nuxt3-docs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@pi0
Copy link
Member Author

pi0 commented Sep 8, 2022

(merging to try and fix early bugs on edge)

@pi0 pi0 changed the title feat(nuxi): switch to giget for nuxi init feat(nuxi): switch to unjs/giget for nuxi init Sep 8, 2022
@pi0 pi0 merged commit e0c5907 into main Sep 8, 2022
@pi0 pi0 deleted the feat/cli-init-giget branch September 8, 2022 15:43
@pi0
Copy link
Member Author

pi0 commented Sep 8, 2022

Getting "global fetch is not available!". Seems an unbuild resolution issue with node-fetch-native... Tracking... 0cc49e2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants