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

feat: add analytics dashboard lwc templates #325

Merged
merged 3 commits into from
May 27, 2021

Conversation

smithgp
Copy link
Collaborator

@smithgp smithgp commented May 19, 2021

What does this PR do?

  • Fixes using --template with force:lighting:component:create:
    • --help didn't list any available template names
    • actually specifying --template with any value (including the default DefaultLightningCmp) would produce an error
  • Updates the force:lightning:component:create command to support multiple options for --template
  • Adds analyticsDashboard and analyticsDashboardWithStep lwc templates

What issues does this PR fix or reference?

@W-9191596@

cc: @jimmydief

@smithgp smithgp requested review from xyc, reidaelliott, mblumreich and a team May 19, 2021 22:24
path.join(outputdir, componentname, `${componentname}.cmp`)
),
{}
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These calls where all ending with a , (and not ; before, which, while valid, seemed a little weird. I updated to use a ;, which also fixed the formatting -- turn off whitespace diffs in the gear icon to see this a little better.

@smithgp smithgp force-pushed the gps/analytics-dashboard-lwc branch from c914d59 to 0db5d2f Compare May 24, 2021 23:23
@smithgp smithgp marked this pull request as ready for review May 24, 2021 23:24
| 'ApexUnitTest'
| 'ApexException'
| 'InboundEmailService';
| 'DefaultApexClass'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The reformat in pre-commit did these whitespace changes here.

@smithgp smithgp force-pushed the gps/analytics-dashboard-lwc branch from 0db5d2f to 71de51a Compare May 25, 2021 21:32
and also use a hard-coded list on the options flag config for --template to
match for consistency.
@smithgp smithgp merged commit c29cfc2 into develop May 27, 2021
@smithgp smithgp deleted the gps/analytics-dashboard-lwc branch May 27, 2021 17:48
xyc pushed a commit that referenced this pull request Jun 1, 2021
* feat: support aura/lwc component templates

@W-9191596@

* feat: analytics dashboard lwc templates

@W-9191596@

* fix: update to union type on LightningComponentOptions

and also use a hard-coded list on the options flag config for --template to
match for consistency.
jag-j pushed a commit that referenced this pull request Jun 3, 2021
* feat: support aura/lwc component templates

@W-9191596@

* feat: analytics dashboard lwc templates

@W-9191596@

* fix: update to union type on LightningComponentOptions

and also use a hard-coded list on the options flag config for --template to
match for consistency.
xyc pushed a commit that referenced this pull request Jun 3, 2021
* feat: support aura/lwc component templates

@W-9191596@

* feat: analytics dashboard lwc templates

@W-9191596@

* fix: update to union type on LightningComponentOptions

and also use a hard-coded list on the options flag config for --template to
match for consistency.
jag-j pushed a commit that referenced this pull request Jun 3, 2021
* feat: support aura/lwc component templates

@W-9191596@

* feat: analytics dashboard lwc templates

@W-9191596@

* fix: update to union type on LightningComponentOptions

and also use a hard-coded list on the options flag config for --template to
match for consistency.
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.

3 participants