-
Notifications
You must be signed in to change notification settings - Fork 0
Initial visual-snapshots package #188
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
Initial visual-snapshots package #188
Conversation
b710ba4
to
eca98b9
Compare
eca98b9
to
c49cd1b
Compare
c49cd1b
to
c5c8792
Compare
1a32cc4
to
5d9b92d
Compare
5d9b92d
to
6a0e504
Compare
5d95c33
to
9f87866
Compare
"version": "0.1.0", | ||
"main": "lib/index.cjs", | ||
"module": "lib/index.js", | ||
"types": "lib/index.d.ts", |
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.
You're not emitting declaration files, so this can be removed.
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.
the types one or all 3 of them?
return new Command() | ||
.name("pdf") | ||
.description("Create visual snapshots for each page of a PDF file") | ||
.argument("<pdf-file-path>", "A path to a PDF file") |
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.
Out of scope of this MR so feel free to resolve upon reading, but noting for future -- should we be exposing this as a glob or something instead of a path to a single file to allow bulk snapshots?
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.
sounds like a really good idea!
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 don't know how to do that now... but hopefully it will become clearer when I start actually dealing with Visual. I will bear it in mind :)
Generate visual-snapshots CLI package with pdf command which for now does nothing
Generate a new package called
visual-snapshots
withpdf
command (which for now does nothing).