1
0
Fork 0

Replace npm with yarn to install/run the webui

This commit is contained in:
Tom Moulard 2022-03-03 18:08:07 +01:00 committed by GitHub
parent 25725e9b2f
commit c7b24f4e9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9582 additions and 16663 deletions

View file

@ -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)