-
Notifications
You must be signed in to change notification settings - Fork 31
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
fix: ACNA-1687 | fix option skipInstall for generators #561
fix: ACNA-1687 | fix option skipInstall for generators #561
Conversation
Codecov Report
@@ Coverage Diff @@
## master #561 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 50 50
Lines 2598 2607 +9
Branches 473 473
=========================================
+ Hits 2598 2607 +9
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…n (install command) (#19) * fix: when the template is run, the options were not being passed to the generator The previous usage of env.run, the options are actually the run options, and not the generator options. This has the proper usage. Reference: https://yeoman.github.io/environment/Environment.html#run * fix: ACNA-1732 - yeoman run skip-install work-around See adobe/aio-cli-plugin-app#561 * fixed README.md with oclif readme markers, then re-gen docs docs are generated with `npm run prepack` (which is run before the package is published usually)
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.
LGTM, looks like you had to do the same change more times than I can count 😄.
This looks good.
We can use git blame or other means to go back in time ... no need to maintain historical code in the comments. |
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.
Just the comment about removing the commented code ... looks good!
Hi @purplecabbage, Thanks for reviewing. I have removed the historic code comment. Can I merge this PR now? |
Fixed option
skipInstall
for yeoman generators used for scaffolding App Builder AppsDescription
This PR aims to fix skipInstall options issue with yeoman generators. There is a slight change to how to use this option to make it work.
Related Issue
#554
Motivation and Context
npm dependencies seem to be installed twice once after the base-app gets generated and at the end before the app initialization is over
Expected behaviour: npm dependencies should only be installed at the end of the project initialization once the package.json deps are all defined.
How Has This Been Tested?
Locally tested by creating an app - npm packages are now installed only at the end. Generators skip installing packages. All units tests run successful locally.
Screenshots (if appropriate):
Generators skipping installing packages:

Types of changes
Checklist: