From 22de9067671d0a65b8a96c2b139960c3575a4777 Mon Sep 17 00:00:00 2001 From: grey Date: Wed, 13 Jul 2022 18:26:50 +0200 Subject: [PATCH] - add a build command - fix an error in swagger doc --- build.ssh | 1 + docs/swagger.yaml | 2 +- package.json | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 build.ssh diff --git a/build.ssh b/build.ssh new file mode 100644 index 0000000..0ae18f3 --- /dev/null +++ b/build.ssh @@ -0,0 +1 @@ +nexe index.js --build --python python3 --resource "./static/*" --resource "./templates/*" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index dd9b3d7..2c20c77 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -170,7 +170,7 @@ paths: operationId: "textEnableColoring" parameters: - in: path - name: "show" + name: "enable" required: true type: boolean description: "If true the timer will change color by value, else the timer stays white." diff --git a/package.json b/package.json index b751e7e..3f07d89 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "An opensource countdown", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "build": "nexe index.js --build" }, "author": "TheGreydiamond", "license": "LGPL-3.0",