Skip to content

Commit

Permalink
Add ability to create a back-end-only project
Browse files Browse the repository at this point in the history
  • Loading branch information
blakemcbride committed Oct 18, 2023
1 parent 479102a commit 673c26f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
20 changes: 20 additions & 0 deletions remove-frontend
Original file line number Diff line number Diff line change
@@ -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

17 changes: 17 additions & 0 deletions remove-frontend.cmd
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 673c26f

Please sign in to comment.