mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
add configuration options for embedBundle, fix frontend dependencies build issues
This commit is contained in:
@@ -219,3 +219,13 @@ crossdomain:
|
|||||||
domain: 'foo.example.com'
|
domain: 'foo.example.com'
|
||||||
secure: 'false'
|
secure: 'false'
|
||||||
headers: 'Authorization,X-Foo*'
|
headers: 'Authorization,X-Foo*'
|
||||||
|
embed_bundle:
|
||||||
|
video_player: 'videojs'
|
||||||
|
video_autoplay: false
|
||||||
|
video_available_speeds:
|
||||||
|
- 0.5
|
||||||
|
- 1
|
||||||
|
- 1.5
|
||||||
|
- 2
|
||||||
|
audio_player: 'videojs'
|
||||||
|
audio_autoplay: false
|
@@ -29,6 +29,7 @@ gulp.task('build-vendors', [
|
|||||||
'build-alchemy-embed',
|
'build-alchemy-embed',
|
||||||
'build-bootstrap',
|
'build-bootstrap',
|
||||||
'build-colorpicker',
|
'build-colorpicker',
|
||||||
|
'build-html5shiv',
|
||||||
'build-jquery',
|
'build-jquery',
|
||||||
'build-jquery-ui', // will build themes too
|
'build-jquery-ui', // will build themes too
|
||||||
'build-jquery-mobile',
|
'build-jquery-mobile',
|
||||||
|
@@ -1,14 +1,21 @@
|
|||||||
var gulp = require('gulp');
|
var gulp = require('gulp');
|
||||||
var config = require('../../config.js');
|
var config = require('../../config.js');
|
||||||
var utils = require('../../utils.js');
|
var utils = require('../../utils.js');
|
||||||
|
var debugMode = false;
|
||||||
|
|
||||||
gulp.task('copy-alchemy-embed', function(){
|
gulp.task('copy-alchemy-embed', function(){
|
||||||
// copy all dist folder:
|
// copy all dist folder:
|
||||||
|
if( debugMode === true) {
|
||||||
|
return gulp.src('vendor/alchemy/embed-bundle/dist/**/*')
|
||||||
|
.pipe(gulp.dest( config.paths.build + 'vendors/alchemy-embed-medias'));
|
||||||
|
}
|
||||||
return gulp.src(config.paths.vendors + 'alchemy-embed-medias/dist/**/*')
|
return gulp.src(config.paths.vendors + 'alchemy-embed-medias/dist/**/*')
|
||||||
.pipe(gulp.dest( config.paths.build + 'vendors/alchemy-embed-medias'));
|
.pipe(gulp.dest( config.paths.build + 'vendors/alchemy-embed-medias'));
|
||||||
});
|
});
|
||||||
gulp.task('watch-alchemy-embed-js', function() {
|
gulp.task('watch-alchemy-embed-js', function() {
|
||||||
debugMode = true;
|
debugMode = true;
|
||||||
return gulp.watch(config.paths.vendors + 'alchemy-embed-medias/dist/**/*', ['copy-alchemy-embed']);
|
// in dev mode, watch composer's vendor path:
|
||||||
|
return gulp.watch('vendor/alchemy/embed-bundle/dist/**/*', ['copy-alchemy-embed']);
|
||||||
});
|
});
|
||||||
gulp.task('build-alchemy-embed', function(){
|
gulp.task('build-alchemy-embed', function(){
|
||||||
gulp.start('copy-alchemy-embed');
|
gulp.start('copy-alchemy-embed');
|
||||||
|
9
resources/gulp/components/vendors/html5shiv.js
vendored
Normal file
9
resources/gulp/components/vendors/html5shiv.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
var gulp = require('gulp');
|
||||||
|
var config = require('../../config.js');
|
||||||
|
var utils = require('../../utils.js');
|
||||||
|
|
||||||
|
gulp.task('build-html5shiv', function(){
|
||||||
|
return utils.buildJsGroup([
|
||||||
|
config.paths.vendors + 'html5shiv/dist/html5shiv.js'
|
||||||
|
], 'html5shiv', 'vendors/html5shiv');
|
||||||
|
});
|
Reference in New Issue
Block a user