@ -16,6 +16,7 @@ module.exports = function(gulp) {
concat = require ( 'gulp-concat' ) ,
concatCSS = require ( 'gulp-concat-css' ) ,
clone = require ( 'gulp-clone' ) ,
dedupe = require ( 'gulp-dedupe' ) ,
gulpif = require ( 'gulp-if' ) ,
header = require ( 'gulp-header' ) ,
less = require ( 'gulp-less' ) ,
@ -52,6 +53,7 @@ module.exports = function(gulp) {
gulp . task ( 'package uncompressed css' , function ( ) {
return gulp . src ( output . uncompressed + '/**/' + globs . components + globs . ignored + '.css' )
. pipe ( plumber ( ) )
. pipe ( dedupe ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concatCSS ( filenames . concatenatedCSS ) )
. pipe ( gulpif ( config . hasPermission , chmod ( config . permission ) ) )
@ -64,6 +66,7 @@ module.exports = function(gulp) {
gulp . task ( 'package compressed css' , function ( ) {
return gulp . src ( output . uncompressed + '/**/' + globs . components + globs . ignored + '.css' )
. pipe ( plumber ( ) )
. pipe ( dedupe ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concatCSS ( filenames . concatenatedMinifiedCSS ) )
. pipe ( gulpif ( config . hasPermission , chmod ( config . permission ) ) )
@ -77,6 +80,7 @@ module.exports = function(gulp) {
gulp . task ( 'package uncompressed js' , function ( ) {
return gulp . src ( output . uncompressed + '/**/' + globs . components + globs . ignored + '.js' )
. pipe ( plumber ( ) )
. pipe ( dedupe ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concat ( filenames . concatenatedJS ) )
. pipe ( header ( banner , settings . header ) )
@ -89,6 +93,7 @@ module.exports = function(gulp) {
gulp . task ( 'package compressed js' , function ( ) {
return gulp . src ( output . uncompressed + '/**/' + globs . components + globs . ignored + '.js' )
. pipe ( plumber ( ) )
. pipe ( dedupe ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concat ( filenames . concatenatedMinifiedJS ) )
. pipe ( uglify ( settings . concatUglify ) )
@ -107,6 +112,7 @@ module.exports = function(gulp) {
gulp . task ( 'package uncompressed rtl css' , function ( ) {
return gulp . src ( output . uncompressed + '/**/' + globs . components + globs . ignoredRTL + '.rtl.css' )
. pipe ( dedupe ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concatCSS ( filenames . concatenatedRTLCSS ) )
. pipe ( gulpif ( config . hasPermission , chmod ( config . permission ) ) )
@ -118,6 +124,7 @@ module.exports = function(gulp) {
gulp . task ( 'package compressed rtl css' , function ( ) {
return gulp . src ( output . uncompressed + '/**/' + globs . components + globs . ignoredRTL + '.rtl.css' )
. pipe ( dedupe ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concatCSS ( filenames . concatenatedMinifiedRTLCSS ) )
. pipe ( gulpif ( config . hasPermission , chmod ( config . permission ) ) )
@ -130,6 +137,7 @@ module.exports = function(gulp) {
gulp . task ( 'package uncompressed docs css' , function ( ) {
return gulp . src ( output . uncompressed + '/**/' + globs . components + globs . ignored + '.css' )
. pipe ( dedupe ( ) )
. pipe ( plumber ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concatCSS ( filenames . concatenatedCSS ) )
@ -141,6 +149,7 @@ module.exports = function(gulp) {
gulp . task ( 'package compressed docs css' , function ( ) {
return gulp . src ( output . uncompressed + '/**/' + globs . components + globs . ignored + '.css' )
. pipe ( dedupe ( ) )
. pipe ( plumber ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concatCSS ( filenames . concatenatedMinifiedCSS ) )
@ -164,6 +173,7 @@ module.exports = function(gulp) {
gulp . task ( 'package uncompressed docs css' , function ( ) {
return gulp . src ( docsOutput . uncompressed + '/**/' + globs . components + globs . ignored + '.css' )
. pipe ( dedupe ( ) )
. pipe ( plumber ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concatCSS ( filenames . concatenatedCSS ) )
@ -175,6 +185,7 @@ module.exports = function(gulp) {
gulp . task ( 'package compressed docs css' , function ( ) {
return gulp . src ( docsOutput . uncompressed + '/**/' + globs . components + globs . ignored + '.css' )
. pipe ( dedupe ( ) )
. pipe ( plumber ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concatCSS ( filenames . concatenatedMinifiedCSS ) )
@ -188,6 +199,7 @@ module.exports = function(gulp) {
gulp . task ( 'package uncompressed docs js' , function ( ) {
return gulp . src ( docsOutput . uncompressed + '/**/' + globs . components + globs . ignored + '.js' )
. pipe ( dedupe ( ) )
. pipe ( plumber ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concat ( filenames . concatenatedJS ) )
@ -200,6 +212,7 @@ module.exports = function(gulp) {
gulp . task ( 'package compressed docs js' , function ( ) {
return gulp . src ( docsOutput . uncompressed + '/**/' + globs . components + globs . ignored + '.js' )
. pipe ( dedupe ( ) )
. pipe ( plumber ( ) )
. pipe ( replace ( assets . uncompressed , assets . packaged ) )
. pipe ( concat ( filenames . concatenatedMinifiedJS ) )