Skip to content

Commit

Permalink
manual merge into a single main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
maxstreifeneder committed Feb 6, 2023
1 parent 6721295 commit a432178
Show file tree
Hide file tree
Showing 506 changed files with 15,553 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .cdsprettier.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"alignAfterKey": true,
"alignAnnotations": true,
"alignPreAnnotations": true,
"alignPostAnnotations": true,
"alignColonsInAnnotations": true,
"alignValuesInAnnotations": true,
"alignActionsAndFunctions": true,
"alignActionNames": true,
"alignActionReturns": true,
"alignAs": true,
"alignAsInEntities": true,
"alignAsInSelectItems": true,
"alignAsInUsing": true,
"alignExpressionsAndConditions": true,
"alignExprAndCondWithinBlock": true,
"alignTypes": true,
"alignColonsBeforeTypes": true,
"alignEqualsAfterTypes": true,
"alignTypesWithinBlock": true,
"alignCompositionStructToRight": true,
"cqlKeywordCapitalization": "lower",
"keepPreAnnotationsInOriginalLine": "keepLine",
"keepPostAnnotationsInOriginalLine": "keepLine",
"keepEmptyBracketsTogether": true,
"keepSingleLinedBlocksTogether": true,
"keepOriginalEmptyLines": true,
"maxKeepEmptyLines": 2,
"openingBraceInNewLine": false,
"selectInNewLine": true,
"tabSize": 2,
"finalNewline": true,
"maxDocCommentLine": 60,
"whitespaceBeforeColon": true,
"whitespaceBeforeColonInAnnotation": false,
"whitespaceAfterColon": true,
"whitespaceAfterColonInAnnotation": true,
"whitespaceAfterComma": true,
"whitespaceAroundAlignedOps": true,
"whitespaceAroundBinaryOps": true,
"whitespaceWithinBrackets": false
}
69 changes: 69 additions & 0 deletions .cdsrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"features": {
"fetch_csrf": true
},
"requires": {
"[production]": {
"OP_API_BUSINESS_PARTNER_SRV": {
"kind": "odata-v2",
"model": "srv/external/OP_API_BUSINESS_PARTNER_SRV",
"credentials": {
"destination": "BusinessPartner",
"path": "/sap/opu/odata/sap/API_BUSINESS_PARTNER",
"requestTimeout": 1000000
}
}
},
"[hybrid]": {
"OP_API_BUSINESS_PARTNER_SRV": {
"kind": "odata-v2",
"model": "srv/external/OP_API_BUSINESS_PARTNER_SRV",
"credentials": {
"destination": "BusinessPartner",
"path": "/sap/opu/odata/sap/API_BUSINESS_PARTNER",
"requestTimeout": 1000000
}
}
},
"OP_API_BUSINESS_PARTNER_SRV": {
"kind": "odata-v2",
"model": "srv/external/OP_API_BUSINESS_PARTNER_SRV"
}
},
"[development]": {
"auth": {
"passport": {
"strategy": "mock",
"users": {
"bp-viewer": {
"password": "123",
"ID": "bp-viewer"
},
"bp-admin": {
"password": "123",
"ID": "bp-admin",
"roles": ["BPAdmin"]
}
}
}
}
},
"[hybrid]": {
"auth": {
"passport": {
"strategy": "mock",
"users": {
"bp-viewer": {
"password": "123",
"ID": "bp-viewer"
},
"bp-admin": {
"password": "123",
"ID": "bp-admin",
"roles": ["BPAdmin"]
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*node_modules*
gen
38 changes: 38 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"root": false,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@sap/cds/recommended"
],
"env": {
"node": true,
"es6": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"globals": {
"SELECT": true,
"INSERT": true,
"UPDATE": true,
"DELETE": true,
"CREATE": true,
"DROP": true,
"cds": true
},
"rules": {
"no-console": "warn",
"require-atomic-updates": "off",
"@typescript-eslint/no-namespace": "off"
}
}
46 changes: 46 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# CAP BusinessPartnerVerification
_out
*.db
connection.properties
default-*.json
gen/*
node_modules/
target/
resources/
dist/
*.zip
*package-lock.json

# Web IDE, App Studio
.che/
.gen/

# MTA
*_mta_build_tmp
*.mtar
mta_archives/
.vscode/settings.json
Makefile*

# Other
.DS_Store
*.orig
*.log

*.iml
*.flattened-pom.xml

# IDEs
# .vscode
# .idea

# added by cds deploy
default-env.json

# auto generated wildcard
.env*
*businesspartners-content.zip
# added by cds bind
.cdsrc-private.json

mochawesome-report/
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run pre-commit
43 changes: 43 additions & 0 deletions .pipeline/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Project configuration
general:
pipeline: 'sap-cloud-sdk' # this line is mandatory
buildTool: 'mta' # or 'npm'

# Stages configuration
stages:
Build:
npmExecuteLint: true # true, if you want to run a lint check that verifies the syntax of your JavaScript code

Additional Unit Tests:
npmExecuteScripts: true

Release:
cloudFoundryDeploy: true # true, if you want to deploy to Cloud Foundry. If you set this parameter to true, the CloudFoundryDeploy step is mandatory
tmsUpload: false # true if you want to upload your artifact to SAP Cloud Transport Management. If you set this parameter to true, the tmsUpload step is mandatory

# Steps configuration
steps:
npmExecuteLint:
failOnError: false # true, if you want your pipeline to fail, if the lint check reveals any errors

npmExecuteScripts: # only relevant, if you set the npmExecuteScripts parameter in the Additional Unit Tests stage to true
runScripts:
- test

mtaBuild:
buildTarget: 'CF'
extensions: 'live.mtaext' # live.mtaext for BTP Live landscape or trial.mtaext for BTP Trial Account
mtaBuildTool: 'cloudMbt'

cloudFoundryDeploy: # only relevant, if you set the cloudFoundryDeploy parameter in the Release stage to true
cloudFoundry:
credentialsId: 'cf-credential'
apiEndpoint: 'https://api.cf.eu10-004.hana.ondemand.com/' # for example, https://api.cf.eu10.hana.ondemand.com
org: 'tfe-dev-eu10-004' # your cloud foundry org name
space: 'dev' # your cloud foundry space name
mtaDeployParameters: '-f --version-rule ALL'

# tmsUpload: # only relevant, if you set the tmsUpload parameter in the Release stage to true
# nodeName: 'QA'
# credentialsId: 'tms'
# customDescription: 'TMS Upload'
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.md
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "none",
"singleQuote": true,
"printWidth": 4000,
"semi": false
}
45 changes: 45 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "DEBUG=hana cds-ts watch --profile hybrid",
"name": "cds-ts watch",
"request": "launch",
"type": "node-terminal",
"skipFiles": ["<node_internals>/**"],
"envFile": "${workspaceFolder}/.env"
},
{
"command": "DEBUG=sqlite cds-ts watch --with-mocks --in-memory",
"name": "cds-ts in memory",
"request": "launch",
"type": "node-terminal",
"skipFiles": ["<node_internals>/**"]
},
{
"command": "DEBUG=sqlite ts-mocha tests/general.spec.ts --timeout 1500000",
"name": "ts-mocha tests/general.spec.ts --timeout 15000",
"request": "launch",
"type": "node-terminal",
"skipFiles": ["<node_internals>/**"]
},
{
"name": "Attach to a Cloud Foundry Instance on Port 9229",
"port": 9229,
"request": "attach",
"type": "node",
"localRoot": "${workspaceFolder}",
"remoteRoot": "/home/vcap/app"
},
{
"command": "npm run start:wdi5",
"name": "npm run wdi5",
"request": "launch",
"type": "node-terminal",
"skipFiles": ["<node_internals>/**"]
}
]
}
Loading

0 comments on commit a432178

Please sign in to comment.