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']);