-
Notifications
You must be signed in to change notification settings - Fork 394
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(new): support to skip install #1458
base: master
Are you sure you want to change the base?
Conversation
@@ -225,16 +218,18 @@ const printCollective = () => { | |||
emptyLine(); | |||
}; | |||
|
|||
const print = (color: string | null = null) => (str = '') => { |
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.
prettier
automatically format it.
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
Should we update this new option to say "none (skip installing packages)" instead of just "none" as one (newcomers to JS world) can think there's a "none" package manager? 😅 |
8797cb1
to
d6bd867
Compare
@kamilmysliwiec Good idea. Done now. |
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
@@ -1,5 +1,6 @@ | |||
export enum PackageManager { | |||
NPM = 'npm', | |||
YARN = 'yarn', | |||
PNPM = 'pnpm' | |||
PNPM = 'pnpm', | |||
NONE = 'none (skip installing packages)', |
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.
I just notice something. If none
is selected, then npm will be used by default on generated files (eg: README.md
with usage commands) due to the following lines on application
schematics
thus, wouldn't be better if
NONE = 'none (skip installing packages)', | |
NONE = 'none (use NPM but without installing packages)', |
or even
NONE = 'none (skip installing packages)', | |
NONE = 'NPM but without installing packages', |
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.
actually, the selected option is not taken in count for now but this is bug that was already fixed by #1457, so you could think it is.
@micalevisk I found it's not very elegant. I will convert this PR to draft.
The first question is to generate README.md. What your opinion? @micalevisk @kamilmysliwiec @jmcdo29 |
having two questions is better for sure. |
After PR #1457 being accepted, I will implement this feature. |
IMO the fewer questions we could ask the better (to make the scaffolding process as straightforward & quick as possible) |
Got it. And I found #1457 has code conflict with this PR. After that PR being accepted, I will rebase and ask for review again. |
that's a good point acctually. Then, I go back to #1458 (comment) xD |
This should be feasible now (since we merged #1803) |
If I run command
nest new some-project
(some one new may don't know--skip-install
option), nest-cli always force me to select a package manager. I have to pressctrl
+c
to skip, which is not elegant. Otherwise I have to waste my time to wait it.PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information