-
Notifications
You must be signed in to change notification settings - Fork 181
Recommended Steps for Merging Starter into Existing Project
Anthony edited this page Sep 25, 2016
·
9 revisions
git branch merge-with-starter
git checkout merge-with-starter
git remote add starter https://github.com/qdouble/angular2webpack2-starter.git
git fetch starter
git merge starter/master
git add *
git add .gitignore
Original files will be under
<<<<<<< HEAD
=======
Files from starter will be within
=======
=======
>>>>>>> starter/master
You generally want to copy the stuff that you want to keep from the HEAD section and paste it into the starter/master section and then delete the HEAD section. Keep or move entries that you want to keep, delete stuff that’s not needed and save changes.
7. Make sure to move main application declarations, imports, providers and to APP_DECLARATIONS, APP_IMPORTS and APP_PROVIDERS files in src/app
git add *
git add .gitignore
delete node_modules folder and then run npm install
10. Examine app for conflicts. Try to run app in different modes (development/production, JIT, AOT, Universal)), run tests and resolve any issues.
git add *
git commit
:wq
*If you’re using Universal and have routes with html5pushstate, be sure to add the main routes for Universal to use in the ‘src/server.routes’ file.