1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-16 12:20:09 -07:00

Add image lightbox

This commit is contained in:
David Hübner 2017-04-10 17:00:37 +02:00
parent f5e2cbc61e
commit 099b2f5d20
2 changed files with 15 additions and 3 deletions

View File

@ -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']);

View File

@ -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"
},