From 6c41c5be41120cb148916bafbdd18ae0c72eb597 Mon Sep 17 00:00:00 2001 From: 00Fjongl <65314359+00Fjongl@users.noreply.github.com> Date: Thu, 8 Aug 2024 23:28:31 -0500 Subject: [PATCH] Have Prettier ignore minified files; test GitHub workflow for Windows. --- .prettierignore | 3 ++- run-command.mjs | 14 +------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/.prettierignore b/.prettierignore index d9bf83a7..dbe632a6 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,3 @@ /lib -/views/assets/js/*.js \ No newline at end of file +/views/assets/js/*.js +/views/dist \ No newline at end of file diff --git a/run-command.mjs b/run-command.mjs index 65d8887f..14a36857 100644 --- a/run-command.mjs +++ b/run-command.mjs @@ -165,18 +165,6 @@ commands: for (let i = 2; i < process.argv.length; i++) console.log(stdout); } ); - // Handle setup on Windows differently from platforms with POSIX-compliant - // shells. This should run the server as a background process. - else if (process.platform === 'win32') - exec('START /MIN "" node backend.js', (error, stdout) => { - if (error) { - console.error(error); - process.exitCode = 1; - } - console.log(stdout); - }); - // The following approach (and similar approaches) will not work on Windows, - // because exiting this program will also terminate backend.js on Windows. else { const server = fork( fileURLToPath(new URL('./backend.js', import.meta.url)), @@ -196,7 +184,7 @@ commands: for (let i = 2; i < process.argv.length; i++) server.kill(); const server2 = fork( fileURLToPath(new URL('./backend.js', import.meta.url)), - { cwd: process.cwd(), detached: true } + { cwd: process.cwd(), stdio: 'ignore', detached: true } ); server2.unref(); server2.disconnect();