@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.
- package/.dockerignore +54 -0
- package/.gitattributes +12 -0
- package/.github/workflows/docker-and-docs-release.yml +92 -0
- package/.github/workflows/pr-validation.yml +37 -0
- package/.github/workflows/release.yml +41 -0
- package/.gradle/9.5.1/checksums/checksums.lock +0 -0
- package/.gradle/9.5.1/checksums/md5-checksums.bin +0 -0
- package/.gradle/9.5.1/checksums/sha1-checksums.bin +0 -0
- package/.gradle/9.5.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/9.5.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/9.5.1/expanded/expanded.lock +0 -0
- package/.gradle/9.5.1/fileChanges/last-build.bin +0 -0
- package/.gradle/9.5.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/9.5.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/9.5.1/gc.properties +0 -0
- package/.gradle/9.5.1/kotlin-dsl-plugin-entries/jar-entries.bin +0 -0
- package/.gradle/9.5.1/kotlin-dsl-plugin-entries/kotlin-dsl-plugin-entries.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/.globals.work.bin +1 -0
- package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/.strings.work.bin +0 -0
- package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/_.work.bin +0 -0
- package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/buildfingerprint.bin +0 -0
- package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/classloaderscopes.bin +0 -0
- package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/entry.bin +0 -0
- package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/projectfingerprint.bin +0 -0
- package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/work.bin +4 -0
- package/.gradle/configuration-cache/configuration-cache.lock +0 -0
- package/.gradle/configuration-cache/d7awfwp991slqy2gsmevcg40j/candidates.bin +1 -0
- package/.gradle/configuration-cache/gc.properties +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/CHANGELOG.md +1393 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/LICENSE +2666 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/README.md +916 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/corepack +12 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/corepack.cmd +7 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/install_tools.bat +66 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/node.exe +0 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/nodevars.bat +24 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/npm +65 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/npm.cmd +20 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/npm.ps1 +50 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/npx +65 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/npx.cmd +20 -0
- package/.gradle/nodejs/node-v24.11.0-win-x64/npx.ps1 +50 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/.idea/checkstyle-idea.xml +16 -0
- package/.idea/vcs.xml +6 -0
- package/Dockerfile +22 -0
- package/LICENSE +201 -0
- package/README.md +2 -0
- package/build/reports/configuration-cache/d7awfwp991slqy2gsmevcg40j/3o1gyfkbqhhbgtz2v5lntssz9/configuration-cache-report.html +666 -0
- package/build/reports/configuration-cache/d7awfwp991slqy2gsmevcg40j/4a0o7972dg8g7itrh2xej4c7q/configuration-cache-report.html +666 -0
- package/build/reports/configuration-cache/d7awfwp991slqy2gsmevcg40j/60w2tcaq1nn10txyecthnv313/configuration-cache-report.html +666 -0
- package/build/reports/problems/problems-report.html +666 -0
- package/build.gradle.kts +88 -0
- package/eslint.config.mts +29 -0
- package/gradle/libs.versions.toml +7 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +9 -0
- package/gradle.properties +5 -0
- package/gradlew +248 -0
- package/gradlew.bat +82 -0
- package/package.json +68 -0
- package/release.config.mjs +7 -0
- package/renovate.json +7 -0
- package/settings.gradle.kts +16 -0
- package/src/app.ts +5 -0
- package/src/application/outbound/EventPublisher.ts +5 -0
- package/src/application/outbound/UnitOfWork.ts +3 -0
- package/src/domain/AggregateRoot.ts +15 -0
- package/src/domain/DomainEvent.ts +9 -0
- package/src/test/dummy.test.ts +7 -0
- package/tsconfig.json +27 -0
- package/vitest.config.ts +11 -0
package/.dockerignore
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Version Control & OS
|
|
2
|
+
.git
|
|
3
|
+
.gitignore
|
|
4
|
+
.gitattributes
|
|
5
|
+
.DS_Store
|
|
6
|
+
Thumbs.db
|
|
7
|
+
|
|
8
|
+
# Node.js & Dependency Caches
|
|
9
|
+
node_modules/
|
|
10
|
+
.npm/
|
|
11
|
+
npm-debug.log*
|
|
12
|
+
yarn-debug.log*
|
|
13
|
+
yarn-error.log*
|
|
14
|
+
pnpm-debug.log*
|
|
15
|
+
|
|
16
|
+
# TypeScript / Node Build Outputs
|
|
17
|
+
dist/
|
|
18
|
+
lib/
|
|
19
|
+
out/
|
|
20
|
+
.tsbuildinfo
|
|
21
|
+
|
|
22
|
+
# Gradle Outputs
|
|
23
|
+
.gradle/
|
|
24
|
+
build/
|
|
25
|
+
bin/
|
|
26
|
+
|
|
27
|
+
# Environment Variables & Secrets
|
|
28
|
+
.env
|
|
29
|
+
.env.*
|
|
30
|
+
*.pem
|
|
31
|
+
*.key
|
|
32
|
+
*.cert
|
|
33
|
+
|
|
34
|
+
# IDEs & Editor Configurations
|
|
35
|
+
.idea/
|
|
36
|
+
.vscode/
|
|
37
|
+
*.swp
|
|
38
|
+
*.swo
|
|
39
|
+
*.iml
|
|
40
|
+
*.iws
|
|
41
|
+
*.ipr
|
|
42
|
+
.settings/
|
|
43
|
+
.project
|
|
44
|
+
.classpath
|
|
45
|
+
.factorypath
|
|
46
|
+
|
|
47
|
+
# Testing & Coverage
|
|
48
|
+
coverage/
|
|
49
|
+
.nyc_output/
|
|
50
|
+
|
|
51
|
+
# Documentation & Misc
|
|
52
|
+
README.md
|
|
53
|
+
LICENSE
|
|
54
|
+
docs/
|
package/.gitattributes
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#
|
|
2
|
+
# https://help.github.com/articles/dealing-with-line-endings/
|
|
3
|
+
#
|
|
4
|
+
# Linux start script should use lf
|
|
5
|
+
/gradlew text eol=lf
|
|
6
|
+
|
|
7
|
+
# These are Windows script files and should use crlf
|
|
8
|
+
*.bat text eol=crlf
|
|
9
|
+
|
|
10
|
+
# Binary files should be left untouched
|
|
11
|
+
*.jar binary
|
|
12
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
name: Docker And Docs Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
packages: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
docker:
|
|
14
|
+
name: Build & Push Docker Image
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout
|
|
19
|
+
uses: actions/checkout@v6
|
|
20
|
+
|
|
21
|
+
- name: Convert repository name to lowercase
|
|
22
|
+
id: repo_name
|
|
23
|
+
run: echo "repo_slug=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
|
|
24
|
+
|
|
25
|
+
- name: Set up QEMU
|
|
26
|
+
uses: docker/setup-qemu-action@v4
|
|
27
|
+
|
|
28
|
+
- name: Set up Docker Buildx
|
|
29
|
+
uses: docker/setup-buildx-action@v4
|
|
30
|
+
|
|
31
|
+
- name: Login to GHCR
|
|
32
|
+
uses: docker/login-action@v4
|
|
33
|
+
with:
|
|
34
|
+
registry: ghcr.io
|
|
35
|
+
username: ${{ github.actor }}
|
|
36
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
37
|
+
|
|
38
|
+
- name: Extract Docker metadata
|
|
39
|
+
id: meta
|
|
40
|
+
uses: docker/metadata-action@v6
|
|
41
|
+
with:
|
|
42
|
+
images: ghcr.io/${{ steps.repo_name.outputs.repo_slug }}
|
|
43
|
+
tags: |
|
|
44
|
+
type=semver,pattern={{version}}
|
|
45
|
+
type=raw,value=latest,enable={{is_default_branch}}
|
|
46
|
+
|
|
47
|
+
- name: Build & Push Docker Image
|
|
48
|
+
uses: docker/build-push-action@v7
|
|
49
|
+
with:
|
|
50
|
+
context: .
|
|
51
|
+
push: true
|
|
52
|
+
platforms: linux/amd64, linux/arm64
|
|
53
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
54
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
55
|
+
cache-from: type=gha
|
|
56
|
+
cache-to: type=gha,mode=max
|
|
57
|
+
|
|
58
|
+
upload-docs:
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
permissions:
|
|
61
|
+
contents: write
|
|
62
|
+
pages: write
|
|
63
|
+
id-token: write
|
|
64
|
+
|
|
65
|
+
steps:
|
|
66
|
+
- name: Get Token
|
|
67
|
+
uses: actions/create-github-app-token@v3
|
|
68
|
+
id: bot_token
|
|
69
|
+
with:
|
|
70
|
+
app-id: ${{ vars.BOT_ID }}
|
|
71
|
+
private-key: ${{ secrets.BOT_KEY }}
|
|
72
|
+
|
|
73
|
+
- name: Checkout
|
|
74
|
+
uses: actions/checkout@v6
|
|
75
|
+
|
|
76
|
+
- uses: actions/setup-node@v6
|
|
77
|
+
with:
|
|
78
|
+
node-version-file: package.json
|
|
79
|
+
cache: npm
|
|
80
|
+
cache-dependency-path: package-lock.json
|
|
81
|
+
|
|
82
|
+
- run: npm ci
|
|
83
|
+
|
|
84
|
+
- run: npx typedoc --entryPointStrategy expand ./src --plugin typedoc-github-theme
|
|
85
|
+
|
|
86
|
+
- name: Deploy to GitHub Pages
|
|
87
|
+
uses: crazy-max/ghaction-github-pages@v5
|
|
88
|
+
with:
|
|
89
|
+
target_branch: gh-pages
|
|
90
|
+
build_dir: docs/
|
|
91
|
+
env:
|
|
92
|
+
GITHUB_TOKEN: ${{ steps.bot_token.outputs.token }}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: PR Validation
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout
|
|
16
|
+
uses: actions/checkout@v6
|
|
17
|
+
|
|
18
|
+
- name: Setup Java
|
|
19
|
+
uses: actions/setup-java@v5
|
|
20
|
+
with:
|
|
21
|
+
distribution: "temurin"
|
|
22
|
+
java-version: 21
|
|
23
|
+
|
|
24
|
+
- name: Setup Gradle
|
|
25
|
+
uses: gradle/actions/setup-gradle@v6
|
|
26
|
+
|
|
27
|
+
- name: Compile
|
|
28
|
+
run: ./gradlew assemble
|
|
29
|
+
|
|
30
|
+
- name: Run Tests
|
|
31
|
+
run: ./gradlew test
|
|
32
|
+
|
|
33
|
+
- name: Lint
|
|
34
|
+
run: ./gradlew lint
|
|
35
|
+
|
|
36
|
+
- name: Check Format
|
|
37
|
+
run: ./gradlew checkFormat
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
issues: write
|
|
10
|
+
pull-requests: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
release:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Get Token
|
|
18
|
+
uses: actions/create-github-app-token@v3
|
|
19
|
+
id: bot_token
|
|
20
|
+
with:
|
|
21
|
+
app-id: ${{ vars.BOT_ID }}
|
|
22
|
+
private-key: ${{ secrets.BOT_KEY }}
|
|
23
|
+
|
|
24
|
+
- uses: danysk/action-checkout@0.2.28
|
|
25
|
+
with:
|
|
26
|
+
token: ${{ steps.bot_token.outputs.token }}
|
|
27
|
+
|
|
28
|
+
- uses: actions/setup-node@v6
|
|
29
|
+
with:
|
|
30
|
+
node-version-file: package.json
|
|
31
|
+
cache: npm
|
|
32
|
+
cache-dependency-path: package-lock.json
|
|
33
|
+
|
|
34
|
+
- name: Install Node.js dependencies
|
|
35
|
+
run: npm ci
|
|
36
|
+
|
|
37
|
+
- name: Run Semantic Release
|
|
38
|
+
id: semantic_release
|
|
39
|
+
run: npx semantic-release
|
|
40
|
+
env:
|
|
41
|
+
GITHUB_TOKEN: ${{ steps.bot_token.outputs.token }}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
�@�PׁJ���qcI%;��
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/classloaderscopes.bin
ADDED
|
Binary file
|
|
Binary file
|
package/.gradle/configuration-cache/44c60c74-05bd-4101-bc53-9ef518aa1ec1/projectfingerprint.bin
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
44c60c74-05bd-4101-bc53-9ef518aa1ec�
|
|
File without changes
|
|
Binary file
|