Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

Auto-fix formatting issues

GitHub Action3263c57b1c49
diff --git a/bin/cli.ts b/bin/cli.ts
index 0323b98e..3bb296d0 100644
--- a/bin/cli.ts
+++ b/bin/cli.ts
@@ -31,4 +31,3 @@ program.action(async (url: string, options: PakeCliOptions) => {
});
program.parse();
-
diff --git a/bin/dev.ts b/bin/dev.ts
index 7dca5704..4e4f1b11 100644
--- a/bin/dev.ts
+++ b/bin/dev.ts
@@ -18,4 +18,3 @@ program.action(async (url: string, options: PakeCliOptions) => {
});
program.parse();
-
diff --git a/bin/helpers/cli-program.ts b/bin/helpers/cli-program.ts
index 40b3aa48..dc5bf89a 100644
--- a/bin/helpers/cli-program.ts
+++ b/bin/helpers/cli-program.ts
@@ -1,4 +1,3 @@
-
import chalk from 'chalk';
import { program, Option } from 'commander';
import packageJson from '../../package.json';
@@ -36,7 +35,11 @@ ${green('|_| \\__,_|_|\\_\\___| can turn any webpage into a desktop app with
validateNumberInput,
DEFAULT.height,
)
- .option('--use-local-file', 'Use local file packaging', DEFAULT.useLocalFile)
+ .option(
+ '--use-local-file',
+ 'Use local file packaging',
+ DEFAULT.useLocalFile,
+ )
.option('--fullscreen', 'Start in full screen', DEFAULT.fullscreen)
.option('--hide-title-bar', 'For Mac, hide title bar', DEFAULT.hideTitleBar)
.option('--multi-arch', 'For Mac, both Intel and M1', DEFAULT.multiArch)
diff --git a/bin/options/icon.ts b/bin/options/icon.ts
index d54fa3c1..868489c1 100644
--- a/bin/options/icon.ts
+++ b/bin/options/icon.ts
@@ -426,7 +426,11 @@ async function tryGetFavicon(
}
// Icon generation error on Windows
- if (IS_WIN && error instanceof Error && error.message.includes('icongen')) {
+ if (
+ IS_WIN &&
+ error instanceof Error &&
+ error.message.includes('icongen')
+ ) {
return null;
}
diff --git a/rollup.config.js b/rollup.config.js
index 4c01543e..8cc8cc3e 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -87,23 +87,23 @@ function pakeCliDevPlugin() {
return {
name: "pake-cli-dev-plugin",
buildEnd() {
- const command = 'node';
+ const command = "node";
// Pass through arguments, ignoring the first 2 (node rollup) and filtering out rollup-specifics
// We need to keep only arguments meant for our CLI script
- const args = process.argv.slice(2).filter(arg => {
- // Filter out typical rollup flags if they are mixed in
- // This is a simplistic filter, might need adjustment based on how npm script invokes rollup
- return !['-c', '-w', '--config', '--watch'].includes(arg);
+ const args = process.argv.slice(2).filter((arg) => {
+ // Filter out typical rollup flags if they are mixed in
+ // This is a simplistic filter, might need adjustment based on how npm script invokes rollup
+ return !["-c", "-w", "--config", "--watch"].includes(arg);
});
- const cliCmdArgs = ['./dist/dev.js', ...args];
+ const cliCmdArgs = ["./dist/dev.js", ...args];
cliChildProcess = spawn(command, cliCmdArgs, { detached: true });
- cliChildProcess.stdout.on('data', (data) => {
+ cliChildProcess.stdout.on("data", (data) => {
console.log(chalk.green(data.toString()));
});
- cliChildProcess.stderr.on('data', (data) => {
+ cliChildProcess.stderr.on("data", (data) => {
console.error(chalk.yellow(data.toString()));
});
diff --git a/tests/index.js b/tests/index.js
index 00ff58c4..f8c24c65 100644
--- a/tests/index.js
+++ b/tests/index.js
@@ -46,8 +46,8 @@ class PakeTestRunner {
console.log("\n🧪 Running Project Unit Tests (Vitest)...");
try {
execSync("npx vitest run", {
- stdio: "inherit",
- cwd: config.PROJECT_ROOT
+ stdio: "inherit",
+ cwd: config.PROJECT_ROOT,
});
this.results.push({ name: "Vitest Unit Tests", passed: true });
testCount++;