-
Notifications
You must be signed in to change notification settings - Fork 12
feat: [sites] add get-latest
cli parameter / update lwr -> v0.16.2 (includes latest local-dev fixes)
#311
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
Conversation
… use API with published state
@@ -21,7 +21,7 @@ const messages = Messages.loadMessages('@salesforce/plugin-lightning-dev', 'prom | |||
|
|||
export class PromptUtils { | |||
public static async promptUserToSelectSite(sites: string[]): Promise<string> { | |||
const choices = sites.map((site) => ({ value: site })); | |||
const choices = sites.sort((a, b) => a.localeCompare(b)).map((site) => ({ value: site })); |
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.
Order alphabetically
|
||
return experienceSites; | ||
} | ||
|
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.
unused code
this.log(`[local-dev] initializing: ${siteName}`); | ||
// If the site is not setup / is not based on the current release / or get-latest is requested -> | ||
// generate and download a new site bundle from the org based on latest builder metadata | ||
if (!selectedSite.isSiteSetup() || getLatest) { |
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.
Published sites are no longer tracked in an orgs static resources, so we will always use our local cache of initialized sites unless the user specifically requests the latest version of a site from the org
get-latest
cli parameter / update deps to include latest LWR fixes
get-latest
cli parameter / update deps to include latest LWR fixesget-latest
cli parameter / update lwr -> v0.16.2 (includes latest local-dev fixes)
* feat: 254-patch prerelease @W-15440507@ (#300) * chore(release): 2.8.0 [skip ci] * feat: [sites] add `get-latest` cli parameter / update lwr -> v0.16.2 (includes latest local-dev fixes) (#311) * chore(release): 2.9.0 [skip ci] * feat: add api flags for testing (#319) * chore(release): 2.10.0 [skip ci] * chore: update lwc oss dependency to 8.10.3 to match spring25 @W-17663897 (#320) * chore: update lwc oss dependency to 8.10.3 to match spring25 * fix: pin to same minor version as salesforce core's lwc dependencies * fix: adopt lwr v0.16.3 (#325) - address authentication cookie issues - render commerce b2b store - enable switching between auth / guest user mode * chore(release): 2.10.1 [skip ci] * fix: hot reload not working on windows (#330) * chore(release): 2.10.2 [skip ci]
What does this PR do?
What issues does this PR fix or reference?
@W-17046400@ @W-17312145@ @W-17178650@
fixes: #199