-
Notifications
You must be signed in to change notification settings - Fork 164
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
Console log #284
Console log #284
Conversation
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.
This was so much easier to review! Thanks!
packages/core/package.json
Outdated
"devDependencies": { | ||
"@types/mime-types": "^2.1.0" |
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.
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.
Can you revert this change, please. mime-types
is needed as a runtime dependency. This is also downgrading the minimum version from 2.1.27
to 2.1.0
. Generally, devDependencies
should be empty in core
, cli
and validator
and listed on the root package.json
.
packages/core/src/lib/Log.ts
Outdated
debug(message: string, ...args: string[]): void; | ||
|
||
/** | ||
* Prints an info message to the Log. message is ignored if the Log is not set to verbose. |
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.
These comments seem to be wrong (the bit about verbose only applies to debug
I think).
Also, capital letters at the start of sentences please.
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 didn't write it, and I think it is right, if verbose == false
it will not print anything
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 once you get rid of the import Log that you don't use (that GitHub Actions is warning you about).
(Also once Andre is happy with 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.
Thanks, this is much easier to review. Requested one change.
packages/core/package.json
Outdated
"devDependencies": { | ||
"@types/mime-types": "^2.1.0" |
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.
Can you revert this change, please. mime-types
is needed as a runtime dependency. This is also downgrading the minimum version from 2.1.27
to 2.1.0
. Generally, devDependencies
should be empty in core
, cli
and validator
and listed on the root package.json
.
packages/core/package.json
Outdated
"inquirer": "^7.3.2", | ||
"jimp": "^0.14.0", | ||
"inquirer": "^7.0.4", | ||
"sharp": "^0.23.2", |
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.
Did you mean to change this line?
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.
Cool, looking good to me.
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.
Awesome, LGTM, thank you for the hard work!
Changed
Log
into an interface and addedConsoleLog