Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/dev/typescript-oo/classes/BackendPackage.class.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ BackendPackage() {
[[ ! "$(array_contains "${folderName}" "${ts_launch[@]}")" ]] && return

logInfo "Launching: ${folderName}"
npm run launch
if [[ "${ts_debugFunction}" ]]; then
npm run debug
else
npm run launch
fi
}

_clean() {
Expand Down
7 changes: 7 additions & 0 deletions scripts/dev/typescript-oo/params.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ts_linkThunderstorm=
ts_lint=
ts_runTests=
ts_publish=
ts_debugFunction=
ts_fileToExecute="index.js"

checkCircularImports=
Expand Down Expand Up @@ -53,6 +54,7 @@ params=(
ts_runTests
ts_publish
ts_fileToExecute
ts_debugFunction
"ts_generate[@]"
"ts_launch[@]"
"ts_deploy[@]"
Expand Down Expand Up @@ -277,6 +279,11 @@ extractParams() {
ts_launch+=($(regexParam "--launch|-l" "${paramValue}"))
;;

"--debug-function" | "-dbf")
#DOC: It will add the provided App to the launch list
ts_debugFunction=true
;;

"--file="* | "-f="*)
#DOC: The file name to launch
#NOTE: Apply on to the executable apps
Expand Down