6. Automation and the Cordova CLI

As you may have noticed from the last two chapters, the typical Cordova developer spends a lot of time at the command prompt. In this chapter, I’m going to show you how to add a little automation to your Cordova projects.

As I worked on each of my Cordova books (this is my fourth), I found myself typing in the same commands over and over for each Cordova project I created, and I created a lot of apps. In the first half of this chapter, I’ll show you how to automate some of the repetitive tasks you perform with the CLI. In the second half of the chapter, I’ll show you how to add additional actions to the activities that Cordova performs while it’s managing your projects.

Automating the Project Setup Step

For ...

Get Apache Cordova 4 Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.