Replace HapiJs with NestJs as API framework

Change-Id: I54dc6c5f6377358e4f6614378fbb253b0c7841a9
This commit is contained in:
Roman Jaroš 2023-09-12 21:11:03 +02:00
parent 4453fe7933
commit 6ea4c9022d
32 changed files with 241 additions and 229 deletions

12
source/__/.editorconfig Normal file
View file

@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = tab
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false

24
source/__/.tsconfig.json Normal file
View file

@ -0,0 +1,24 @@
{
"compilerOptions": {
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipLibCheck": true,
"sourceMap": true,
"esModuleInterop": true,
"allowJs": true,
"outDir": "build",
"module": "commonjs",
"target": "es6",
"lib": [
"es6",
"dom"
],
},
"exclude": [
"./node_modules",
"./src/**/__tests__/*.tsx"
]
}

7
source/__/Jenkinsfile vendored Normal file
View file

@ -0,0 +1,7 @@
@Library('jenkins-lib')
import FrontendBuild
FrontendBuild({
name = '$(appName)'
port = '$(appPort):80'
})

2
source/__/gitignore Normal file
View file

@ -0,0 +1,2 @@
build/
node_modules/

3
source/__/npmrc Normal file
View file

@ -0,0 +1,3 @@
always-auth=true
@prokyon:registry=https://npm.romanjaros.dev
@toolkit:registry=https://npm.romanjaros.dev

16
source/__/package.json Normal file
View file

@ -0,0 +1,16 @@
{
"name": "$(appName)",
"version": "0.1.0",
"author": "Roman Jaroš",
"license": "ISC",
"scripts": {
"dev": "pnpm -r dev",
"test": "pnpm -r test",
"test:e2e": "pnpm -r test:e2e"
},
"dependencies": {},
"devDependencies": {
"@types/node": "18.11.0"
},
"peerDependencies": {}
}

View file

@ -0,0 +1,2 @@
packages:
- "apps/*"

9
source/__/prettierrc Normal file
View file

@ -0,0 +1,9 @@
{
"useTabs": true,
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"parser": "typescript",
"printWidth": 120,
"bracketSameLine": true
}

View file

@ -0,0 +1,5 @@
sonar.projectKey=$(appName)
sonar.projectName=$(appName)
sonar.inclusions=apps/**
sonar.coverage.exclusions=**/__tests__/**
sonar.javascript.lcov.reportPaths=apps/**/jest/lcov.info