@energyconsumptionoptimizer/shared-kernel_new 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/.dockerignore +54 -0
  2. package/.gitattributes +12 -0
  3. package/.github/workflows/docker-and-docs-release.yml +92 -0
  4. package/.github/workflows/pr-validation.yml +37 -0
  5. package/.github/workflows/release.yml +41 -0
  6. package/.gradle/9.5.1/checksums/checksums.lock +0 -0
  7. package/.gradle/9.5.1/checksums/md5-checksums.bin +0 -0
  8. package/.gradle/9.5.1/checksums/sha1-checksums.bin +0 -0
  9. package/.gradle/9.5.1/executionHistory/executionHistory.bin +0 -0
  10. package/.gradle/9.5.1/executionHistory/executionHistory.lock +0 -0
  11. package/.gradle/9.5.1/expanded/expanded.lock +0 -0
  12. package/.gradle/9.5.1/fileChanges/last-build.bin +0 -0
  13. package/.gradle/9.5.1/fileHashes/fileHashes.bin +0 -0
  14. package/.gradle/9.5.1/fileHashes/fileHashes.lock +0 -0
  15. package/.gradle/9.5.1/gc.properties +0 -0
  16. package/.gradle/9.5.1/kotlin-dsl-plugin-entries/jar-entries.bin +0 -0
  17. package/.gradle/9.5.1/kotlin-dsl-plugin-entries/kotlin-dsl-plugin-entries.lock +0 -0
  18. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  19. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  20. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  21. package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/.globals.work.bin +1 -0
  22. package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/.strings.work.bin +0 -0
  23. package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/_.work.bin +0 -0
  24. package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/buildfingerprint.bin +0 -0
  25. package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/classloaderscopes.bin +0 -0
  26. package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/entry.bin +0 -0
  27. package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/projectfingerprint.bin +0 -0
  28. package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/work.bin +4 -0
  29. package/.gradle/configuration-cache/configuration-cache.lock +0 -0
  30. package/.gradle/configuration-cache/d7awfwp991slqy2gsmevcg40j/candidates.bin +1 -0
  31. package/.gradle/configuration-cache/gc.properties +0 -0
  32. package/.gradle/file-system.probe +0 -0
  33. package/.gradle/nodejs/node-v24.11.0-win-x64/CHANGELOG.md +1393 -0
  34. package/.gradle/nodejs/node-v24.11.0-win-x64/LICENSE +2666 -0
  35. package/.gradle/nodejs/node-v24.11.0-win-x64/README.md +916 -0
  36. package/.gradle/nodejs/node-v24.11.0-win-x64/corepack +12 -0
  37. package/.gradle/nodejs/node-v24.11.0-win-x64/corepack.cmd +7 -0
  38. package/.gradle/nodejs/node-v24.11.0-win-x64/install_tools.bat +66 -0
  39. package/.gradle/nodejs/node-v24.11.0-win-x64/node.exe +0 -0
  40. package/.gradle/nodejs/node-v24.11.0-win-x64/nodevars.bat +24 -0
  41. package/.gradle/nodejs/node-v24.11.0-win-x64/npm +65 -0
  42. package/.gradle/nodejs/node-v24.11.0-win-x64/npm.cmd +20 -0
  43. package/.gradle/nodejs/node-v24.11.0-win-x64/npm.ps1 +50 -0
  44. package/.gradle/nodejs/node-v24.11.0-win-x64/npx +65 -0
  45. package/.gradle/nodejs/node-v24.11.0-win-x64/npx.cmd +20 -0
  46. package/.gradle/nodejs/node-v24.11.0-win-x64/npx.ps1 +50 -0
  47. package/.gradle/vcs-1/gc.properties +0 -0
  48. package/.idea/checkstyle-idea.xml +16 -0
  49. package/.idea/vcs.xml +6 -0
  50. package/Dockerfile +22 -0
  51. package/LICENSE +201 -0
  52. package/README.md +2 -0
  53. package/build/reports/configuration-cache/d7awfwp991slqy2gsmevcg40j/3o1gyfkbqhhbgtz2v5lntssz9/configuration-cache-report.html +666 -0
  54. package/build/reports/configuration-cache/d7awfwp991slqy2gsmevcg40j/4a0o7972dg8g7itrh2xej4c7q/configuration-cache-report.html +666 -0
  55. package/build/reports/configuration-cache/d7awfwp991slqy2gsmevcg40j/60w2tcaq1nn10txyecthnv313/configuration-cache-report.html +666 -0
  56. package/build/reports/problems/problems-report.html +666 -0
  57. package/build.gradle.kts +88 -0
  58. package/eslint.config.mts +29 -0
  59. package/gradle/libs.versions.toml +7 -0
  60. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  61. package/gradle/wrapper/gradle-wrapper.properties +9 -0
  62. package/gradle.properties +5 -0
  63. package/gradlew +248 -0
  64. package/gradlew.bat +82 -0
  65. package/package.json +68 -0
  66. package/release.config.mjs +7 -0
  67. package/renovate.json +7 -0
  68. package/settings.gradle.kts +16 -0
  69. package/src/app.ts +5 -0
  70. package/src/application/outbound/EventPublisher.ts +5 -0
  71. package/src/application/outbound/UnitOfWork.ts +3 -0
  72. package/src/domain/AggregateRoot.ts +15 -0
  73. package/src/domain/DomainEvent.ts +9 -0
  74. package/src/test/dummy.test.ts +7 -0
  75. package/tsconfig.json +27 -0
  76. package/vitest.config.ts +11 -0
