Skip to content

Commit b980f9a

Browse files
committed
[refactoring] Move ui to root of the repo
1 parent 0eebe82 commit b980f9a

34 files changed

+18
-46
lines changed

.circleci/config.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,16 @@ jobs:
88
- run:
99
name: "Install dependencies"
1010
command: npm install
11-
working_directory: ui
1211
- run:
1312
name: "Run tests"
1413
command: npm test
15-
working_directory: ui
1614
- run:
1715
name: "Build"
1816
command: npm run build
19-
working_directory: ui
2017
- persist_to_workspace:
2118
root: .
2219
paths:
23-
- ui/dist/*
20+
- dist/*
2421

2522
backend:
2623
docker:

.gitignore

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.DS_Store
2+
node_modules
3+
/dist
24

35
# Editor directories and files
46
.idea
@@ -9,5 +11,14 @@
911
*.sln
1012
*.sw*
1113

12-
# ignore binary produced by go build
13-
logs
14+
# local env files
15+
.env.local
16+
.env.*.local
17+
18+
# Log files
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*
22+
23+
# app-specific ignores
24+
logs

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ You need to install following dependencies first:
1717
* Go
1818
* NPM
1919

20-
### Compile
20+
### Prepare
2121
```bash
22-
# install dependencies for backend
22+
# download dependencies for backend
2323
go get -v -d ./...
2424

25-
# install dependencies for frontend
25+
# download dependencies for frontend
2626
npm install
2727
```
2828

File renamed without changes.

cmd/ssl-game-controller/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func setupVisionClient() {
4141
}
4242

4343
func setupUi() {
44-
box := packr.NewBox("../../ui/dist")
44+
box := packr.NewBox("../../dist")
4545
http.Handle("/", http.FileServer(box))
4646
if box.Has("index.html") {
4747
log.Printf("UI is available at http://%v", *address)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)