|
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 |
0 commit comments