-
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.
* feat(http): refactor http layer * feat(api): implement api layer for pizza-store service * feat(users): implement users page * docs: refactor architecture docs * refactor: fix sonar issues
- Loading branch information
Showing
72 changed files
with
1,889 additions
and
393 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"depcruise", | ||
"devtool", | ||
"devtools", | ||
"mockapi", | ||
"mqpacker" | ||
], | ||
"[javascript]": { | ||
|
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,20 @@ | ||
// @ts-check | ||
const common = require('./depcruise.common') | ||
|
||
module.exports = common | ||
.optionsBuilder() | ||
.withReporterOptions({ | ||
dot: { | ||
theme: { | ||
graph: { rankdir: 'TD' }, | ||
}, | ||
filters: { | ||
includeOnly: {}, | ||
focus: {}, | ||
exclude: { | ||
path: ['^node_modules', ...common.ANY_TESTS, ...common.ANY_TYPINGS], | ||
}, | ||
}, | ||
}, | ||
}) | ||
.options() |
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,26 @@ | ||
// @ts-check | ||
const common = require('./depcruise.common') | ||
|
||
module.exports = common | ||
.optionsBuilder() | ||
.withReporterOptions({ | ||
dot: { | ||
theme: { | ||
graph: { rankdir: 'TD' }, | ||
}, | ||
collapsePattern: [ | ||
'src/common/[^/]+', | ||
'src/api/[^/]+', | ||
'src/modules/[^/]+', | ||
'src/app/[^/]+', | ||
], | ||
filters: { | ||
includeOnly: {}, | ||
focus: {}, | ||
exclude: { | ||
path: ['^node_modules', ...common.ANY_TESTS, ...common.ANY_TYPINGS], | ||
}, | ||
}, | ||
}, | ||
}) | ||
.options() |
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,75 @@ | ||
// @ts-check | ||
|
||
const common = { | ||
COMMON_ANY: '^src/common/', | ||
API_ANY: '^src/api/', | ||
MODULES_ANY: '^src/modules/', | ||
MODULE_PAGES: '^src/modules/\\w+/pages/', | ||
MODULE_MODEL: '^src/modules/\\w+/model/', | ||
MODULE_UI: '^src/modules/\\w+/ui/', | ||
APP_ANY: '^src/app/', | ||
ANY_TESTS: ['testing/', '\\.(spec|testing|factories)\\.(tsx|ts)$'], | ||
ANY_TYPINGS: ['(types|typings)/', '(type|types|typings)\\.(tsx|ts)$'], | ||
optionsBuilder, | ||
} | ||
|
||
function optionsBuilder() { | ||
/** | ||
* @type { import('./depcruise.types').DepcruiseConfig['forbidden'] } | ||
*/ | ||
let forbidden = [] | ||
|
||
/** | ||
* @type { import('./depcruise.types').DepcruiseConfig['options']['reporterOptions'] } | ||
*/ | ||
let reporterOptions = {} | ||
|
||
const builder = { | ||
/** | ||
* @param {typeof forbidden } rules | ||
* @return {typeof builder} | ||
*/ | ||
withForbidden(rules) { | ||
forbidden = rules | ||
return builder | ||
}, | ||
/** | ||
* @param {typeof reporterOptions } options | ||
* @return {typeof builder} | ||
*/ | ||
withReporterOptions(options) { | ||
reporterOptions = options | ||
return builder | ||
}, | ||
/** | ||
* @param {typeof reporterOptions } options | ||
* @return { import('./depcruise.types').DepcruiseConfig } | ||
*/ | ||
options() { | ||
return { | ||
forbidden, | ||
options: { | ||
doNotFollow: { | ||
path: 'node_modules', | ||
dependencyTypes: [ | ||
'npm', | ||
'npm-dev', | ||
'npm-optional', | ||
'npm-peer', | ||
'npm-bundled', | ||
'npm-no-pkg', | ||
], | ||
}, | ||
tsPreCompilationDeps: true, | ||
tsConfig: { | ||
fileName: 'tsconfig.json', | ||
}, | ||
reporterOptions, | ||
}, | ||
} | ||
}, | ||
} | ||
return builder | ||
} | ||
|
||
module.exports = common |
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,4 @@ | ||
import { IOptions, IRuleSetType } from 'dependency-cruiser' | ||
import { OmitStrict } from '../src/common/typings/omit-strict.typings' | ||
|
||
export type DepcruiseConfig = { options: IOptions } & OmitStrict<IRuleSetType, 'options'> |
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
Oops, something went wrong.