mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
Dev Requirements
- edit CONTRIBUTING.md
This commit is contained in:
parent
1d7fb7745a
commit
5c131a2958
@ -20,17 +20,37 @@ bash scripts/install_gradio.sh
|
||||
|
||||
* Navigate to the repo folder and install test requirements
|
||||
|
||||
```bash
|
||||
```
|
||||
bash scripts/install_test_requirements.sh
|
||||
```
|
||||
|
||||
* Install chrome driver and chrome for selenium (necessary for tests)
|
||||
|
||||
```
|
||||
https://sites.google.com/chromium.org/driver/
|
||||
```
|
||||
|
||||
```
|
||||
https://www.google.com/chrome/
|
||||
```
|
||||
|
||||
* Build the front end
|
||||
|
||||
```bash
|
||||
```
|
||||
bash scripts/build_frontend.sh
|
||||
```
|
||||
|
||||
* You can also run `npm run start` to start a local frontend development server (on port 3000 by default) that responds to any changes in the frontend.
|
||||
* Run the tests
|
||||
|
||||
```
|
||||
bash scripts/run_tests.sh
|
||||
```
|
||||
|
||||
* You can also start a local frontend development server (on port 3000 by default) that responds to any changes in the frontend.
|
||||
|
||||
```
|
||||
bash scripts/run_frontend.sh
|
||||
```
|
||||
|
||||
### Structure of the Repository
|
||||
|
||||
|
2
scripts/run_frontend.sh
Normal file
2
scripts/run_frontend.sh
Normal file
@ -0,0 +1,2 @@
|
||||
cd frontend
|
||||
npm start
|
Loading…
x
Reference in New Issue
Block a user