12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- const gulp = require('gulp'),
- concat = require("gulp-concat"),
- rename = require("gulp-rename");
- cleanCSS = require('gulp-clean-css');
- gulp.task('copy', async function() {
- gulp.src('./node_modules/bootstrap/dist/js/bootstrap.js')
- .pipe(rename('v3-bootstrap.js'))
- .pipe(gulp.dest('./js/'));
- gulp.src('./node_modules/bootstrap/dist/css/bootstrap.css')
- .pipe(rename('v3-bootstrap.css'))
- .pipe(gulp.dest('./css/'));
- gulp.src('./node_modules/jquery/dist/jquery.min.js')
- .pipe(rename('v3-jquery.js'))
- .pipe(gulp.dest('./js/'));
- gulp.src('./node_modules/jasny-bootstrap/dist/js/jasny-bootstrap.min.js')
- .pipe(rename('v3-jasny-bootstrap.js'))
- .pipe(gulp.dest('./js/'));
- gulp.src('./node_modules/jasny-bootstrap/dist/css/jasny-bootstrap.css')
- .pipe(rename('v3-jasny-bootstrap.css'))
- .pipe(gulp.dest('./css/'));
- gulp.src('./node_modules/animate.css/animate.css')
- .pipe(rename('v3-animate.css'))
- .pipe(gulp.dest('./css/'));
- gulp.src('./node_modules/svg-morpheus/compile/minified/svg-morpheus.js')
- .pipe(rename('v3-svg-morpheus.js'))
- .pipe(gulp.dest('./js/'));
- gulp.src('./node_modules/@fullcalendar/core/main.js')
- .pipe(rename('fullcalendar.js'))
- .pipe(gulp.dest('./js/'));
- gulp.src('./node_modules/@fullcalendar/core/main.css')
- .pipe(rename('v3-fullcalendar.css'))
- .pipe(gulp.dest('./css/'));
- gulp.src('./node_modules/@fullcalendar/google-calendar/main.js')
- .pipe(rename('v3-fullcalendar-google.js'))
- .pipe(gulp.dest('./js/'));
- gulp.src('./node_modules/@fullcalendar/daygrid/main.js')
- .pipe(rename('v3-fullcalendar-daygrid.js'))
- .pipe(gulp.dest('./js/'));
- gulp.src('./node_modules/@fullcalendar/daygrid/main.css')
- .pipe(rename('v3-fullcalendar-daygrid.css'))
- .pipe(gulp.dest('./css/'));
- console.log("files 📄 from npm pkgs ");
- });
- gulp.task('css', async function() {
- gulp.src(['css/fonts.css', 'css/v3-fullcalendar.css', 'css/v3-fullcalendar-daygrid.css', 'css/v3-bootstrap.css', 'css/v3-animate.css', 'style.css'])
- .pipe(concat('v3-style.css'))
- .pipe(cleanCSS({level: {1: {specialComments: 0}}}))
- .pipe(rename('v3-style.min.css'))
- .pipe(gulp.dest('./'));
- gulp.src('css/front-page.css')
- .pipe(cleanCSS({level: {1: {specialComments: 0}}}))
- .pipe(rename('v3-front.min.css'))
- .pipe(gulp.dest('./css/'));
- console.log("CSS built 🔧 ");
- });
|