diff --git a/gulpfile.js b/gulpfile.js index 0822082..ea31b09 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -4,6 +4,7 @@ var gulp = require('gulp'), gulp.task('css', function() { return gulp.src([ 'node_modules/semantic-ui/dist/semantic.css', + 'node_modules/lightbox2/dist/css/lightbox.css', 'app/Resources/assets/style/style.scss', ]) .pipe(plugins.sass().on('error', plugins.sass.logError)) @@ -31,6 +32,7 @@ gulp.task('js', function() { return gulp.src([ 'node_modules/jquery/dist/jquery.js', 'node_modules/semantic-ui/dist/semantic.js', + 'node_modules/lightbox2/dist/js/lightbox.js', 'app/Resources/assets/js/**.js', 'node_modules/three/examples/js/libs/stats.min.js' ]) @@ -38,12 +40,21 @@ gulp.task('js', function() { .pipe(gulp.dest('web/resources/js')); }); -gulp.task('files', function () { - return gulp.src('node_modules/semantic-ui/dist/themes/**') - .pipe(plugins.newer('web/resources/css/themes')) +gulp.task('files:semantic', function () { + return gulp.src( + 'node_modules/semantic-ui/dist/themes/**' + ) .pipe(gulp.dest('web/resources/css/themes')); }); +gulp.task('files:images', function () { + return gulp.src( + 'node_modules/lightbox2/dist/images/**' + ) + .pipe(gulp.dest('web/resources/images')); +}); + + gulp.task('watch', ['js', 'css', 'three'], function () { gulp.watch('app/Resources/assets/js/**.js' , ['js']); gulp.watch('app/Resources/assets/style/**/*.scss' , ['css']); diff --git a/package.json b/package.json index 4f3be88..54b9670 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "gulp-sass": "^2.3.2", "gulp-watch": "^4.3.11", "jquery": "^3.2.1", + "lightbox2": "^2.9.0", "semantic-ui": "^2.2.9", "three": "^0.84.0" },