mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 10:12:06 +03:00
f4433d80c4
Most upgrades are minor version without breaking changes. One big upgrade is Apollo 2 -> 3, which required a few changes in the Apollo setup (see src/apollo.ts). Other changes are due to changes in Prettier, requiring to add parenthesis around arrow function parameters. Because of an incompatibility in older version of typescript-eslint with newer versions of typescript, I had to switch to the "next" unstable version of react-scripts. It should not break stuff though. See typescript-eslint/typescript-eslint#2442 |
||
---|---|---|
.. | ||
public | ||
src | ||
types | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc | ||
codegen.yaml | ||
debug_assets.go | ||
handler.go | ||
Makefile | ||
pack_webui.go | ||
package-lock.json | ||
package.json | ||
packed_assets.go | ||
Readme.md | ||
tsconfig.json |
git-bug rich web UI
How to develop
-
Compile the go binary
- run
make
in the root directory
- run
-
Run the GraphQL backend on the port 3001
./git-bug webui -p 3001
-
Run the hot-reloadable development WebUI
- run
npm start
in the webui directory
- run
The development version of the WebUI is configured to query the backend on the port 3001. You can now live edit the js code and use the normal backend.
Bundle the web UI
Once the webUI is good enough for a new release, run make pack-webui
from the root directory to bundle the compiled js into the go binary.