Skip to content

How to run scripts on normal build and each watch run? #44

Description

@codegain

Hi,

I am having trouble finding out the correct way to execute scripts before each build (without --watch) and before each --watch run.

I tried onBeforeBuild, onBuildStart and onWatchRun which seem to work, but they only run once with --watch and not on every watch run. onAfterDone on the other hand always runs after each build with or without --watch.

Is there an equivalent of onAfterDone to execute scripts before the build on each build and on each watch run?

EDIT: I should add that I already tried onBeforeBuild and onWatchRun with the same scripts. The scripts do execute on the start of --watch but not before/during every watch run.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions