.htaccess
Closed this issue · 2 comments
xorgxx commented
Hi i use gulp-tar in my symfony projet. all work! but i have one small probleme :
when i start my commande :
gulp.task('App-symfonyTar', function() {
gulp.src([
'./app/**/*',
'./src/**/*',
'./bin/**/*',
'./vendor/**/*',
'./web/**/*',
'./var/**/*',
'!./web/app_dev.php',
'!./web/config.php',
'!./web/bundles/**/*',
'!./var/cache/dev/**/*',
'!./var/cache/prod/**/*',
'!./var/logs/*.log',
'!./**/docs/**/*',
'!./**/doc/**/*',
'!./**/Tests/**/*',
'!./**/tests/**/*',
'!./**/test/**/*',
'!./**/.quarantine',
'!./**/.tmb',
],{base:'.'})
.pipe(tar('App.tar', {mode: null}))
.pipe(gzip())
.pipe(gulp.dest('.'))
.pipe (size());
});
it put all in .tar Excepte all the .Htaccess
how i can include in my .tar ?
gulp-tar ver. 1.8
thank
sindresorhus commented
That is a general gulp question and is better asked on Stack Overflow.
xorgxx commented
Thank very beaucoup!!
the solution was :
gulp.task('App-symfony-Tar', function() {
gulp.src([
'./app/**/*',
'./src/**/*',
'./bin/**/*',
'./vendor/**/*',
'./web/**/*',
'./var/**/*',
'.htaccess',
'!./web/app_dev.php',
'!./web/config.php',
'!./web/bundles/**/*',
'!./var/cache/dev/**/*',
'!./var/cache/prod/**/*',
'!./var/logs/*.log',
'!./**/docs/**/*',
'!./**/doc/**/*',
'!./**/Tests/**/*',
'!./**/tests/**/*',
'!./**/test/**/*',
'!./**/.quarantine',
'!./**/.tmb',
],{
base:'.',
dot: true <----------------------- here this to add !!!
})
.pipe(tar('App.tar', {mode: null}))
.pipe(gzip())
.pipe(gulp.dest('.'))
.pipe (size());
});