Add additional build tools to the ionic serve commands


#1

I want to include additional tools into the internal build process of Ionic 2 for my use. The current ‘ionic serve’ runs the transpile, then uses webpack to refresh a web page. There is the ability to run the TSLint command as a separate step.

I want to add the lint process before the transpile step and then run the Karma unit tests before the webpack routines are called.

Looking into the ionic-app-scripts, it appears that I would have to extend the script by calling the JavaScript functions directly. Is there an easier way to add additional steps into the ‘ionic serve’ process?