-
Notifications
You must be signed in to change notification settings - Fork 39
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
Upgrade to latest Netlify build API #18
Conversation
Looks good, let me try this tomorrow before publishing. I think this does not even have user-facing changes, so could be even a patch version update. |
actually, steps were renamed, so user would have to use |
Oh yes, you're right. You could either make a breaking change and support only passing the new event name, or keep backward compatibility there. Please let me know if you have any additional questions, I'm here to help! :) |
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.
Looks good, I will merge this so I release a beta version to test it out, then will set up CI tests before publishing an official version, thanks for the work @ehmicky I really appreciate this
@ehmicky do the users still need to specify inputs to |
also @ehmicky I have noticed the pre-build callback failing, yet the build has succeeded? https://circleci.com/gh/cypress-io/netlify-plugin-cypress/96 |
- this is a fix because under the hood it updates this plugin to latest built API (work was done in PR #18)
🎉 This PR is included in version 1.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I kept it as
This PR switched from using |
Thanks a lot for creating this Build plugin!
Netlify just released the latest version of Build plugins. Build plugins are currently enabled in the Netlify website for a small percentage of beta users.
This PR upgrades this plugin to the latest API. You can find the new documentation here.
I don't have a Cypress setup, so you definitely would want to manually test the different changes introduced by this PR.
List of the changes:
keywords
topackage.json
to make it easier for users to find your pluginbugs
keyword topackage.json
which will be printed to users if a bug happens inside your pluginexeca
with Netlify'srun
utility, which is based on Execa (note: I am a co-maintainer of Execa)wait-on
fail, useutils.build.failPlugin()
(which will be reported as a user error) instead of throwing an error (which would be reported as a bug inside your plugin)utils.build.failPlugin()
instead ofutils.build.failBuild()
to ensure other plugins keep running.name
property, which has been removed from NetlifypreBuild
andpostBuild
events have been renamed toonPreBuild
andonPostBuild
PUBLISH_DIR
constant instead ofnetlifyConfig.build.publish
. This constant not only uses the configuration file propertybuild.publish
but also the setting "Publish directory" set in the Netlify app.pluginConfig
was renamed toinputs
Note: checking that
utils.build
exists should not be needed in production. The only way this would not exist is for users running a local build with an old version Netlify CLI, but upgrading should fix their problem.Those are quite many changes, so if you find any time to confirm that each works by running actual builds, this would be amazing! Thanks. 🙏