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:
parent
f5e2cbc61e
commit
099b2f5d20
17
gulpfile.js
17
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']);
|
||||
|
@ -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"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user