mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
7829db8850
- To test I forced Ifloggedin always return null. - Layout is ok even when edition components are hidden. |
||
---|---|---|
.. | ||
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
Run GraphQL backend
-
Download a git-bug stable binary.
-
Execute git-bug binary inside directory for the git repository it will manage issues:
- git-bug webui -p 3001
Run ReactJS front-end
-
Clone git-bug repository.
-
Enter webui directory and install libraries needed:
- npm install
-
Generate ts code from graphql files and run webui in development mode
- npm start
- If You got compilation errors from lint, run lint command below and start again:
- npm run lint -- --fix
- npm start
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.