@@ -0,0 +1,12 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -x "$basedir/node" ]; then
9
+ exec "$basedir/node" "$basedir/node_modules/corepack/dist/corepack.js" "$@"
10
+ else
11
+ exec node "$basedir/node_modules/corepack/dist/corepack.js" "$@"
12
+ fi
@@ -0,0 +1,7 @@
1
+ @SETLOCAL
2
+ @IF EXIST "%~dp0\node.exe" (
3
+ "%~dp0\node.exe" "%~dp0\node_modules\corepack\dist\corepack.js" %*
4
+ ) ELSE (
5
+ @SET PATHEXT=%PATHEXT:;.JS;=;%
6
+ node "%~dp0\node_modules\corepack\dist\corepack.js" %*
7
+ )
@@ -0,0 +1,66 @@
1
+ @echo off
2
+
3
+ setlocal
4
+ title Install Additional Tools for Node.js
5
+
6
+ cls
7
+
8
+ echo ====================================================
9
+ echo Tools for Node.js Native Modules Installation Script
10
+ echo ====================================================
11
+ echo.
12
+ echo This script will install Python and the Visual Studio Build Tools, necessary
13
+ echo to compile Node.js native modules. Note that Chocolatey and required Windows
14
+ echo updates will also be installed.
15
+ echo.
16
+ echo This will require about 7 GiB of free disk space, plus any space necessary to
17
+ echo install Windows updates. This will take a while to run.
18
+ echo.
19
+ echo Please close all open programs for the duration of the installation. If the
20
+ echo installation fails, please ensure Windows is fully updated, reboot your
21
+ echo computer and try to run this again. This script can be found in the
22
+ echo Start menu under Node.js.
23
+ echo.
24
+ echo You can close this window to stop now. Detailed instructions to install these
25
+ echo tools manually are available at https://github.com/nodejs/node-gyp#on-windows
26
+ echo.
27
+ pause
28
+
29
+ cls
30
+
31
+ REM Adapted from https://github.com/Microsoft/windows-dev-box-setup-scripts/blob/79bbe5bdc4867088b3e074f9610932f8e4e192c2/README.md#legal
32
+ echo Using this script downloads third party software
33
+ echo ------------------------------------------------
34
+ echo This script will direct to Chocolatey to install packages. By using
35
+ echo Chocolatey to install a package, you are accepting the license for the
36
+ echo application, executable(s), or other artifacts delivered to your machine as a
37
+ echo result of a Chocolatey install. This acceptance occurs whether you know the
38
+ echo license terms or not. Read and understand the license terms of the packages
39
+ echo being installed and their dependencies prior to installation:
40
+ echo - https://chocolatey.org/packages/chocolatey
41
+ echo - https://chocolatey.org/packages/python
42
+ echo - https://chocolatey.org/packages/visualstudio2019-workload-vctools
43
+ echo.
44
+ echo This script is provided AS-IS without any warranties of any kind
45
+ echo ----------------------------------------------------------------
46
+ echo Chocolatey has implemented security safeguards in their process to help
47
+ echo protect the community from malicious or pirated software, but any use of this
48
+ echo script is at your own risk. Please read the Chocolatey's legal terms of use
49
+ echo as well as how the community repository for Chocolatey.org is maintained.
50
+ echo.
51
+ pause
52
+
53
+ cls
54
+
55
+ "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" ^
56
+ -NoProfile ^
57
+ -InputFormat None ^
58
+ -ExecutionPolicy Bypass ^
59
+ -Command Start-Process ^
60
+ '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' ^
61
+ -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command ^
62
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ^
63
+ iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1'')); ^
64
+ choco upgrade -y python visualstudio2019-workload-vctools; ^
65
+ Read-Host ''Type ENTER to exit'' ' ^
66
+ -Verb RunAs
@@ -0,0 +1,24 @@
1
+ @echo off
2
+
3
+ rem Ensure this Node.js and npm are first in the PATH
4
+ set "PATH=%APPDATA%\npm;%~dp0;%PATH%"
5
+
6
+ setlocal enabledelayedexpansion
7
+ pushd "%~dp0"
8
+
9
+ rem Figure out the Node.js version.
10
+ set print_version=.\node.exe -p -e "process.versions.node + ' (' + process.arch + ')'"
11
+ for /F "usebackq delims=" %%v in (`%print_version%`) do set version=%%v
12
+
13
+ rem Print message.
14
+ if exist npm.cmd (
15
+ echo Your environment has been set up for using Node.js !version! and npm.
16
+ ) else (
17
+ echo Your environment has been set up for using Node.js !version!.
18
+ )
19
+
20
+ popd
21
+ endlocal
22
+
23
+ rem If we're in the Node.js directory, change to the user's home dir.
24
+ if "%CD%\"=="%~dp0" cd /d "%HOMEDRIVE%%HOMEPATH%"
@@ -0,0 +1,65 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # This is used by the Node.js installer, which expects the cygwin/mingw
4
+ # shell script to already be present in the npm dependency folder.
5
+
6
+ (set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix
7
+
8
+ basedir=`dirname "$0"`
9
+
10
+ case `uname` in
11
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
12
+ esac
13
+
14
+ if [ `uname` = 'Linux' ] && type wslpath &>/dev/null ; then
15
+ IS_WSL="true"
16
+ fi
17
+
18
+ function no_node_dir {
19
+ # if this didn't work, then everything else below will fail
20
+ echo "Could not determine Node.js install directory" >&2
21
+ exit 1
22
+ }
23
+
24
+ NODE_EXE="$basedir/node.exe"
25
+ if ! [ -x "$NODE_EXE" ]; then
26
+ NODE_EXE="$basedir/node"
27
+ fi
28
+ if ! [ -x "$NODE_EXE" ]; then
29
+ NODE_EXE=node
30
+ fi
31
+
32
+ # this path is passed to node.exe, so it needs to match whatever
33
+ # kind of paths Node.js thinks it's using, typically win32 paths.
34
+ CLI_BASEDIR="$("$NODE_EXE" -p 'require("path").dirname(process.execPath)' 2> /dev/null)"
35
+ if [ $? -ne 0 ]; then
36
+ # this fails under WSL 1 so add an additional message. we also suppress stderr above
37
+ # because the actual error raised is not helpful. in WSL 1 node.exe cannot handle
38
+ # output redirection properly. See https://github.com/microsoft/WSL/issues/2370
39
+ if [ "$IS_WSL" == "true" ]; then
40
+ echo "WSL 1 is not supported. Please upgrade to WSL 2 or above." >&2
41
+ fi
42
+ no_node_dir
43
+ fi
44
+ NPM_PREFIX_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-prefix.js"
45
+ NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js"
46
+ NPM_PREFIX=`"$NODE_EXE" "$NPM_PREFIX_JS"`
47
+ if [ $? -ne 0 ]; then
48
+ no_node_dir
49
+ fi
50
+ NPM_PREFIX_NPM_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npm-cli.js"
51
+
52
+ # a path that will fail -f test on any posix bash
53
+ NPM_WSL_PATH="/.."
54
+
55
+ # WSL can run Windows binaries, so we have to give it the win32 path
56
+ # however, WSL bash tests against posix paths, so we need to construct that
57
+ # to know if npm is installed globally.
58
+ if [ "$IS_WSL" == "true" ]; then
59
+ NPM_WSL_PATH=`wslpath "$NPM_PREFIX_NPM_CLI_JS"`
60
+ fi
61
+ if [ -f "$NPM_PREFIX_NPM_CLI_JS" ] || [ -f "$NPM_WSL_PATH" ]; then
62
+ NPM_CLI_JS="$NPM_PREFIX_NPM_CLI_JS"
63
+ fi
64
+
65
+ "$NODE_EXE" "$NPM_CLI_JS" "$@"
@@ -0,0 +1,20 @@
1
+ :: Created by npm, please don't edit manually.
2
+ @ECHO OFF
3
+
4
+ SETLOCAL
5
+
6
+ SET "NODE_EXE=%~dp0\node.exe"
7
+ IF NOT EXIST "%NODE_EXE%" (
8
+ SET "NODE_EXE=node"
9
+ )
10
+
11
+ SET "NPM_PREFIX_JS=%~dp0\node_modules\npm\bin\npm-prefix.js"
12
+ SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js"
13
+ FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_PREFIX_JS%"') DO (
14
+ SET "NPM_PREFIX_NPM_CLI_JS=%%F\node_modules\npm\bin\npm-cli.js"
15
+ )
16
+ IF EXIST "%NPM_PREFIX_NPM_CLI_JS%" (
17
+ SET "NPM_CLI_JS=%NPM_PREFIX_NPM_CLI_JS%"
18
+ )
19
+
20
+ "%NODE_EXE%" "%NPM_CLI_JS%" %*
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env pwsh
2
+
3
+ Set-StrictMode -Version 'Latest'
4
+
5
+ $NODE_EXE="$PSScriptRoot/node.exe"
6
+ if (-not (Test-Path $NODE_EXE)) {
7
+ $NODE_EXE="$PSScriptRoot/node"
8
+ }
9
+ if (-not (Test-Path $NODE_EXE)) {
10
+ $NODE_EXE="node"
11
+ }
12
+
13
+ $NPM_PREFIX_JS="$PSScriptRoot/node_modules/npm/bin/npm-prefix.js"
14
+ $NPM_CLI_JS="$PSScriptRoot/node_modules/npm/bin/npm-cli.js"
15
+ $NPM_PREFIX=(& $NODE_EXE $NPM_PREFIX_JS)
16
+
17
+ if ($LASTEXITCODE -ne 0) {
18
+ Write-Host "Could not determine Node.js install directory"
19
+ exit 1
20
+ }
21
+
22
+ $NPM_PREFIX_NPM_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npm-cli.js"
23
+ if (Test-Path $NPM_PREFIX_NPM_CLI_JS) {
24
+ $NPM_CLI_JS=$NPM_PREFIX_NPM_CLI_JS
25
+ }
26
+
27
+ if ($MyInvocation.ExpectingInput) { # takes pipeline input
28
+ $input | & $NODE_EXE $NPM_CLI_JS $args
29
+ } elseif (-not $MyInvocation.Line) { # used "-File" argument
30
+ & $NODE_EXE $NPM_CLI_JS $args
31
+ } else { # used "-Command" argument
32
+ if (($MyInvocation | Get-Member -Name 'Statement') -and $MyInvocation.Statement) {
33
+ $NPM_ORIGINAL_COMMAND = $MyInvocation.Statement
34
+ } else {
35
+ $NPM_ORIGINAL_COMMAND = (
36
+ [Management.Automation.InvocationInfo].GetProperty('ScriptPosition', [Reflection.BindingFlags] 'Instance, NonPublic')
37
+ ).GetValue($MyInvocation).Text
38
+ }
39
+
40
+ $NODE_EXE = $NODE_EXE.Replace("``", "````")
41
+ $NPM_CLI_JS = $NPM_CLI_JS.Replace("``", "````")
42
+
43
+ $NPM_COMMAND_ARRAY = [Management.Automation.Language.Parser]::ParseInput($NPM_ORIGINAL_COMMAND, [ref] $null, [ref] $null).
44
+ EndBlock.Statements.PipelineElements.CommandElements.Extent.Text
45
+ $NPM_ARGS = ($NPM_COMMAND_ARRAY | Select-Object -Skip 1) -join ' '
46
+
47
+ Invoke-Expression "& `"$NODE_EXE`" `"$NPM_CLI_JS`" $NPM_ARGS"
48
+ }
49
+
50
+ exit $LASTEXITCODE
@@ -0,0 +1,65 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # This is used by the Node.js installer, which expects the cygwin/mingw
4
+ # shell script to already be present in the npm dependency folder.
5
+
6
+ (set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix
7
+
8
+ basedir=`dirname "$0"`
9
+
10
+ case `uname` in
11
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
12
+ esac
13
+
14
+ if [ `uname` = 'Linux' ] && type wslpath &>/dev/null ; then
15
+ IS_WSL="true"
16
+ fi
17
+
18
+ function no_node_dir {
19
+ # if this didn't work, then everything else below will fail
20
+ echo "Could not determine Node.js install directory" >&2
21
+ exit 1
22
+ }
23
+
24
+ NODE_EXE="$basedir/node.exe"
25
+ if ! [ -x "$NODE_EXE" ]; then
26
+ NODE_EXE="$basedir/node"
27
+ fi
28
+ if ! [ -x "$NODE_EXE" ]; then
29
+ NODE_EXE=node
30
+ fi
31
+
32
+ # this path is passed to node.exe, so it needs to match whatever
33
+ # kind of paths Node.js thinks it's using, typically win32 paths.
34
+ CLI_BASEDIR="$("$NODE_EXE" -p 'require("path").dirname(process.execPath)' 2> /dev/null)"
35
+ if [ $? -ne 0 ]; then
36
+ # this fails under WSL 1 so add an additional message. we also suppress stderr above
37
+ # because the actual error raised is not helpful. in WSL 1 node.exe cannot handle
38
+ # output redirection properly. See https://github.com/microsoft/WSL/issues/2370
39
+ if [ "$IS_WSL" == "true" ]; then
40
+ echo "WSL 1 is not supported. Please upgrade to WSL 2 or above." >&2
41
+ fi
42
+ no_node_dir
43
+ fi
44
+ NPM_PREFIX_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-prefix.js"
45
+ NPX_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npx-cli.js"
46
+ NPM_PREFIX=`"$NODE_EXE" "$NPM_PREFIX_JS"`
47
+ if [ $? -ne 0 ]; then
48
+ no_node_dir
49
+ fi
50
+ NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js"
51
+
52
+ # a path that will fail -f test on any posix bash
53
+ NPX_WSL_PATH="/.."
54
+
55
+ # WSL can run Windows binaries, so we have to give it the win32 path
56
+ # however, WSL bash tests against posix paths, so we need to construct that
57
+ # to know if npm is installed globally.
58
+ if [ "$IS_WSL" == "true" ]; then
59
+ NPX_WSL_PATH=`wslpath "$NPM_PREFIX_NPX_CLI_JS"`
60
+ fi
61
+ if [ -f "$NPM_PREFIX_NPX_CLI_JS" ] || [ -f "$NPX_WSL_PATH" ]; then
62
+ NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS"
63
+ fi
64
+
65
+ "$NODE_EXE" "$NPX_CLI_JS" "$@"
@@ -0,0 +1,20 @@
1
+ :: Created by npm, please don't edit manually.
2
+ @ECHO OFF
3
+
4
+ SETLOCAL
5
+
6
+ SET "NODE_EXE=%~dp0\node.exe"
7
+ IF NOT EXIST "%NODE_EXE%" (
8
+ SET "NODE_EXE=node"
9
+ )
10
+
11
+ SET "NPM_PREFIX_JS=%~dp0\node_modules\npm\bin\npm-prefix.js"
12
+ SET "NPX_CLI_JS=%~dp0\node_modules\npm\bin\npx-cli.js"
13
+ FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_PREFIX_JS%"') DO (
14
+ SET "NPM_PREFIX_NPX_CLI_JS=%%F\node_modules\npm\bin\npx-cli.js"
15
+ )
16
+ IF EXIST "%NPM_PREFIX_NPX_CLI_JS%" (
17
+ SET "NPX_CLI_JS=%NPM_PREFIX_NPX_CLI_JS%"
18
+ )
19
+
20
+ "%NODE_EXE%" "%NPX_CLI_JS%" %*
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env pwsh
2
+
3
+ Set-StrictMode -Version 'Latest'
4
+
5
+ $NODE_EXE="$PSScriptRoot/node.exe"
6
+ if (-not (Test-Path $NODE_EXE)) {
7
+ $NODE_EXE="$PSScriptRoot/node"
8
+ }
9
+ if (-not (Test-Path $NODE_EXE)) {
10
+ $NODE_EXE="node"
11
+ }
12
+
13
+ $NPM_PREFIX_JS="$PSScriptRoot/node_modules/npm/bin/npm-prefix.js"
14
+ $NPX_CLI_JS="$PSScriptRoot/node_modules/npm/bin/npx-cli.js"
15
+ $NPM_PREFIX=(& $NODE_EXE $NPM_PREFIX_JS)
16
+
17
+ if ($LASTEXITCODE -ne 0) {
18
+ Write-Host "Could not determine Node.js install directory"
19
+ exit 1
20
+ }
21
+
22
+ $NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js"
23
+ if (Test-Path $NPM_PREFIX_NPX_CLI_JS) {
24
+ $NPX_CLI_JS=$NPM_PREFIX_NPX_CLI_JS
25
+ }
26
+
27
+ if ($MyInvocation.ExpectingInput) { # takes pipeline input
28
+ $input | & $NODE_EXE $NPX_CLI_JS $args
29
+ } elseif (-not $MyInvocation.Line) { # used "-File" argument
30
+ & $NODE_EXE $NPX_CLI_JS $args
31
+ } else { # used "-Command" argument
32
+ if (($MyInvocation | Get-Member -Name 'Statement') -and $MyInvocation.Statement) {
33
+ $NPX_ORIGINAL_COMMAND = $MyInvocation.Statement
34
+ } else {
35
+ $NPX_ORIGINAL_COMMAND = (
36
+ [Management.Automation.InvocationInfo].GetProperty('ScriptPosition', [Reflection.BindingFlags] 'Instance, NonPublic')
37
+ ).GetValue($MyInvocation).Text
38
+ }
39
+
40
+ $NODE_EXE = $NODE_EXE.Replace("``", "````")
41
+ $NPX_CLI_JS = $NPX_CLI_JS.Replace("``", "````")
42
+
43
+ $NPX_COMMAND_ARRAY = [Management.Automation.Language.Parser]::ParseInput($NPX_ORIGINAL_COMMAND, [ref] $null, [ref] $null).
44
+ EndBlock.Statements.PipelineElements.CommandElements.Extent.Text
45
+ $NPX_ARGS = ($NPX_COMMAND_ARRAY | Select-Object -Skip 1) -join ' '
46
+
47
+ Invoke-Expression "& `"$NODE_EXE`" `"$NPX_CLI_JS`" $NPX_ARGS"
48
+ }
49
+
50
+ exit $LASTEXITCODE
File without changes
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="CheckStyle-IDEA" serialisationVersion="2">
4
+ <checkstyleVersion>10.23.0</checkstyleVersion>
5
+ <scanScope>JavaOnly</scanScope>
6
+ <copyLibs>true</copyLibs>
7
+ <option name="thirdPartyClasspath" />
8
+ <option name="activeLocationIds" />
9
+ <option name="locations">
10
+ <list>
11
+ <ConfigurationLocation id="bundled-sun-checks" type="BUNDLED" scope="All" description="Sun Checks">(bundled)</ConfigurationLocation>
12
+ <ConfigurationLocation id="bundled-google-checks" type="BUNDLED" scope="All" description="Google Checks">(bundled)</ConfigurationLocation>
13
+ </list>
14
+ </option>
15
+ </component>
16
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
package/Dockerfile ADDED
@@ -0,0 +1,22 @@
1
+ FROM node:24-alpine AS build
2
+ WORKDIR /app
3
+ COPY package*.json ./
4
+ RUN npm ci
5
+ COPY . .
6
+ RUN npm run build
7
+
8
+ FROM node:24-alpine AS dev
9
+ WORKDIR /app
10
+ COPY package*.json ./
11
+ RUN npm ci
12
+ COPY . .
13
+ EXPOSE 3000
14
+ CMD ["npm", "run", "start:dev"]
15
+
16
+ FROM node:24-alpine AS runtime
17
+ WORKDIR /app
18
+ COPY --from=build /app/package*.json ./
19
+ RUN npm ci --omit=dev
20
+ COPY --from=build /app/dist ./dist
21
+ EXPOSE 3000
22
+ CMD ["node", "dist/server.js"]
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # Template-for-TypeScript-projects
2
+ A template repository for kickstarting the development of Typescript projects