@ -251,7 +251,7 @@ gulp.task('watch', 'Watch for site/theme changes (Default Task)', function(callb
. pipe ( replace ( assetPaths . source , assetPaths . uncompressed ) )
//.pipe(sourcemaps.write('/', settings.sourcemap))
. pipe ( header ( banner , settings . header ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . uncompressed ) )
. pipe ( print ( log . created ) )
. on ( 'end' , function ( ) {
@ -267,7 +267,7 @@ gulp.task('watch', 'Watch for site/theme changes (Default Task)', function(callb
. pipe ( rename ( settings . rename . minCSS ) )
//.pipe(sourcemaps.write('/', settings.sourcemap))
. pipe ( header ( banner , settings . header ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . compressed ) )
. pipe ( print ( log . created ) )
. on ( 'end' , function ( ) {
@ -289,7 +289,7 @@ gulp.task('watch', 'Watch for site/theme changes (Default Task)', function(callb
] , function ( file ) {
// copy assets
gulp . src ( file . path , { base : source . themes } )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . themes ) )
. pipe ( print ( log . created ) )
;
@ -303,13 +303,13 @@ gulp.task('watch', 'Watch for site/theme changes (Default Task)', function(callb
] , function ( file ) {
gulp . src ( file . path )
. pipe ( plumber ( ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . uncompressed ) )
. pipe ( print ( log . created ) )
. pipe ( sourcemaps . init ( ) )
. pipe ( uglify ( settings . uglify ) )
. pipe ( rename ( settings . rename . minJS ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . compressed ) )
. pipe ( print ( log . created ) )
. on ( 'end' , function ( ) {
@ -343,7 +343,7 @@ gulp.task('build', 'Builds all files from source', function(callback) {
// copy assets
gulp . src ( source . themes + '**/assets/**' )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . themes ) )
;
@ -352,14 +352,14 @@ gulp.task('build', 'Builds all files from source', function(callback) {
gulp . src ( source . definitions + '**/' + componentGlob + '.js' )
. pipe ( plumber ( ) )
. pipe ( flatten ( ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . uncompressed ) )
. pipe ( print ( log . created ) )
// .pipe(sourcemaps.init())
. pipe ( uglify ( settings . uglify ) )
. pipe ( rename ( settings . rename . minJS ) )
. pipe ( header ( banner , settings . header ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . compressed ) )
. pipe ( print ( log . created ) )
. on ( 'end' , function ( ) {
@ -390,7 +390,7 @@ gulp.task('build', 'Builds all files from source', function(callback) {
. pipe ( replace ( assetPaths . source , assetPaths . uncompressed ) )
//.pipe(sourcemaps.write('/', settings.sourcemap))
. pipe ( header ( banner , settings . header ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . uncompressed ) )
. pipe ( print ( log . created ) )
. on ( 'end' , function ( ) {
@ -406,7 +406,7 @@ gulp.task('build', 'Builds all files from source', function(callback) {
. pipe ( rename ( settings . rename . minCSS ) )
//.pipe(sourcemaps.write('/', settings.sourcemap))
. pipe ( header ( banner , settings . header ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . compressed ) )
. pipe ( print ( log . created ) )
. on ( 'end' , function ( ) {
@ -435,7 +435,7 @@ gulp.task('package uncompressed css', false, function() {
. pipe ( plumber ( ) )
. pipe ( replace ( assetPaths . uncompressed , assetPaths . packaged ) )
. pipe ( concatCSS ( 'semantic.css' ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . packaged ) )
. pipe ( print ( log . created ) )
;
@ -448,7 +448,7 @@ gulp.task('package compressed css', false, function() {
. pipe ( concatCSS ( 'semantic.min.css' ) )
. pipe ( minifyCSS ( settings . minify ) )
. pipe ( header ( banner , settings . header ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . packaged ) )
. pipe ( print ( log . created ) )
;
@ -460,7 +460,7 @@ gulp.task('package uncompressed js', false, function() {
. pipe ( replace ( assetPaths . uncompressed , assetPaths . packaged ) )
. pipe ( concat ( 'semantic.js' ) )
. pipe ( header ( banner , settings . header ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . packaged ) )
. pipe ( print ( log . created ) )
;
@ -473,7 +473,7 @@ gulp.task('package compressed js', false, function() {
. pipe ( concat ( 'semantic.min.js' ) )
. pipe ( uglify ( settings . uglify ) )
. pipe ( header ( banner , settings . header ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . packaged ) )
. pipe ( print ( log . created ) )
;
@ -548,7 +548,7 @@ gulp.task('install', 'Set-up project for first time', function () {
gulp . src ( config . files . site )
. pipe ( plumber ( ) )
. pipe ( replace ( siteVariable , sitePathReplace ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( config . folders . theme ) )
;
}
@ -558,7 +558,7 @@ gulp.task('install', 'Set-up project for first time', function () {
. pipe ( plumber ( ) )
. pipe ( rename ( { extname : '' } ) )
. pipe ( replace ( siteVariable , sitePathReplace ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( config . folders . theme ) )
;
}
@ -597,7 +597,7 @@ gulp.task('install', 'Set-up project for first time', function () {
. pipe ( plumber ( ) )
. pipe ( rename ( settings . rename . json ) ) // preserve file extension
. pipe ( jeditor ( json ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( './' ) )
;
}
@ -607,7 +607,7 @@ gulp.task('install', 'Set-up project for first time', function () {
. pipe ( plumber ( ) )
. pipe ( rename ( { extname : '' } ) ) // remove .template from ext
. pipe ( jeditor ( json ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( './' ) )
;
}
@ -649,7 +649,7 @@ gulp.task('serve-docs', false, function () {
] , function ( file ) {
console . clear ( ) ;
return gulp . src ( file . path , { base : 'src/' } )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . less ) )
. pipe ( print ( log . created ) )
;
@ -669,7 +669,7 @@ gulp.task('build-docs', false, function () {
// copy source
gulp . src ( 'src/**/*.*' )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( output . less ) )
. pipe ( print ( log . created ) )
;
@ -800,7 +800,7 @@ gulp.task('create repos', false, function(callback) {
. pipe ( plumber ( ) )
. pipe ( flatten ( ) )
. pipe ( replace ( release . paths . source , release . paths . output ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( outputDirectory ) )
;
} ) ;
@ -816,7 +816,7 @@ gulp.task('create repos', false, function(callback) {
. pipe ( replace ( regExp . match . settingsReference , regExp . replace . settingsReference ) )
. pipe ( replace ( regExp . match . jQuery , regExp . replace . jQuery ) )
. pipe ( rename ( 'index.js' ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( outputDirectory ) )
;
} ) ;
@ -828,7 +828,7 @@ gulp.task('create repos', false, function(callback) {
. pipe ( flatten ( ) )
. pipe ( replace ( regExp . match . name , regExp . replace . name ) )
. pipe ( replace ( regExp . match . titleName , regExp . replace . titleName ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( outputDirectory ) )
;
} ) ;
@ -864,7 +864,7 @@ gulp.task('create repos', false, function(callback) {
}
return bower ;
} ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( outputDirectory ) )
;
} ) ;
@ -893,7 +893,7 @@ gulp.task('create repos', false, function(callback) {
} ;
return package ;
} ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( outputDirectory ) )
;
} ) ;
@ -917,7 +917,7 @@ gulp.task('create repos', false, function(callback) {
composer . description = 'Single component release of ' + component ;
return composer ;
} ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( outputDirectory ) )
;
} ) ;
@ -933,7 +933,7 @@ gulp.task('create repos', false, function(callback) {
. pipe ( replace ( regExp . match . spacedVersions , regExp . replace . spacedVersions ) )
. pipe ( replace ( regExp . match . spacedLists , regExp . replace . spacedLists ) )
. pipe ( replace ( regExp . match . trim , regExp . replace . trim ) )
. pipe ( chmod ( 644 ) )
. pipe ( chmod ( config . permission ) )
. pipe ( gulp . dest ( outputDirectory ) )
;
} ) ;