-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Make build/preview/sync API accept AstroInlineConfig #7811
Conversation
|
export async function syncCli( | ||
settings: AstroSettings, | ||
{ logging, fs, flags }: { logging: LogOptions; fs: typeof fsMod; flags?: Arguments } | ||
export async function sync( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this be the official API? Just trying to understand where we are going
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I think it would be nice to make this public. I also noticed the PR description had a typo. It's besides check
and add
that I had not refactored, not sync
and add
😅 Will update that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thank you. I am excited to see the final result!
Changes
Note: This PR merges into the js-api branch
build
/preview
/sync
API accept AstroInlineConfig.The JS API is almost done! This finishes the APIs above besides
check
andadd
as those will be refactored in 3.0. Two more things to clean up in later PRs:logging
can be tucked intosettings
so the user don't have to pass that in.Testing
Existing tests should pass. Also tested locally for the commands to all work.
Docs
n/a. internal refactor.