Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
atjn committed Jan 26, 2023
1 parent 382b7c3 commit a8ec4f1
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CodeQL

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "34 10 12 * *"

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Lint

on: push
on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/usability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Usability

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "34 10 12 * *"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ EWAB won't add a serviceworker by default because it requires a bit of manual se
Go to the [serviceworker configuration guide](./docs/serviceworker.md).

---
<p style="opacity:.8;font-style:italic;text-align:right">This documentation was generated for <a href="https://github.com/atjn/easy-web-app-builder#readme">Easy Web App Builder</a> 1.0.0-beta1</p>
<p style="opacity:.8;font-style:italic;text-align:right">This documentation was generated for <a href="https://github.com/atjn/easy-web-app-builder#readme">Easy Web App Builder</a> 1.0.0-beta3</p>
2 changes: 1 addition & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ This is an overview of the entire configuration file.
```

---
<p style="opacity:.8;font-style:italic;text-align:right">This documentation was generated for <a href="https://github.com/atjn/easy-web-app-builder#readme">Easy Web App Builder</a> 1.0.0-beta1</p>
<p style="opacity:.8;font-style:italic;text-align:right">This documentation was generated for <a href="https://github.com/atjn/easy-web-app-builder#readme">Easy Web App Builder</a> 1.0.0-beta3</p>
2 changes: 1 addition & 1 deletion docs/serviceworker.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ The complete local file API looks like this:


---
<p style="opacity:.8;font-style:italic;text-align:right">This documentation was generated for <a href="https://github.com/atjn/easy-web-app-builder#readme">Easy Web App Builder</a> 1.0.0-beta1</p>
<p style="opacity:.8;font-style:italic;text-align:right">This documentation was generated for <a href="https://github.com/atjn/easy-web-app-builder#readme">Easy Web App Builder</a> 1.0.0-beta3</p>
20 changes: 10 additions & 10 deletions src/minify.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global ewabConfig ewabRuntime */
/* global ewabConfig */

/**
* @file
Expand All @@ -10,7 +10,7 @@ import path from "path";
import fs from "fs-extra";
import { hashElement as folderHash } from "folder-hash";
import { log, bar } from "./log.js";
import { fileExists, getExtension, resolveURL, deepClone, ewabPackage } from "./tools.js";
import { fileExists, getExtension, resolveURL } from "./tools.js";
import config, { supportedImageExtensions } from "./config.js";

import jsdom from "jsdom";
Expand All @@ -19,15 +19,15 @@ import jsdom from "jsdom";

import newVips from "wasm-vips";
const vips = await newVips({
print: (stdout) => {console.log("custom", stdout)},
printErr: (stderr) => {console.log("custom", stderr)},
print: (stdout) => {console.log("custom", stdout);},
printErr: (stderr) => {console.log("custom", stderr);},
preRun: module => {
module.print = (stdout) => {console.log("custom", stdout)};
module.printErr = (stderr) => {console.log("custom", stderr)};
module.print = (stdout) => {console.log("custom", stdout);};
module.printErr = (stderr) => {console.log("custom", stderr);};
},
postRunt: module => {
module.print = (stdout) => {console.log("custom", stdout)};
module.printErr = (stderr) => {console.log("custom", stderr)};
module.print = (stdout) => {console.log("custom", stdout);};
module.printErr = (stderr) => {console.log("custom", stderr);};
},
});

Expand Down Expand Up @@ -126,7 +126,7 @@ class ImageEncodings{
},
balanced: {
distance: 3,
}
},
},
flat: {
high: {
Expand All @@ -142,7 +142,7 @@ class ImageEncodings{
},
balanced: {
distance: 3,
}
},
},
},
}),
Expand Down

0 comments on commit a8ec4f1

Please sign in to comment.