From d356b6f67d1362d8d9e3f69691da17950fe545ee Mon Sep 17 00:00:00 2001 From: Pablo Terradillos Date: Sun, 9 Mar 2014 18:25:15 -0300 Subject: [PATCH] Added gulp for building tasks - Fix #41 --- .gitignore | 3 ++- gulpfile.js | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 27af7609..7b820477 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ dist package_dist webogram*.zip -*.sublime-workspace \ No newline at end of file +app/js/partials.js +*.sublime-workspace diff --git a/gulpfile.js b/gulpfile.js index c93bdf2e..56493b72 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -18,8 +18,10 @@ gulp.task('templates', function() { gulp.task('copy', function() { return es.concat( - gulp.src(['app/favicon.ico', 'app/favicon_unread.ico', 'app/manifest.webapp', 'app/manifest.json', 'app/**/*worker.js', 'app/img/**/*', '!app/img/screenshot*']) + gulp.src(['app/favicon.ico', 'app/favicon_unread.ico', 'app/manifest.webapp', 'app/manifest.json', 'app/**/*worker.js']) .pipe(gulp.dest('dist')), + gulp.src(['app/img/**/*', '!app/img/screenshot*']) + .pipe(gulp.dest('dist/img')), gulp.src('app/vendor/console-polyfill/console-polyfill.js') .pipe(gulp.dest('dist/vendor/console-polyfill')), gulp.src('app/js/lib/mtproto.js') @@ -78,9 +80,9 @@ gulp.task('compress-dist', function() { }); gulp.task('bump', ['update-version-manifests', 'update-version-settings', 'update-version-comments']); -gulp.task('build', ['clean', 'templates', 'usemin', 'copy']); +gulp.task('build', ['templates', 'usemin', 'copy']); gulp.task('package', ['build', 'compress-dist']); -gulp.task('default', function() { +gulp.task('default', ['clean'], function() { gulp.start('build'); });