README.md 927 Bytes
Newer Older
fishyds's avatar
fishyds committed
1
# WebUI
Deshui Yu's avatar
Deshui Yu committed
2

3
WebUI is built by using [React](https://reactjs.org/docs/getting-started.html) and [fluentui](https://developer.microsoft.com/en-us/fluentui#/controls/web).
Deshui Yu's avatar
Deshui Yu committed
4
5


6
## Development
Deshui Yu's avatar
Deshui Yu committed
7

8
9
* Please refer the [installation doc](https://github.com/microsoft/nni#installation) to run an experiment.
* WebUI uses [eslint](https://eslint.org/docs/user-guide/getting-started) and [prettier](https://prettier.io/docs/en/index.html) to format code. You could change the eslintrc file like this picture when you are coding.
Deshui Yu's avatar
Deshui Yu committed
10

11
<img src="../../docs/img/webui-img/rules.png" />
Deshui Yu's avatar
Deshui Yu committed
12

13
14
15
16
* Use this command in `webui/ts` directory when you want to see latest website.
    ```bash
    yarn build
    ```
Deshui Yu's avatar
Deshui Yu committed
17

18
## PR
Deshui Yu's avatar
Deshui Yu committed
19

20
* If you need to send the PR, you should change the eslintrc file back and use the command `yarn eslint` to check   style. And `yarn eslint --fix` could fix almost warnings and errors. Also use `yarn stylelint` to confirm `.scss & .css` style.