Replace npm with yarn to install/run the webui
This commit is contained in:
parent
25725e9b2f
commit
c7b24f4e9c
7 changed files with 9582 additions and 16663 deletions
|
@ -20,17 +20,17 @@ make clean-webui generate-webui # Generate static contents in `webui/static/` fo
|
|||
|
||||
## How to build (only for frontend developer)
|
||||
|
||||
- prerequisite: [Node 12.11+](https://nodejs.org) [Npm](https://www.npmjs.com/)
|
||||
- prerequisite: [Node 12.11+](https://nodejs.org) [Yarn](https://yarnpkg.com/)
|
||||
|
||||
- Go to the `webui/` directory
|
||||
|
||||
- To install dependencies, execute the following commands:
|
||||
|
||||
- `npm install`
|
||||
- `yarn install`
|
||||
|
||||
- Build static Web UI, execute the following command:
|
||||
|
||||
- `npm run build`
|
||||
- `yarn build`
|
||||
|
||||
- Static contents are built in the `webui/static/` directory
|
||||
|
||||
|
@ -39,7 +39,7 @@ make clean-webui generate-webui # Generate static contents in `webui/static/` fo
|
|||
- The build allows to:
|
||||
- optimize all JavaScript
|
||||
- optimize all CSS
|
||||
- add vendor prefixes to CSS (cross-bowser support)
|
||||
- add vendor prefixes to CSS (cross-browser support)
|
||||
- add a hash in the file names to prevent browser cache problems
|
||||
- optimize all images at build time
|
||||
- bundle JavaScript in one file
|
||||
|
@ -51,12 +51,12 @@ make clean-webui generate-webui # Generate static contents in `webui/static/` fo
|
|||
- Go to the `webui/` directory
|
||||
- Edit files in `webui/src/`
|
||||
- Run in development mode :
|
||||
- `npm run dev`
|
||||
- `yarn dev`
|
||||
|
||||
## Libraries
|
||||
|
||||
- [Node](https://nodejs.org)
|
||||
- [Npm](https://www.npmjs.com/)
|
||||
- [Yarn](https://yarnpkg.com/)
|
||||
- [Webpack](https://github.com/webpack/webpack)
|
||||
- [Vue](https://vuejs.org/)
|
||||
- [Bulma](https://bulma.io)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue