Skip to content

Commit

Permalink
[refactoring] Move ui to root of the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Aug 15, 2018
1 parent 0eebe82 commit b980f9a
Show file tree
Hide file tree
Showing 34 changed files with 18 additions and 46 deletions.
5 changes: 1 addition & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,16 @@ jobs:
- run:
name: "Install dependencies"
command: npm install
working_directory: ui
- run:
name: "Run tests"
command: npm test
working_directory: ui
- run:
name: "Build"
command: npm run build
working_directory: ui
- persist_to_workspace:
root: .
paths:
- ui/dist/*
- dist/*

backend:
docker:
Expand Down
15 changes: 13 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.DS_Store
node_modules
/dist

# Editor directories and files
.idea
Expand All @@ -9,5 +11,14 @@
*.sln
*.sw*

# ignore binary produced by go build
logs
# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# app-specific ignores
logs
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ You need to install following dependencies first:
* Go
* NPM

### Compile
### Prepare
```bash
# install dependencies for backend
# download dependencies for backend
go get -v -d ./...

# install dependencies for frontend
# download dependencies for frontend
npm install
```

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion cmd/ssl-game-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func setupVisionClient() {
}

func setupUi() {
box := packr.NewBox("../../ui/dist")
box := packr.NewBox("../../dist")
http.Handle("/", http.FileServer(box))
if box.Has("index.html") {
log.Printf("UI is available at http://%v", *address)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions ui/.gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions ui/README.md

This file was deleted.

0 comments on commit b980f9a

Please sign in to comment.