Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
Merge branch 'fix_bug_not_creating_zip'
Browse files Browse the repository at this point in the history
  • Loading branch information
t.shotoku committed May 8, 2015
2 parents d17f94d + 5d83e41 commit ff4f4d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@ gulp.task 'copy:manifest', ->
.pipe gulp.dest('dist')

gulp.task 'copy:images', ->
del.sync 'dist/images'
gulp.src 'src/images/*'
.pipe gulp.dest('dist/images')

gulp.task 'copy:vendor', ->
del.sync 'dist/vendor'
gulp.src 'vendor/**/*'
.pipe gulp.dest('dist/vendor')

gulp.task 'haml', ->
del.sync 'dist/html'
gulp.src 'src/haml/*.haml'
.pipe plumber
errorHandler: notify.onError('Error: <%= error.message %>')
Expand Down Expand Up @@ -62,20 +65,15 @@ gulp.task 'coffee:popup', ->
.pipe gulp.dest('dist/javascripts')

gulp.task 'sass', ->
del.sync 'dist/stylesheets'
gulp.src 'src/sass/*.sass'
.pipe plumber
errorHandler: notify.onError("Error: <%= error.message %>")
.pipe sass
indentedSyntax: true
.pipe gulp.dest('dist/stylesheets')

gulp.task 'build', ['clean'], ->
gulp.start 'copy:manifest'
gulp.start 'copy:images'
gulp.start 'copy:vendor'
gulp.start 'haml'
gulp.start 'coffee'
gulp.start 'sass'
gulp.task 'build', ['copy:manifest', 'copy:images', 'copy:vendor', 'haml', 'coffee', 'sass']

gulp.task 'watch', ->
gulp.watch 'src/manifest.json', ['copy:manifest']
Expand Down
2 changes: 1 addition & 1 deletion wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build:
echo "npm version $(npm -v) running"
- script:
name: create dist
code: npm run zip
code: npm run zip && test -e dist-$(npm run app_version --silent).zip
deploy:
steps:
- script:
Expand Down

0 comments on commit ff4f4d9

Please sign in to comment.