Skip to content

add --pull flag to sync-docs, pull existing repo if nec #726

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 2 commits into from
Oct 30, 2024

Conversation

Rich-Harris
Copy link
Member

This improves the sync script a bit — it allows you to specify a -p or --pull flag which pulls from the remote (or clones the repo if necessary), and also specify which packages we care about:

pnpm sync-docs          # sync everything
pnpm sync-docs -w       # sync everything and watch for changes

pnpm sync-docs cli      # just sync `cli` docs
pnpm sync-docs cli kit  # sync `cli` and `kit` docs

pnpm sync-docs -pw kit  # pull or clone `kit` docs, sync, and watch for changes

This is groundwork for setting up an automated workflow

@Rich-Harris Rich-Harris merged commit cd53d5a into main Oct 30, 2024
5 checks passed
@Rich-Harris Rich-Harris deleted the better-sync branch October 30, 2024 19:19
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