Update readme for Gulp build process and fix build

This commit is contained in:
MrTimscampi 2020-02-28 14:48:35 +01:00
parent c54eb7050f
commit 12f42c81dd
2 changed files with 14 additions and 5 deletions

View file

@ -45,6 +45,7 @@ Jellyfin Web is the frontend used for most of the clients available for end user
### Dependencies ### Dependencies
- Yarn - Yarn
- Gulp-cli
### Getting Started ### Getting Started
@ -60,5 +61,14 @@ Jellyfin Web is the frontend used for most of the clients available for end user
3. Run the web client with webpack for local development. 3. Run the web client with webpack for local development.
```sh ```sh
yarn serve gulp serve
``` ```
4. Build the client with sourcemaps.
'''sh
gulp
'''
Or without sourcemaps
'''sh
gulp --production
'''

View file

@ -19,6 +19,7 @@
"file-loader": "^5.0.2", "file-loader": "^5.0.2",
"gulp": "^4.0.2", "gulp": "^4.0.2",
"gulp-babel": "^8.0.0", "gulp-babel": "^8.0.0",
"gulp-cli": "^2.2.0",
"gulp-concat": "^2.6.1", "gulp-concat": "^2.6.1",
"gulp-htmlmin": "^5.0.1", "gulp-htmlmin": "^5.0.1",
"gulp-imagemin": "^7.1.0", "gulp-imagemin": "^7.1.0",
@ -68,10 +69,8 @@
}, },
"babel": { "babel": {
"presets": [ "presets": [
[
"@babel/preset-env" "@babel/preset-env"
] ]
]
}, },
"browserslist": [ "browserslist": [
"last 2 Firefox versions", "last 2 Firefox versions",
@ -93,6 +92,6 @@
"build": "gulp --production", "build": "gulp --production",
"build-dev": "gulp", "build-dev": "gulp",
"lint": "eslint \"src\"", "lint": "eslint \"src\"",
"stylelint": "stylelint \"src/**/*.css\"", "stylelint": "stylelint \"src/**/*.css\""
} }
} }