CI/CD (CircleCI) Best Practice Question


Using CircleCI to build my Ionic App and deploy to Firebase.

What is the best way to handle the ionic cli dependency? Not sure that I want npm install -g ionic cordova in my CircleCI scripts, due to the overhead in downloading it every time. On the other hand, I could put ionic, cordova, and angular in my devDependencies? Not 100% this would work though, if some parts of the CLI expect it to be added globally. Thanks!

So, questions:

  • What is the best way to handle the dependency?
  • Should I pin the version of that dependency?