Skip to content

ng build --watch --watch-matcher="Compiled successfully" --watch-script=sayhi.js #24807

Description

@kirpachov

Command

build

Description

Hello, it would be really cool to be able to execute some code once project has been built again.

ng build --watch --watch-matcher="Compiled successfully" --watch-script=sayhi.js

After each change, the application gets built, and if --watch-matcher="Compiled successfully" is successful, call the .js file.

Describe the solution you'd like

if I am in the root of my project, and we have a file called sayhi.js.

// /root/of/app/sayhi.jsconsole.log('hi');

and I start

ng build --watch --watch-matcher="Compiled successfully" --watch-script=sayhi.js

then, when I change something in my app, app gest built, and if successful, I must see

hi

Describe alternatives you've considered

No response

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions