Browse Source

webui: bump to inline-source-8.0.3

remove yet another deprecated gulp plugin, just calling it w/ through2
pull/2611/head
Maxim Prokhorov 4 weeks ago
parent
commit
cf9ec76d2f
23 changed files with 16644 additions and 17680 deletions
  1. BIN
      code/espurna/data/index.all.html.gz
  2. BIN
      code/espurna/data/index.curtain.html.gz
  3. BIN
      code/espurna/data/index.garland.html.gz
  4. BIN
      code/espurna/data/index.light.html.gz
  5. BIN
      code/espurna/data/index.lightfox.html.gz
  6. BIN
      code/espurna/data/index.rfbridge.html.gz
  7. BIN
      code/espurna/data/index.rfm69.html.gz
  8. BIN
      code/espurna/data/index.sensor.html.gz
  9. BIN
      code/espurna/data/index.small.html.gz
  10. BIN
      code/espurna/data/index.thermostat.html.gz
  11. +2344
    -2341
      code/espurna/static/index.all.html.gz.h
  12. +1491
    -1489
      code/espurna/static/index.curtain.html.gz.h
  13. +1453
    -1452
      code/espurna/static/index.garland.html.gz.h
  14. +2042
    -2040
      code/espurna/static/index.light.html.gz.h
  15. +1455
    -1453
      code/espurna/static/index.lightfox.html.gz.h
  16. +1489
    -1487
      code/espurna/static/index.rfbridge.html.gz.h
  17. +1491
    -1490
      code/espurna/static/index.rfm69.html.gz.h
  18. +1588
    -1586
      code/espurna/static/index.sensor.html.gz.h
  19. +1440
    -1438
      code/espurna/static/index.small.html.gz.h
  20. +1476
    -1475
      code/espurna/static/index.thermostat.html.gz.h
  21. +23
    -2
      code/gulpfile.js
  22. +351
    -1426
      code/package-lock.json
  23. +1
    -1
      code/package.json

BIN
code/espurna/data/index.all.html.gz View File


BIN
code/espurna/data/index.curtain.html.gz View File


BIN
code/espurna/data/index.garland.html.gz View File


BIN
code/espurna/data/index.light.html.gz View File


BIN
code/espurna/data/index.lightfox.html.gz View File


BIN
code/espurna/data/index.rfbridge.html.gz View File


BIN
code/espurna/data/index.rfm69.html.gz View File


BIN
code/espurna/data/index.sensor.html.gz View File


BIN
code/espurna/data/index.small.html.gz View File


BIN
code/espurna/data/index.thermostat.html.gz View File


+ 2344
- 2341
code/espurna/static/index.all.html.gz.h
File diff suppressed because it is too large
View File


+ 1491
- 1489
code/espurna/static/index.curtain.html.gz.h
File diff suppressed because it is too large
View File


+ 1453
- 1452
code/espurna/static/index.garland.html.gz.h
File diff suppressed because it is too large
View File


+ 2042
- 2040
code/espurna/static/index.light.html.gz.h
File diff suppressed because it is too large
View File


+ 1455
- 1453
code/espurna/static/index.lightfox.html.gz.h
File diff suppressed because it is too large
View File


+ 1489
- 1487
code/espurna/static/index.rfbridge.html.gz.h
File diff suppressed because it is too large
View File


+ 1491
- 1490
code/espurna/static/index.rfm69.html.gz.h
File diff suppressed because it is too large
View File


+ 1588
- 1586
code/espurna/static/index.sensor.html.gz.h
File diff suppressed because it is too large
View File


+ 1440
- 1438
code/espurna/static/index.small.html.gz.h
File diff suppressed because it is too large
View File


+ 1476
- 1475
code/espurna/static/index.thermostat.html.gz.h
File diff suppressed because it is too large
View File


+ 23
- 2
code/gulpfile.js View File

@ -36,7 +36,7 @@ const csslint = require('gulp-csslint');
const htmlmin = require('html-minifier');
const gzip = require('gulp-gzip');
const inline = require('gulp-inline-source-html');
const inline = require('inline-source');
const rename = require('gulp-rename');
const replace = require('gulp-replace');
@ -190,6 +190,27 @@ var inlineHandler = function(modules) {
};
}
function inlineSource(rootPath, modules) {
return through.obj(async function (source, _, callback) {
if (source.isNull()) {
callback(null, source);
return;
}
const result = await inline.inlineSource(
source.contents.toString(),
{
"compress": true,
"handlers": [inlineHandler(modules)],
"rootpath": rootPath,
});
source.contents = Buffer.from(result);
callback(null, source);
});
}
var buildWebUI = function(module) {
// Declare some modules as optional to remove with
@ -229,7 +250,7 @@ var buildWebUI = function(module) {
return gulp.src(htmlFolder + '*.html').
pipe(htmlRemover(modules)).
pipe(inline({handlers: [inlineHandler(modules)]})).
pipe(inlineSource(htmlFolder, modules)).
pipe(toMinifiedHtml({
collapseWhitespace: true,
removeComments: true,


+ 351
- 1426
code/package-lock.json
File diff suppressed because it is too large
View File


+ 1
- 1
code/package.json View File

@ -9,12 +9,12 @@
"license": "GPL-3.0",
"devDependencies": {
"eslint": "^8.57.0",
"inline-source": "^8.0.3",
"gulp": "^4.0.2",
"gulp-csslint": "^1.0.0",
"gulp-gzip": "^1.4.0",
"gulp-htmllint": "0.0.19",
"gulp-htmlmin": "^5.0.1",
"gulp-inline-source-html": "^1.0.3",
"gulp-rename": "^2.0.0",
"gulp-replace": "^1.0.0",
"html-minifier": "^4.0.0",


Loading…
Cancel
Save