-
-
Notifications
You must be signed in to change notification settings - Fork 742
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
Future plans #352
Comments
The current input style is also common way of addressing the screen sizes, hence no harm in keeping it. And using the object notation would make the input more explicit. If both notations are kept, it'll give new users flexibility to choose between these 2 options and users upgrading from previous versions will still have their scripts working with old input format. My input: Keep both |
Maybe it would be nice to add Example:
urls: ["site/dev/index.html"
"site/dev/KiraFirstPath/KiraFirstFile.html"
"site/dev/KiraSecondPath/KiraSecondFile.html"]
cwd: "site/dev/"
urls: ["index.html"
"KiraFirstPath/KiraFirstFile.html"
"KiraSecondPath/KiraSecondFile.html"] Thanks. |
@Kristinita You can already do that with Grunt: https://gruntjs.com/configuring-tasks#building-the-files-object-dynamically |
@sindresorhus,
Docs says about For example, this configuration: urls: [
expand: true
cwd: "site/dev/"
src: ["index.html"
"KiraFirstPath/KiraFirstFile.html"
"KiraSecondPath/KiraSecondFile.html"]
] or this: urls:
files: [
expand: true
cwd: "site/dev/"
src: ["index.html"
"KiraFirstPath/KiraFirstFile.html"
"KiraSecondPath/KiraSecondFile.html"]
] will not work. Thanks. |
@Kristinita Good point. Yes, we should support the standard |
I got out v5 at last, which switched from PhantomJS to Puppeteer. This was an important release as PhantomJS is no longer maintained. Because of this, I tried to keep the breaking changes to a minimum. There are however lots of improvements I would like to do to the API, but which can be done sometime in the future. Here are some rough ideas:
Options:
transparent
=>defaultBackground
and make ittrue
by default (since it's inverted)username
=>authentication.username
password
=>authentication.password
scale
=>scaleFactor
and change the default value from1
to2
crop
=>fullPage
and make ittrue
by default (since it's inverted)format
=>type
(and valuejpg
=>jpeg
)selector
=>element
css
=>styles
and accept typestring[]
instead ofstring
script
=>scripts
and accept typestring[]
instead ofstring
hide
=>hideElements
and accept typestring[]
instead ofstring
API:
.src()
=>.source()
.dest()
=>.destination()
I would also like to move away from the chainable API to a single method call.
Before
After
Thoughts?
Open questions
'480x320'
=>{width: 480, height: 320}
? Or support both?sources
item specific options be top-level in the source object (like in the above example) or nested inside{options: {delay: 4}}
?The text was updated successfully, but these errors were encountered: