General
parent
21e1f092a5
commit
e83df74caf
|
@ -1,3 +1,38 @@
|
||||||
# Development
|
# Development
|
||||||
## General development
|
## General development
|
||||||
something about git, branches etc
|
This section is relevant for all development process, on backend, frontend and plugins.
|
||||||
|
|
||||||
|
### GIT workflow
|
||||||
|
We roughly using [GIT flow](https://danielkummer.github.io/git-flow-cheatsheet/) that means there are three kinds of GIT branches:
|
||||||
|
|
||||||
|
* `develop` containing the current (not released) working copy
|
||||||
|
* `main` containing the latest stable version
|
||||||
|
* `feature/XY` something we are working on / your personal working copy
|
||||||
|
|
||||||
|
So if you start working on a new feature simply branch `develop` to `feature/your-feature`.
|
||||||
|
If you think your code is ready to land into the `develop` branch, create a Pull-Request.
|
||||||
|
|
||||||
|
**You should normally not push directly to the `develop` branch**
|
||||||
|
One exception could be a small hotfix without sideeffects.
|
||||||
|
|
||||||
|
### Code style
|
||||||
|
We try to keep it simple, as such we enforce using following code styles:
|
||||||
|
|
||||||
|
#### Python
|
||||||
|
When writing python we follow `PEP-8`, more precisely we are using [black](https://black.readthedocs.io/en/stable/) with a line length of 120 characters.
|
||||||
|
|
||||||
|
#### ECMAScript / TypeScript
|
||||||
|
We follow the presets of `prettier` version `2.3.0` with this exceptions:
|
||||||
|
* You should use single quotes
|
||||||
|
* Print semicolons at the ends of statements
|
||||||
|
* Line length is 120 characters
|
||||||
|
* Allways use parens for arrow functions, e.g. `(x) => fo`
|
||||||
|
|
||||||
|
```json
|
||||||
|
"prettier": {
|
||||||
|
"singleQuote": true,
|
||||||
|
"semi": true,
|
||||||
|
"printWidth": 120,
|
||||||
|
"arrowParens": "always"
|
||||||
|
}
|
||||||
|
```
|
Loading…
Reference in New Issue