Closed djphan closed 2 years ago
Thanks for the PR. Unfortunately the automatic tests dont get run at the moment since travis changed their policy. I created https://github.com/ben-eb/gulp-svgmin/pull/123 to get that fixed and switch to github actions for that. Lets hope @ben-eb can take a look at this and merge some stuff.
That's good to know. I did have to adjust the tests and ran them manually locally. But it'll be good to get that going.
My PR got merged, could you rebase yours against the maste rbranch so we can see if the tests work?
Ok I'll take a look today and update the branch
I merged in the latest master to this PR. If someone could help verify @rejas @ben-eb that'll be awesome :)
Hmm looks like node 16 is failing due to a dependency issue on node 16. I'm using nvm locally on node version v14.17.6
. npm version 7.24.0
. Let me know what I can do to regenerate the package.json to unblock the checks.
But it looks like the checks are working
Ah thanks for the catch. I derp'd with my work laptop settings but will regenerate the package-lock without them.
I'll try and get something in end of day today or tomorrow morning. Just commenting for other folks tracking this PR
Updated now!
I got some emails that the workflows were not ran. Might want to check on that and let me know if one of my changes bork'd something?
I think its more an issue on how the repo ist configured: https://github.community/t/checkout-v2-error-actions-in-this-workflow-must-within-a-repository-owned-by-organization/136315/2 Maybe @ben-eb can correct it?
@rejas @djphan I've updated the settings but I think you might need to push again to trigger the build? Thanks 👍
Pushed and 🤞
Looks good, shall we merge and release @ben-eb ?
@rejas Agreed! 🚀
@djphan Thanks for your hard work! 👍
Merged. The question I have now is if this PR requires a major version update. I guess not since svgo didnt update their major version either, but I just want to make sure I dont miss anything changing @djphan @ben-eb
Oh I just noticed that I didn't update the package.json to be 2.4.0+. It might be a good idea to update that version to pull from a later svgo explicitly (oops) before cutting a version. SVGO had it as a minor version change and folks who might need an older gulp-svgmin can hard pick a version for their projects IMO.
@rejas I think it's reasonable to make major versions of this plugin whenever SVGO releases a new major version, other than that I'm not worried about how many minor releases we want to make. 👍
Some initial changes to manage the extension of preset defaults. I updated the tests so they passed and tests some basic configs with importing a svgo.config.js file and setting a rule that was available in the presets.
I didn't test this with custom plugins but those tests passed? So might need a once over on that