Q:

angular app, run gradle task with npm run build

I have an angular 1 app. Every time I run 
npm run build

I also want to start a gradle task. Can I automatize that somehow?

A:

Of course you can, the command npm run build run the script defined in you package.json file.
It looks like this :
"scripts": {
    "build": "myAwesomeCommand; gradle myTask"   
},

You can change the command executed by npm run build. If your command is too long or if you need a script, you can also create a shell script in your current directory and execute it.

