-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(faker): add a new module to the framework for mockups factori…
…es (#6) * feat(faker): ✨ added new module faker (mockup factory) * fix(ci): delte lock file * fix(kafka-provider): fix environemt config types * fix(amqp-provider): fix default config types
- Loading branch information
1 parent
972f636
commit 5a89e68
Showing
44 changed files
with
1,773 additions
and
664 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,9 @@ | |
"openc2", | ||
"app-wrapper", | ||
"ci", | ||
"doorkeeper" | ||
"doorkeeper", | ||
"faker", | ||
"kafka-provider" | ||
], | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Copyright 2022 Mytra Control S.L. All rights reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file | ||
* or at https://opensource.org/licenses/MIT. | ||
*/ | ||
|
||
const fileName = './sonar-project.properties'; | ||
|
||
import fs from 'fs'; | ||
import { globSync } from 'glob'; | ||
|
||
const folders = globSync("packages/*/*"); | ||
console.log(folders); | ||
fs.writeFileSync(fileName, `sonar.projectKey=Mytra-Development-Framework-NDF-TypeScript\n`); | ||
fs.appendFileSync(fileName, `sonar.projectName=Mytra Development Framework - NDF - TypeScript\n`); | ||
fs.appendFileSync(fileName, `sonar.modules=${folders.map((folder) => { | ||
const parts = folder.split('/'); | ||
return `${parts[parts.length - 2]}-${parts[parts.length - 1]}`; | ||
}).join(',')}\n`); | ||
fs.appendFileSync(fileName, 'sonar.exclusions=coveragereport/**/*,packages/**/*.test.ts,packages/**/test/*.ts,packages/**/*.js\n\n'); | ||
for (const folder of folders) { | ||
const parts = folder.split('/'); | ||
const subFolderPath = `${parts[parts.length - 2]}/${parts[parts.length - 1]}`; | ||
const moduleName = `${parts[parts.length - 2]}-${parts[parts.length - 1]}`; | ||
fs.appendFileSync(fileName, `${moduleName}.sonar.projectName=NDS-${moduleName.toLocaleUpperCase()}-Typescript\n`); | ||
fs.appendFileSync(fileName, `${moduleName}.sonar.projectBaseDir=${folder}\n`); | ||
fs.appendFileSync(fileName, `${moduleName}.sonar.sources=src\n`); | ||
fs.appendFileSync(fileName, `${moduleName}.sonar.inclusions=src/**/*\n`); | ||
fs.appendFileSync(fileName, `${moduleName}.sonar.exclusions=src/**/*.test.ts,src/**/test/*.ts\n`); | ||
fs.appendFileSync(fileName, `${moduleName}.sonar.test.inclusions=src/**/*.test.ts\n`); | ||
fs.appendFileSync(fileName, `${moduleName}.sonar.javascript.lcov.reportPaths=../../../coverage/${subFolderPath}/lcov.info\n`); | ||
fs.appendFileSync(fileName, `${moduleName}.sonar.junit.reportPaths=../../../coverage/${subFolderPath}/test-results.xml\n`); | ||
fs.appendFileSync(fileName, `${moduleName}.sonar.typescript.tsconfigPath=tsconfig.build.json\n\n`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"entryPoints": [ | ||
"src/index.ts" | ||
], | ||
"tsconfig": "./tsconfig.build.json", | ||
"entryPointStrategy": "resolve", | ||
"exclude": [ | ||
"**/dist/**", | ||
"**/node_modules", | ||
"src/**/*.test.ts", | ||
"src/**/test/*.*" | ||
], | ||
"externalPattern": ["**/node_modules/**"], | ||
"excludeExternals": true, | ||
"excludePrivate": true, | ||
"excludeProtected": true, | ||
"excludeInternal": true, | ||
"includes": [], | ||
"media": "media", | ||
"out": "../../../docs/api/doorkeeper", | ||
"markedOptions": { | ||
"gfm": true | ||
}, | ||
"name": "@mdf.js/doorkeeper", | ||
"includeVersion": true, | ||
"disableSources": true, | ||
"excludeTags": [], | ||
"readme": "README.md", | ||
"categorizeByGroup": false, | ||
"categoryOrder": [], | ||
"cleanOutputDir": true, | ||
"gitRevision": "master", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.eslintrc.js | ||
stryker.conf.js | ||
jest.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Copyright 2022 Mytra Control S.L. All rights reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file | ||
* or at https://opensource.org/licenses/MIT. | ||
*/ | ||
module.exports = require('@mdf.js/repo-config').getEslintConfig(); |
Oops, something went wrong.