Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Added gulp for building tasks - Fix zhukov#41
Browse files Browse the repository at this point in the history
  • Loading branch information
tehsis committed Mar 9, 2014
1 parent 15ffd83 commit d356b6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
dist
package_dist
webogram*.zip
*.sublime-workspace
app/js/partials.js
*.sublime-workspace
8 changes: 5 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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');
});

0 comments on commit d356b6f

Please sign in to comment.