Me and my friend were having some difficulties in sharing the ionic project code over git. Can anyone please suggest Which files/directories to ignore and which to include in git?.
Also, which commands I need to run to install all the required dependencies on the machine on which I am cloning the project through git?
Hello, jayant did you find a solution? I got errors too because some files won’t be tracked by git add * in the root folder of the app. These files are missing when we clone the app afterwards.
Why we need to add hooks/ in .gitignore. Can’t we add scripts here to add platform class or scripts to automatically install plugins from package.json into hooks or is it taken care by ionic cli itself.
It would be better if I wrap the platform installs with a promise first then do the plugin installs, but I didn’t want to add a new dependency to the script. It would also be better if I did something like check if the platform and plugins dirs exist already before running the add command.