Since a Javascript is a reference type is it not possible to make a copy by just doing because changes in one will affect the other. For example:
This will work for Ionic 2.x and Ionic 3.x and will make a folder structure ready for deploy.
It is a little bit tricky but we CAN use PDJ.js with Ionic!