const SOURCE_DIR = 'source/'; // main directory source
const SOURCE_PAGES = [SOURCE_DIR + 'pages/', SOURCE_DIR + 'blocks/**/*'];
const SOURCE_ASSTES = SOURCE_DIR + 'asstes/';
const SOURCE_ASSETS_CATALOG = [SOURCE_ASSTES + 'libaray/', SOURCE_ASSTES + 'root/'];
const SOURCE_SCRIPTS = [SOURCE_PAGES[1], SOURCE_DIR + 'scripts/'];
const PUBLIC_DIR = 'public/';
const PUBLIC_CSS = PUBLIC_DIR + 'css/';
const PUBLIC_LIBS = PUBLIC_DIR + 'libs/';
const PUBLIC_JS = PUBLIC_DIR + 'js/';
var pathsLibrary = {
libcss : {
cssname : 'libcss',
libaray : [SOURCE_ASSETS_CATALOG[0] + 'normalize-css/normalize',
SOURCE_ASSETS_CATALOG[0] + 'magnific-popup/dist/magnific-popup',
SOURCE_ASSETS_CATALOG[0] + 'bootstrap/bootstrap-grid-3.3.1.min',
//SOURCE_ASSETS_CATALOG[0] + 'font-awesome-4.2.0/css/font-awesome.min',
//SOURCE_ASSETS_CATALOG[0] + 'fancybox/jquery.fancybox',
//SOURCE_ASSETS_CATALOG[0] + 'owl-carousel/owl.carousel',
//SOURCE_ASSETS_CATALOG[0] + 'countdown/jquery.countdown',
],
pay_css : PUBLIC_LIBS + ''
},
libjs : {
usname : 'common',
jsname : 'libsJs',
iename : 'libsIe',
libUser : [SOURCE_SCRIPTS[0] + '**/*.js', SOURCE_SCRIPTS[1]],
libaray : [SOURCE_ASSETS_CATALOG[0] + 'jquery/jquery-1.11.2.min',
//SOURCE_ASSETS_CATALOG[0] + 'magnific-popup/dist/jquery.magnific-popup.min',
//SOURCE_ASSETS_CATALOG[0] + 'jquery-mousewheel/jquery.mousewheel.min',
//SOURCE_ASSETS_CATALOG[0] + 'fancybox/jquery.fancybox.pack',
//SOURCE_ASSETS_CATALOG[0] + 'waypoints/waypoints-1.6.2.min',
//SOURCE_ASSETS_CATALOG[0] + 'scrollto/jquery.scrollTo.min',
//SOURCE_ASSETS_CATALOG[0] + 'owl-carousel/owl.carousel.min',
//SOURCE_ASSETS_CATALOG[0] + 'countdown/jquery.plugin',
//SOURCE_ASSETS_CATALOG[0] + 'countdown/jquery.countdown.min',
//SOURCE_ASSETS_CATALOG[0] + 'countdown/jquery.countdown-ru',
//SOURCE_ASSETS_CATALOG[0] + 'landing-nav/navigation',
//SOURCE_ASSETS_CATALOG[0] + 'bootstrap-toolkit/bootstrap-toolkit.min',
//SOURCE_ASSETS_CATALOG[0] + 'maskedinput/jquery.maskedinput.min',
//SOURCE_ASSETS_CATALOG[0] + 'equalheight/jquery.equalheight',
//SOURCE_ASSETS_CATALOG[0] + 'stellar/jquery.stellar.min',
], // There is prefix .js
libIe : [
SOURCE_ASSETS_CATALOG[0] + 'html5shiv/es5-shim.min',
SOURCE_ASSETS_CATALOG[0] + 'html5shiv/html5shiv.min',
SOURCE_ASSETS_CATALOG[0] + 'html5shiv/html5shiv-printshiv.min',
SOURCE_ASSETS_CATALOG[0] + 'respond/respond.min',
],
pay_js : PUBLIC_LIBS + '',
pay_us : PUBLIC_JS + ''
}
};
gulp.task('libCss:build', function(done) {
var res_css_arr = '';
var res_css_cou = pathsLibrary.libcss.libaray.length;
for(var css_i = 0; res_css_cou > css_i; css_i++) { res_css_arr += '\'' + pathsLibrary.libcss.libaray[css_i] + '.css\',' }
res_css_arr = res_css_arr.split(',', res_css_cou);
return gulp.src(res_css_arr)
.pipe(concat(pathsLibrary.libcss.cssname + '.min.css'))
.pipe(csso())
.pipe(gulp.dest(pathsLibrary.libcss.pay_css));
done();
});
[ C:/Users/Admin/screen/ 'source/asstes/libaray/normalize-css/normalize.css', ]