Hoping to get some guidance regarding version control of Angular2 project.
Recently i started coding in Angular2, used angular-cli to create a brand new project and go through standard 5 minute setup as per angular.io site.
Now to the version control dilemma i seem to face. I currently ignore node_modules folder and store everything else in git. However when the project is cloned elsewhere, you need to run npm install to get all the node modules as required by project.
This results in a large number of unmet dependencies as npm v5 doesn't get peer dependencies. As such creates a lot of inefficiencies as you have to identify what is missing then install individually.
My question in 2 parts essentially:
- What should be ignored when storing the angluar-cli created project in git
- What should the proper process be after you clone the project to get the project working with all the required packages
Hoping for some guidance as to what works effectively to avoid these headaches in future.