- Sicherstellen, dass die neuste Version der git-hooks installiert ist (siehe README vom git-hooks Repository)
- cd /path/to/investmentcockpit
- develop branch pullen:
git checkout develop && git pull
- Feature branch auschecken, der noch nicht formatiert ist:
git checkout feature/I5-1337-my-cool-feature
- rebasen auf den letzten commit auf dem develop branch, der noch nicht formatiert ist:
git rebase 031c0e11f9a
- Konflikte resolven (im IntellliJ oder manuell per Terminal. Das kennt ihr vielleicht nicht, wenn ihr Hilfe braucht ruft mich an. Funktioniert mit ```git rebase --continue
und
git commit --amend --no-edit`. Ich würde dafür IntelliJ empfehlen) - Is frontend directory wechseln und Dependencies installieren:
cd frontend && yarn install
- Nun folgenden command ausführen:
git rebase --strategy-option=theirs --exec 'npx prettier --write --single-quote --trailing-comma es5 --use-tabs false --semi --bracket-spacing false --print-width 120 `git show --name-only --pretty="" HEAD | grep -E --color=never ".*\.(js|ts|json|css|scss|html)$"` && git add `git show --name-only --pretty="" HEAD` && git commit --amend --no-edit --no-verify' develop
- Done! Euer feature branch sollte nun formatiert sein. Ab jetzt wird der Code immer automatisch formatiert bei einem Commit. Manuell kann die Formatierung mit
yarn prettier:fix
ausgeführt werden.
Last active
April 15, 2020 12:11
-
-
Save omnibrain/a705a02f2d0503bfa5465738443f398e to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment