Remove git folders from build files

This commit is contained in:
Alex Tselegidis 2024-01-31 09:50:52 +01:00
parent 5cb7dcbdbf
commit a4d04d9763

View file

@ -68,6 +68,7 @@ function archive(done) {
del.sync('**/.DS_Store');
fs.removeSync('build/composer.lock');
del.sync('**/.DS_Store');
del.sync('**/.git');
zip('build', {saveTo: filename}, function (error) {
if (error) {
@ -118,29 +119,27 @@ function vendor(done) {
// bootstrap
gulp.src([
'node_modules/bootstrap/dist/js/bootstrap.min.js',
'node_modules/bootstrap/dist/css/bootstrap.min.css'
'node_modules/bootstrap/dist/css/bootstrap.min.css',
]).pipe(gulp.dest('assets/vendor/bootstrap'));
// @fortawesome-fontawesome-free
gulp.src([
'node_modules/@fortawesome/fontawesome-free/js/fontawesome.min.js',
'node_modules/@fortawesome/fontawesome-free/js/solid.min.js'
'node_modules/@fortawesome/fontawesome-free/js/solid.min.js',
]).pipe(gulp.dest('assets/vendor/@fortawesome-fontawesome-free'));
// cookieconsent
gulp.src([
'node_modules/cookieconsent/build/cookieconsent.min.js',
'node_modules/cookieconsent/build/cookieconsent.min.css'
'node_modules/cookieconsent/build/cookieconsent.min.css',
]).pipe(gulp.dest('assets/vendor/cookieconsent'));
// fullcalendar
gulp.src(['node_modules/fullcalendar/index.global.min.js']).pipe(
gulp.dest('assets/vendor/fullcalendar')
);
gulp.src(['node_modules/fullcalendar/index.global.min.js']).pipe(gulp.dest('assets/vendor/fullcalendar'));
// fullcalendar-moment
gulp.src(['node_modules/@fullcalendar/moment/index.global.min.js']).pipe(
gulp.dest('assets/vendor/fullcalendar-moment')
gulp.dest('assets/vendor/fullcalendar-moment'),
);
// jquery
@ -148,7 +147,7 @@ function vendor(done) {
// jquery-jeditable
gulp.src(['node_modules/jquery-jeditable/dist/jquery.jeditable.min.js']).pipe(
gulp.dest('assets/vendor/jquery-jeditable')
gulp.dest('assets/vendor/jquery-jeditable'),
);
// moment
@ -156,7 +155,7 @@ function vendor(done) {
// moment-timezone
gulp.src(['node_modules/moment-timezone/builds/moment-timezone-with-data.min.js']).pipe(
gulp.dest('assets/vendor/moment-timezone')
gulp.dest('assets/vendor/moment-timezone'),
);
// @popperjs-core
@ -164,7 +163,7 @@ function vendor(done) {
// select2
gulp.src(['node_modules/select2/dist/js/select2.min.js', 'node_modules/select2/dist/css/select2.min.css']).pipe(
gulp.dest('assets/vendor/select2')
gulp.dest('assets/vendor/select2'),
);
// tippy.js
@ -172,14 +171,14 @@ function vendor(done) {
// trumbowyg
gulp.src(['node_modules/trumbowyg/dist/trumbowyg.min.js', 'node_modules/trumbowyg/dist/ui/trumbowyg.min.css']).pipe(
gulp.dest('assets/vendor/trumbowyg')
gulp.dest('assets/vendor/trumbowyg'),
);
gulp.src(['node_modules/trumbowyg/dist/ui/icons.svg']).pipe(gulp.dest('assets/vendor/trumbowyg/ui'));
// flatpickr
gulp.src(['node_modules/flatpickr/dist/flatpickr.min.js', 'node_modules/flatpickr/dist/flatpickr.min.css']).pipe(
gulp.dest('assets/vendor/flatpickr')
gulp.dest('assets/vendor/flatpickr'),
);
gulp.src(['node_modules/flatpickr/dist/themes/material_green.css'])