Skip to content

Commit

Permalink
Get rid of "<anonymous>" gulp tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed May 6, 2018
1 parent 2500a8f commit 99838b4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,20 @@ gulp.task('build', gulp.series(
gulp.parallel('copy', 'node_modules', 'coffee', 'templates')
))

gulp.task('xpi', gulp.series('build', ->
gulp.task('xpi-only', ->
gulp.src("#{DEST}/**/*")
.pipe(zip(XPI, {compress: false}))
.pipe(gulp.dest(DEST))
))
)

gulp.task('xpi', gulp.series('build', 'xpi-only'))

gulp.task('push', gulp.series('xpi', ->
gulp.task('push-only', ->
body = fs.readFileSync(join(DEST, XPI))
request.post({url: 'http://localhost:8888', body})
))
)

gulp.task('push', gulp.series('xpi', 'push-only'))

gulp.task('default', gulp.series('push'))

Expand Down

0 comments on commit 99838b4

Please sign in to comment.