From 2ae69fe79928e51ff882b4a0fd5e620b7511058a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Wed, 28 Dec 2016 09:18:01 +0100 Subject: [PATCH] Arduino IDE compatibility (#18) - Moved data folder under espurna folder --- code/{ => espurna}/data/favicon.ico | Bin code/{ => espurna}/data/fsversion | 0 code/{ => espurna}/data/images/check.png | Bin code/{ => espurna}/data/index.html.gz | Bin code/{ => espurna}/data/password.html.gz | Bin code/{ => espurna}/data/script.js.gz | Bin code/{ => espurna}/data/style.css.gz | Bin code/gulpfile.js | 10 ++++++---- 8 files changed, 6 insertions(+), 4 deletions(-) rename code/{ => espurna}/data/favicon.ico (100%) rename code/{ => espurna}/data/fsversion (100%) rename code/{ => espurna}/data/images/check.png (100%) rename code/{ => espurna}/data/index.html.gz (100%) rename code/{ => espurna}/data/password.html.gz (100%) rename code/{ => espurna}/data/script.js.gz (100%) rename code/{ => espurna}/data/style.css.gz (100%) diff --git a/code/data/favicon.ico b/code/espurna/data/favicon.ico similarity index 100% rename from code/data/favicon.ico rename to code/espurna/data/favicon.ico diff --git a/code/data/fsversion b/code/espurna/data/fsversion similarity index 100% rename from code/data/fsversion rename to code/espurna/data/fsversion diff --git a/code/data/images/check.png b/code/espurna/data/images/check.png similarity index 100% rename from code/data/images/check.png rename to code/espurna/data/images/check.png diff --git a/code/data/index.html.gz b/code/espurna/data/index.html.gz similarity index 100% rename from code/data/index.html.gz rename to code/espurna/data/index.html.gz diff --git a/code/data/password.html.gz b/code/espurna/data/password.html.gz similarity index 100% rename from code/data/password.html.gz rename to code/espurna/data/password.html.gz diff --git a/code/data/script.js.gz b/code/espurna/data/script.js.gz similarity index 100% rename from code/data/script.js.gz rename to code/espurna/data/script.js.gz diff --git a/code/data/style.css.gz b/code/espurna/data/style.css.gz similarity index 100% rename from code/data/style.css.gz rename to code/espurna/data/style.css.gz diff --git a/code/gulpfile.js b/code/gulpfile.js index ce6a8134..181cfeb4 100644 --- a/code/gulpfile.js +++ b/code/gulpfile.js @@ -34,9 +34,11 @@ const useref = require('gulp-useref'); const gulpif = require('gulp-if'); const inline = require('gulp-inline'); +const destination = 'espurna/data/'; + /* Clean destination folder */ gulp.task('clean', function() { - del(['data/*']); + del([ destination + '*']); return true; }); @@ -46,7 +48,7 @@ gulp.task('files', function() { 'html/**/*.{jpg,jpeg,png,ico,gif}', 'html/fsversion' ]) - .pipe(gulp.dest('data/')); + .pipe(gulp.dest(destination)); }); @@ -66,7 +68,7 @@ gulp.task('inline', function() { minifyJS: true })) .pipe(gzip()) - .pipe(gulp.dest('data')); + .pipe(gulp.dest(destination)); }) /* Process HTML, CSS, JS */ @@ -83,7 +85,7 @@ gulp.task('html', function() { minifyJS: true }))) .pipe(gzip()) - .pipe(gulp.dest('data')); + .pipe(gulp.dest(destination)); }); /* Build file system */