-
Notifications
You must be signed in to change notification settings - Fork 0
Shifting between branches
Shaunak Das edited this page Dec 16, 2017
·
8 revisions
- copy
/purefolder contents to../pure_backup - copy
db.jsonand App.js to../other_backup - shift to integrated branch
git checkout integrated
- Make a branch integrated_sync_DDMMM
git checkout -b integrated_sync_15Dec
- Compare differences between
/pureand../pure_backupfolder
cd .. && diff -rq genius_app/pure pure_backup
Ignore differences related
App.jsandApp.test.js
- Delete everything from
/pureexceptApp.jsandApp.test.jsand copy from../pure_backupfolder into /pure - Delete
App.js&db.jsonand copy from../other_backupfolder into/pure - Comment all expo related code
//pure/common/constants
export const ENVIRONMENT = 'integrated';
//Comment following line in pure/newpages/SplashPage.js
import { Font, Asset } from 'expo';
- Install npm packages
npm install
//If above command doesn't run
watchman watch-del-all
rm -rf node_modules && npm install
npm start -- --reset-cache
- Start js server
npm start
- Create the build from another tab
react-native run-android --appFolder /Users/shaunakdas2020/Documents/workspace/react_native_projects/genius_app/android/
- Merging latest code into expo branch
git checkout expo
git pull origin expo
// Pull from latest expo branch
git pull origin expo_*
git status
git push origin expo
- Deleting useless branches
//This command is needed to list all useless branches. Look out for expo_*
git branch
//For each expo_* branches run the following command
git branch -D expo_*
- Delete all these branches from remote
- copy
/purefolder contents to../pure_backup - copy
db.jsonand App.js to../other_backup - shift to expo branch
git checkout expo
- Make a branch expo_sync_DDMMM
git checkout -b expo_sync_15Dec
- Compare differences between
/pureand../pure_backupfolder
cd .. && diff -rq genius_app/pure pure_backup
Ignore differences related
App.jsandApp.test.js
- Delete everything from
/pureexceptApp.jsandApp.test.jsand copy from../pure_backupfolder into /pure - Delete
App.js&db.jsonand copy from../other_backupfolder into/pure - Comment all expo related code
//pure/common/constants
export const ENVIRONMENT = 'expo';
//Uncomment following line in pure/newpages/SplashPage.js
//import { Font, Asset } from 'expo';
- Install npm packages
npm install
//If above command doesn't run
watchman watch-del-all
rm -rf node_modules && npm install
npm start -- --reset-cache
- Start js server
npm start
- Merging latest code into expo branch
git checkout integrated
git pull origin integrated
// Pull from latest expo branch
git pull origin integrated_*
git status
git push origin integrated
- Deleting useless branches
//This command is needed to list all useless branches. Look out for integrated_*
git branch
//For each integrated_* branches run the following command
git branch -D integrated_*
- Delete all these branches from remote
- Start mock json server
json-server --watch db.json
- Start ngrok tunnel
~/Downloads/./nrok http 3000