Skip to content

Commit 15f9f0b

Browse files
committed
add schema documentation for gql mutations
1 parent 2030c31 commit 15f9f0b

File tree

6 files changed

+679
-271
lines changed

6 files changed

+679
-271
lines changed

Makefile

Lines changed: 50 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,50 @@
1-
get:
2-
go get
3-
run:
4-
go run server.go
5-
build-ui:
6-
git clone https://github.com/neel1996/gitconvex-ui.git ui/
7-
cd ui
8-
npm install
9-
export NODE_ENV=production
10-
npm i -g create-react-app [email protected]
11-
npm run build:tailwind
12-
npm run build
13-
mv ./build ../
14-
build-server:
15-
mkdir -p ./dist
16-
go build -o ./dist
17-
18-
build:
19-
@echo "⚒️ Initiating gitconvex build"
20-
@echo "🗑️ Cleaning up old directories"
21-
@rm -rf ui/ dist/ build/
22-
@echo "⏬ Cloning gitconvex react repo"
23-
@git clone -q https://github.com/neel1996/gitconvex-ui.git ui/ && \
24-
cd ui && \
25-
echo "⏳ Installing UI dependencies..." && \
26-
npm install --silent && \
27-
export NODE_ENV=production && \
28-
npm install tailwindcss postcss autoprefixer && \
29-
npx tailwindcss build -o ./src/index.css -c ./src/tailwind.config.js && \
30-
rm package-*.json && \
31-
rm -rf .git/ && \
32-
echo "🔧 Building react UI bundle" && \
33-
npm run build && \
34-
mv ./build ../ && \
35-
cd .. && \
36-
mkdir -p ./dist && \
37-
mv build/ ./dist/ && \
38-
mv ./dist/build ./dist/gitconvex-ui
39-
echo "🚀 Building final go source with UI bundle" && \
40-
go build -v -a -o ./dist && \
41-
echo "Gitconvex build completed!" && \
42-
mv ./dist/gitconvex-server ./dist/gitconvex
43-
@echo "Installing libs"
44-
@echo "✅ Gitconvex Build Completed successfully!"
45-
@echo "📬 Use ./dist/gitconvex to start Gitconvex on port 9001"
46-
@echo "📬 Try ./dist/gitconvex --port PORT_NUMBER to run gitconvex on the desired port"
47-
test:
48-
go test -tags static -v ./...
49-
start:
50-
./dist/gitconvex
51-
1+
get:
2+
go get
3+
run:
4+
go run server.go
5+
build-ui:
6+
git clone https://github.com/neel1996/gitconvex-ui.git ui/
7+
cd ui
8+
npm install
9+
export NODE_ENV=production
10+
npm i -g create-react-app [email protected]
11+
npm run build:tailwind
12+
npm run build
13+
mv ./build ../
14+
build-server:
15+
mkdir -p ./dist
16+
go build -o ./dist
17+
18+
build:
19+
@echo "⚒️ Initiating gitconvex build"
20+
@echo "🗑️ Cleaning up old directories"
21+
@rm -rf ui/ dist/ build/
22+
@echo "⏬ Cloning gitconvex react repo"
23+
@git clone -q https://github.com/neel1996/gitconvex-ui.git ui/ && \
24+
cd ui && \
25+
echo "⏳ Installing UI dependencies..." && \
26+
npm install --silent && \
27+
export NODE_ENV=production && \
28+
npm install tailwindcss postcss autoprefixer && \
29+
npx tailwindcss build -o ./src/index.css -c ./src/tailwind.config.js && \
30+
rm package-*.json && \
31+
rm -rf .git/ && \
32+
echo "🔧 Building react UI bundle" && \
33+
npm run build && \
34+
mv ./build ../ && \
35+
cd .. && \
36+
mkdir -p ./dist && \
37+
mv build/ ./dist/ && \
38+
mv ./dist/build ./dist/gitconvex-ui
39+
echo "🚀 Building final go source with UI bundle" && \
40+
go build -v -a -o ./dist && \
41+
echo "Gitconvex build completed!" && \
42+
mv ./dist/gitconvex-server ./dist/gitconvex
43+
@echo "Installing libs"
44+
@echo "✅ Gitconvex Build Completed successfully!"
45+
@echo "📬 Use ./dist/gitconvex to start Gitconvex on port 9001"
46+
@echo "📬 Try ./dist/gitconvex --port PORT_NUMBER to run gitconvex on the desired port"
47+
test:
48+
go test -tags static -v ./...
49+
start:
50+
./dist/gitconvex

go.mod

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,17 @@ go 1.16
55
require (
66
github.com/99designs/gqlgen v0.13.0
77
github.com/TwinProduction/go-color v0.0.2
8-
github.com/go-git/go-git/v5 v5.2.0
8+
github.com/go-git/go-git/v5 v5.3.0
99
github.com/google/uuid v1.1.2
1010
github.com/gorilla/mux v1.8.0
1111
github.com/libgit2/git2go/v31 v31.4.12
1212
github.com/onsi/ginkgo v1.8.0 // indirect
1313
github.com/onsi/gomega v1.4.3 // indirect
1414
github.com/rs/cors v1.7.0
15-
github.com/sirupsen/logrus v1.0.5 // indirect
1615
github.com/stretchr/testify v1.4.0
1716
github.com/vektah/gqlparser/v2 v2.1.0
18-
golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c
17+
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
1918
gopkg.in/airbrake/gobrake.v2 v2.0.9 // indirect
2019
gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2 // indirect
21-
gotest.tools/gotestsum v1.6.2 // indirect
20+
gotest.tools/gotestsum v1.6.3 // indirect
2221
)

0 commit comments

Comments
 (0)