mirror of
https://github.com/flextype/flextype.git
synced 2025-08-12 08:04:05 +02:00
- updating gulpfile js
This commit is contained in:
@@ -23,7 +23,7 @@ function moveAnimateCss() {
|
||||
.pipe(dest('assets/dist/css/tmp'));
|
||||
}
|
||||
|
||||
function moveSimpleLightbox() {
|
||||
function moveSimpleLightboxCss() {
|
||||
return src('node_modules/simplelightbox/dist/simplelightbox.min.css')
|
||||
.pipe(concat('3.min.css'))
|
||||
.pipe(dest('assets/dist/css/tmp'));
|
||||
@@ -36,6 +36,24 @@ function buldDefaultCss() {
|
||||
.pipe(dest('assets/dist/css/tmp'));
|
||||
}
|
||||
|
||||
function moveJqueryJs() {
|
||||
return src('node_modules/jquery/dist/jquery.min.js')
|
||||
.pipe(concat('1.min.js'))
|
||||
.pipe(dest('assets/dist/js/tmp'));
|
||||
}
|
||||
|
||||
function moveBootstrapJs() {
|
||||
return src('node_modules/bootstrap/dist/js/bootstrap.min.js')
|
||||
.pipe(concat('2.min.js'))
|
||||
.pipe(dest('assets/dist/js/tmp'));
|
||||
}
|
||||
|
||||
function moveSimpleLightboxJs() {
|
||||
return src('node_modules/simplelightbox/dist/simple-lightbox.min.js')
|
||||
.pipe(concat('3.min.js'))
|
||||
.pipe(dest('assets/dist/js/tmp'));
|
||||
}
|
||||
|
||||
function mergeCss() {
|
||||
return src('assets/dist/css/tmp/**')
|
||||
.pipe(autoprefixer({
|
||||
@@ -49,8 +67,28 @@ function mergeCss() {
|
||||
.pipe(dest('assets/dist/css/'));
|
||||
}
|
||||
|
||||
function cleanTmp() {
|
||||
function mergeJs() {
|
||||
return src('assets/dist/js/tmp/**')
|
||||
.pipe(concat('build.min.js'))
|
||||
.pipe(dest('assets/dist/js/'));
|
||||
}
|
||||
|
||||
function cleanTmpCss() {
|
||||
return del('assets/dist/css/tmp/');
|
||||
}
|
||||
|
||||
exports.default = series(moveBootstrapCss, moveAnimateCss, moveSimpleLightbox, buldDefaultCss, mergeCss, cleanTmp);
|
||||
function cleanTmpJs() {
|
||||
return del('assets/dist/js/tmp/');
|
||||
}
|
||||
|
||||
exports.default = series(moveBootstrapCss,
|
||||
moveAnimateCss,
|
||||
moveSimpleLightboxCss,
|
||||
buldDefaultCss,
|
||||
mergeCss,
|
||||
cleanTmpCss,
|
||||
moveJqueryJs,
|
||||
moveBootstrapJs,
|
||||
moveSimpleLightboxJs,
|
||||
mergeJs,
|
||||
cleanTmpJs);
|
||||
|
Reference in New Issue
Block a user