Scripts

Introduction

Catalyst provides the functionality for automating CLI and terminal command executions during the testing or deployment process in the form of scripts. You can define Catalyst scripts in the catalyst.json file of your Catalyst project directory.

Scripting enables abstraction of the details of processes behind a task runner. This helps you prevent performing iterative tasks manually, and automates the logic that needs to be executed during various stages of the testing or deployment process.

Catalyst supports two kinds of scripts:

  1. Lifecycle Scripts: Scripts that are executed during various lifecycle events
  2. Custom Scripts: Scripts that you can define to be executed when you need

You can also run a script manually and test it whenever you require, using the CLI.

Last Updated 2023-04-19 15:32:07 +0530 +0530

ON THIS PAGE