From 673c26f96a5e380f6833feb0d8a0584bdd537dcd Mon Sep 17 00:00:00 2001 From: Blake McBride Date: Wed, 18 Oct 2023 11:55:32 -0500 Subject: [PATCH] Add ability to create a back-end-only project --- remove-frontend | 20 ++++++++++++++++++++ remove-frontend.cmd | 17 +++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 remove-frontend create mode 100644 remove-frontend.cmd diff --git a/remove-frontend b/remove-frontend new file mode 100755 index 0000000..930ee3b --- /dev/null +++ b/remove-frontend @@ -0,0 +1,20 @@ +# + +# I've found that I often use multiple front-ends with a single back-end. +# So, this single back-end has no front-end code. This script +# removes the front-end portion of the system to give me a convenient +# starting point for a back-end-only project. + +if [ $# -ne 1 ] || [ 'remove' != $1 ]; then + echo + echo 'This script removes the back-end portion of Kiss' + echo + echo Usage: $0 remove + echo + exit +fi + + +rm -rf .git* src/main/frontend remove-backend* make-front-end SimpleWebServer.jar upgrade-kiss* *.md +rm -rf expand LICENSE.txt list-both serv* shrink make-frontend + diff --git a/remove-frontend.cmd b/remove-frontend.cmd new file mode 100644 index 0000000..6d49959 --- /dev/null +++ b/remove-frontend.cmd @@ -0,0 +1,17 @@ +@echo off +REM I've found that I often use multiple front-ends with a single back-end. +REM So, this single back-end has no front-end code. This script +REM removes the front-end portion of the system to give me a convenient +REM starting point for a back-end-only project. + +if "%~1" neq "remove" ( + echo. + echo This script removes the front-end portion of Kiss + echo. + echo Usage: %~0 remove + echo. + exit /b +) + +rmdir /s /q .git* src\main\frontend remove-backend* make-front-end SimpleWebServer.jar upgrade-kiss* *.md +rmdir /s /q expand LICENSE.txt list-both serv* shrink make-frontend