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: remove dependency on yeoman #587

Merged
merged 5 commits into from
Jun 26, 2024
Merged

feat: remove dependency on yeoman #587

merged 5 commits into from
Jun 26, 2024

Conversation

mdonnalley
Copy link
Contributor

@mdonnalley mdonnalley commented Jun 19, 2024

What does this PR do?

Removes dependency on yeoman-generator and yeoman-environment

What issues does this PR fix or reference?

@W-16025380@

src/generators/sfGenerator.ts Outdated Show resolved Hide resolved
src/generators/sfGenerator.ts Outdated Show resolved Hide resolved
src/generators/sfGenerator.ts Outdated Show resolved Hide resolved
customTemplatesRootPathOrGitRepo?: string;
sourceRootPartial?: string;
}): Promise<CreateOutput> {
const cwd = opts?.cwd ?? process.cwd();
Copy link
Contributor

Choose a reason for hiding this comment

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

for the VSCode team: is this adequate for VSCode's usage? it's passing in the project dir to all the generators?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should be adequate.

src/service/templateService.ts Outdated Show resolved Hide resolved
src/service/templateService.ts Outdated Show resolved Hide resolved
src/service/templateService.ts Show resolved Hide resolved
test/service/templateService.test.ts Outdated Show resolved Hide resolved
src/utils/logger.ts Outdated Show resolved Hide resolved
src/generators/sfGenerator.ts Outdated Show resolved Hide resolved
@mshanemc mshanemc self-requested a review June 21, 2024 13:28
Copy link
Contributor

@mshanemc mshanemc left a comment

Choose a reason for hiding this comment

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

our plugin that uses this has pretty great NUT coverage (real fs across OSes, etc). I'd love to see those tests run for library changes to enable ongoing refactoring and dep maintenance for this lib.

If the lib owners aren't up for that, I'd like to see a run of them (maybe branch of a branch) to verify these changes don't affect output.

@mshanemc
Copy link
Contributor

I still see one failing NUT on the plugin when I use this branch and your branch on the plugin (running locally)

  1. TemplateCommand
    output
    should log json output when flag is specified:
    AssertionError: expected [ 'foo.cls', 'foo.cls-meta.xml' ] to be empty
    at Context. (file:///Users/shane.mclaughlin/eng/salesforcecli/plugin-templates/test/utils/templateCommand.nut.ts:41:61)
    at processImmediate (node:internal/timers:478:21)

package.json Outdated Show resolved Hide resolved
@peternhale peternhale merged commit 813b0db into main Jun 26, 2024
6 of 8 checks passed
@peternhale peternhale deleted the mdonnalley/no-yeoman branch June 26, 2024 13:58
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