Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/gulp
diff options
context:
space:
mode:
Diffstat (limited to 'gulp')
-rw-r--r--gulp/tasks/dev/copy-files.js11
-rw-r--r--gulp/tasks/dev/dev.js2
-rw-r--r--gulp/tasks/dev/javascript.js7
3 files changed, 17 insertions, 3 deletions
diff --git a/gulp/tasks/dev/copy-files.js b/gulp/tasks/dev/copy-files.js
new file mode 100644
index 0000000..01ace1a
--- /dev/null
+++ b/gulp/tasks/dev/copy-files.js
@@ -0,0 +1,11 @@
+var gulp = require('gulp');
+
+gulp.task('copy-player-files', function() {
+ return gulp.src(['node_modules/mediaelement/build/mejs-controls.png','node_modules/mediaelement/build/mejs-controls.svg'])
+ .pipe(gulp.dest('static/img'));
+});
+
+gulp.task('copy-css-files', function() {
+ return gulp.src(['node_modules/mediaelement/build/mediaelementplayer.min.css','node_modules/mediaelement-plugins/dist/speed/speed.min.css'])
+ .pipe(gulp.dest('static/css'));
+}); \ No newline at end of file
diff --git a/gulp/tasks/dev/dev.js b/gulp/tasks/dev/dev.js
index abae545..41f2b18 100644
--- a/gulp/tasks/dev/dev.js
+++ b/gulp/tasks/dev/dev.js
@@ -6,4 +6,4 @@ var hub = new HubRegistry(['tasks/dev/*.js']);
// tell gulp to use the tasks just loaded
gulp.registry(hub);
-gulp.task('dev', gulp.series('js-concat', 'sass'))
+gulp.task('dev', gulp.series('js-concat', 'sass', 'copy-player-files','copy-css-files'))
diff --git a/gulp/tasks/dev/javascript.js b/gulp/tasks/dev/javascript.js
index 28389d0..0458d6b 100644
--- a/gulp/tasks/dev/javascript.js
+++ b/gulp/tasks/dev/javascript.js
@@ -7,9 +7,12 @@ var gulp = require('gulp'),
var scripts = [
'node_modules/jquery/dist/jquery.js',
'node_modules/bootstrap/dist/js/bootstrap.js',
- 'static/components/audiojs/audiojs.js',
'node_modules/jssocials/dist/jssocials.js',
- 'static/js/castanet.js'
+ 'static/js/castanet.js',
+ 'node_modules/mediaelement/build/mediaelement-and-player.js',
+ 'node_modules/mediaelement-plugins/dist//speed/speed.js',
+ 'node_modules/mediaelement-plugins/dist//speed/speed-i18n.js'
+
]
gulp.task('js-concat', function(){