Skip to content

Commit

Permalink
Include media directory
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Jun 3, 2015
1 parent f657b25 commit 1944e88
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions gulpfile.js
Expand Up @@ -215,30 +215,6 @@ gulp.task('singlepage', function () {
.pipe(gulp.dest('dist'));
});

// --------------------
// Media - Gulp Task
// Creates media dir
// --------------------
gulp.task('media', function(cb) {
var exec = cp.exec,
commands = [
'mkdir -p dist/media/thumbs',
'mkdir -p dist/media/temp',
// to be able to push these empty directories
// we need to create .gitkeep file
'touch dist/media/.gitkeep', // we actually don't need this, just to know.
'touch dist/media/thumbs/.gitkeep',
'touch dist/media/temp/.gitkeep'
];

exec(commands.join(' && '), function(err, stdout, stderr){
if (err !== null) {
console.log('exec error: ', err);
}
cb();
})
});

// --------------------
// Composer - Gulp Task
// --------------------
Expand Down Expand Up @@ -327,7 +303,7 @@ gulp.task('jscs', function() {
// Build - Gulp Task
// Run all the tasks
// ------------------- 'composer',
gulp.task('build', ['scripts', 'templates', 'singlepage', 'styles', 'fonts', 'images', 'media', 'move']);
gulp.task('build', ['scripts', 'templates', 'singlepage', 'styles', 'fonts', 'images', 'move']);

// Default task
gulp.task('default', ['watch', 'build']);
Empty file added media/.gitkeep
Empty file.
Empty file added media/temp/.gitkeep
Empty file.
Empty file added media/thumbs/.gitkeep
Empty file.

0 comments on commit 1944e88

Please sign in to comment.