mirror of
https://github.com/jellyfin/jellyfin-tizen.git
synced 2024-11-22 21:39:41 +00:00
Fix build
This commit is contained in:
parent
7c4f117b96
commit
6332bc1755
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
*.wgt
|
||||
www
|
||||
.*
|
||||
node_modules
|
||||
|
@ -28,14 +28,12 @@ If any changes are made to `jellyfin-web/`, the `www/` directory will need to be
|
||||
JELLYFIN_WEB_DIR=../jellyfin-web/src npx gulp
|
||||
```
|
||||
|
||||
> If `NODE_ENV=development` is set in the environment, then the source files will be copied without being minified.
|
||||
|
||||
> The `JELLYFIN_WEB_DIR` environment variable can be used to override the location of `jellyfin-web`.
|
||||
|
||||
### Build WGT
|
||||
|
||||
```sh
|
||||
tizen build-web -e ".*" -e gulpfile.js
|
||||
tizen build-web -e ".*" -e gulpfile.js -e README.md -e "node_modules/*" -e "package*.json" -e "yarn.lock"
|
||||
tizen package -t wgt -o . -- .buildResult
|
||||
```
|
||||
|
||||
|
22
gulpfile.js
22
gulpfile.js
@ -2,31 +2,13 @@ var gulp = require('gulp');
|
||||
var gulpif = require('gulp-if');
|
||||
var del = require('del');
|
||||
var dom = require('gulp-dom');
|
||||
var uglifyes = require('uglify-es');
|
||||
var composer = require('gulp-uglify/composer');
|
||||
var uglify = composer(uglifyes, console);
|
||||
var path = require('path');
|
||||
|
||||
// Check the NODE_ENV environment variable
|
||||
var isDev = process.env.NODE_ENV === 'development';
|
||||
// Allow overriding of jellyfin-web directory
|
||||
var WEB_DIR = process.env.JELLYFIN_WEB_DIR || 'node_modules/jellyfin-web/dist';
|
||||
WEB_DIR = path.resolve(WEB_DIR);
|
||||
console.info('Using jellyfin-web from', WEB_DIR);
|
||||
|
||||
// Skip minification for development builds or minified files
|
||||
var compress = !isDev && [
|
||||
'**/*',
|
||||
'!**/*min.*',
|
||||
'!**/*hls.js',
|
||||
// Temporarily exclude apiclient until updated
|
||||
'!bower_components/emby-apiclient/**/*.js'
|
||||
];
|
||||
|
||||
var uglifyOptions = {
|
||||
compress: {
|
||||
drop_console: true
|
||||
}
|
||||
};
|
||||
|
||||
var paths = {
|
||||
assets: {
|
||||
src: [
|
||||
|
18
package.json
Normal file
18
package.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "jellyfin-tizen",
|
||||
"version": "0.1.0",
|
||||
"description": "Jellyfin for Samsung Smart TV (Tizen)",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/dmitrylyzo/jellyfin-tizen.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "gulp"
|
||||
},
|
||||
"dependencies": {
|
||||
"del": "^5.1.0",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-dom": "^1.0.0",
|
||||
"gulp-if": "^3.0.0"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user