Skip to content

Custom commands


Custom commands enables running any custom actions after build and before generating a release.


Custom commands will be executed:

  • after script, styles, HTML and other bundles have been built, and
  • before a release .zip file is generated

Custom commands are run for both dev and prod builds.

To configure custom commands specify commands build configuration key. For example:

1
2
3
"xtbuild": {
  "commands": "python do_something.py",
} 

This configuration would first build the extension, then run a custom Python script, then for a production build, generate the extension zip file.