How to update Frontastic as a library

If you're using Frontastic as a library, you can update the Frontastic libraries (Composer and npm) on your own. We'll show you how to do this.

We recommend that you do this every 1 or 2 months to make sure you're using the latest version. We also recommend updating both the frontend and backend at the same time to make sure they're both running on the same version.

To update these, all you need to do is:

1
Run composer update frontastic/catwalk and  composer update frontastic/common in your master branch

2
Run yarn upgrade @frontastic/catwalk and yarn upgrade @frontastic/common also in your master branch

3
Commit the changes and push them

And that's it! The Composer updates will do all the backend code and fetch the new version, and Yarn will update all the frontend code. Both will modify the lock files as well.

If you run yarn why @Frontastic/catwalk, you can check if the version has updated correctly.

You will still need to get a core update from us from time to time that will give you a full platform update, but this will only affect your development machines.


‹ Back to article list


Still need help? Contact us Contact us