mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
doc: move frontend development setup doc
This commit is contained in:
parent
d742aea633
commit
064fbd7fbe
|
@ -557,13 +557,6 @@ streambook.BindStream(stream)
|
||||||
6. Push your changes to your fork.
|
6. Push your changes to your fork.
|
||||||
7. Send a pull request.
|
7. Send a pull request.
|
||||||
|
|
||||||
### Setup frontend development environment
|
|
||||||
|
|
||||||
```sh
|
|
||||||
cd frontend
|
|
||||||
yarn install
|
|
||||||
```
|
|
||||||
|
|
||||||
### Testing Desktop App
|
### Testing Desktop App
|
||||||
|
|
||||||
for webview
|
for webview
|
||||||
|
|
40
doc/development/frontend.md
Normal file
40
doc/development/frontend.md
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
### Setup frontend development environment
|
||||||
|
|
||||||
|
You will need yarn to install the dependencies:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
npm install -g yarn
|
||||||
|
```
|
||||||
|
|
||||||
|
And you need next.js:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
npm install -g next@11
|
||||||
|
```
|
||||||
|
|
||||||
|
The frontend files are in the `frontend/` directory:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cd frontend
|
||||||
|
```
|
||||||
|
|
||||||
|
Run `yarn install` to install the dependencies:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
yarn install
|
||||||
|
```
|
||||||
|
|
||||||
|
Build and compile the frontend static files:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
yarn export
|
||||||
|
```
|
||||||
|
|
||||||
|
To start development, use:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user