Skip to content

Commit

Permalink
[build] Migrate from NPM to Yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Oct 5, 2019
1 parent fb76685 commit 033d261
Show file tree
Hide file tree
Showing 4 changed files with 8,174 additions and 21,552 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ If you don't want to run the controller in real time, you can change the time ac
### Requirements
You need to install following dependencies first:
* Go >= 1.10
* NPM
* Node
* Yarn

### Prepare
Download and install to [GOPATH](https://github.com/golang/go/wiki/GOPATH):
Expand All @@ -133,7 +134,7 @@ cd $GOPATH/src/github.com/RoboCup-SSL/ssl-game-controller/
```
Download dependencies for frontend
```bash
npm install
yarn install
```

### Run
Expand All @@ -145,15 +146,15 @@ go run cmd/ssl-game-controller/main.go
Run the UI:
```bash
# compile and hot-reload
npm run serve
yarn serve
```
Or use the provided IntelliJ run configurations.

### Build self-contained release binary
First, build the UI resources
```bash
# compile and minify UI
npm run build
yarn build
```
Then build the backend with `packr`
```bash
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
set -e

# UI
npm install
npm run build
yarn install
yarn build

# backend
go get -v -d ./...
Expand Down
Loading

0 comments on commit 033d261

Please sign in to comment.