Skip to content

Commit

Permalink
prod-ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Niakr1s committed Apr 6, 2021
1 parent 1dec8f1 commit 0a7dae0
Show file tree
Hide file tree
Showing 20 changed files with 293 additions and 884 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
main.exe
main.exe
main
dist
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mkdir -p dist
(cd client && npm run build:prod)
go build -o=dist/main src/main.go
GOOS=windows GOARCH=amd64 go build -o dist/main.exe src/main.go
2 changes: 1 addition & 1 deletion client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/client",
"outputPath": "../src/server/static",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down
1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:prod": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
Expand Down
Binary file modified client/src/favicon.ico
Binary file not shown.
Loading

0 comments on commit 0a7dae0

Please sign in to comment.