From 902180db12654daf721ac79b2e676ed695c47647 Mon Sep 17 00:00:00 2001 From: Lazar Obradovic Date: Fri, 12 Jan 2018 16:08:44 +0100 Subject: [PATCH] try 2 --- code/gulpfile.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/code/gulpfile.js b/code/gulpfile.js index e78a8942..cfdc18d6 100644 --- a/code/gulpfile.js +++ b/code/gulpfile.js @@ -60,19 +60,22 @@ var toHeader = function(filename) { var data = fs.readFileSync(source); wstream.write('#define ' + safename + '_len ' + data.length + '\n'); - wstream.write('const uint8_t ' + safename + '[] PROGMEM = {') + wstream.write('const uint8_t ' + safename + '[] PROGMEM = {'); - for (i=0; i 0) { issues.forEach(function (issue) { @@ -82,6 +85,7 @@ function htmllintReporter(filepath, issues) { } } + gulp.task('build_certs', function() { toHeader('server.cer'); toHeader('server.key'); @@ -115,6 +119,7 @@ gulp.task('buildfs_inline', function() { })) .pipe(gzip()) .pipe(gulp.dest(dataFolder)); -}) +}); + gulp.task('default', ['buildfs_embeded']);