# Devtool Setup
We recommand using webstorm or other jetbrain IDE. As most of our devtool setup is based on webstorm.
# Webstorm
- Enable Filewatcher for
eslint --fix - Setup remote debug attach so that you can set break point
on webstorm when running
j debug - Setup bashscript support (for editing
jscripts) - Change javascript language version to Flow (Note that this project use typescript instead of Flow. But enable Flow allows better code completion in js)
The following should be enabled by webstorm by default. Please check they are activiated:
- Enable .editorconfig
- Enable ESlint
- Enable Typescript
# General Setup
We recommend you setup the following to speed up your productivity
- Bash completion
- Git completion -
brew install git bash-completion - Docker completion -
brew install docker-completion - docker-compose completion -
brew install docker-compose-completion - kubectl completion -
kubectl completion bash > /usr/local/etc/bash_completion.d/kubectl
- Git completion -
- Show git branch on terminal
Put the following into your ~/.bash_profile
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "