From 99838b4f8535a4fd2ba16727ab55639c774ceda6 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sun, 6 May 2018 13:17:04 +0200 Subject: [PATCH] Get rid of "" gulp tasks --- gulpfile.coffee | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gulpfile.coffee b/gulpfile.coffee index 8b76d499..a827df55 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -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'))