-
Notifications
You must be signed in to change notification settings - Fork 82
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
Next Version & Plugin system #30
Comments
First of all thank you @axe312ger solid plan. Since we are planning to become a more complex project with these additions. We should also add tests to these plan as well. It should be simple to write unit tests for most of the code and the plugin system would actually help us on there. For the integration tests, |
Thanks Efe, you are very welcome. I agree with the tests. I'd go for jest since it gives really good DX :) We could use cheerio for checking the primitive output. Just count the shapes and see if the type of shapes matches the given mode. At least on a minimal level as it is not our job to ensure primitive is working properly. |
After #36 is done, the async API can be done with upgrading all dependencies (only svgo missing atm since it is async online since v1) Straight afterwards we can start creating the plugin api, extracing the blur and make our own plugins. Can't wait to add my svg loading animation plugin 😏 |
Argh, just realised I will need to implement babel to make proper readably async code for node v6. I guess there is no way around, I really don't want to nest/chain all the promised. |
Hey Benedikt, I personally wouldn't mind babel stuff. 👍 |
Alright cool. Will start with it soonish after my vacation. I will blog about SQIP which may boost this, too :)
…On 19. Jun 2018, 14:41 +0200, Efe Gürkan YALAMAN ***@***.***>, wrote:
Hey Benedikt, I personally wouldn't mind babel stuff. 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I'm so excited for this, gonna make my life a lot easier 😄 Also, since almost a year has passed node 6 is going bye-bye 🎉 But since babel is already in, let's not add more work to the pile. Thank you for this lovely library ❤️ |
Closed in favor of #90 @maxnordlund you are very welcome to test our new v1 alpha :) |
As discussed via PM on twitter with @technopagan and @efegurkan, we should rewrite sqip to be a plugin based system.
This step could be used to refactor the codebase, here is my proposal:
Todo
Possible plugins
potrace
like https://github.com/EmilTholin/image-trace-loader does?If you skip the plugins configuration, we just apply the current defaults to achieve simple blurred svg previews.
Current config:
New plugin config:
The progress of this is tracked in the
next
branch. PR: #35The text was updated successfully, but these errors were encountered: