Skip to content
Snippets Groups Projects
Commit 6c880f69 authored by thijsheijden's avatar thijsheijden
Browse files

build(authorization): added authorization library to workspace

parent f4b2ae77
No related branches found
No related tags found
2 merge requests!13merge develop into main,!8feat(authorization): first version that works well
Showing
with 120 additions and 0 deletions
{
"presets": [["@nrwl/web/babel", { "useBuiltIns": "usage" }]]
}
{
"extends": ["../../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
# shared-data-access-authorization
This library was generated with [Nx](https://nx.dev).
## Running unit tests
Run `nx test shared-data-access-authorization` to execute the unit tests via [Jest](https://jestjs.io).
module.exports = {
displayName: 'shared-data-access-authorization',
preset: '../../../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
transform: {
'^.+\\.[tj]sx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory:
'../../../../coverage/libs/shared/data-access/authorization',
};
{
"root": "libs/shared/data-access/authorization",
"sourceRoot": "libs/shared/data-access/authorization/src",
"projectType": "library",
"targets": {
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/shared/data-access/authorization/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/libs/shared/data-access/authorization"],
"options": {
"jestConfig": "libs/shared/data-access/authorization/jest.config.js",
"passWithNoTests": true
}
}
},
"tags": []
}
export * from './lib/authorizationHandler';
export const test = 'hey!';
{
"extends": "../../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
],
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
}
}
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../../dist/out-tsc",
"declaration": true,
"types": []
},
"include": ["**/*.ts"],
"exclude": ["**/*.spec.ts"]
}
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": [
"**/*.test.ts",
"**/*.spec.ts",
"**/*.test.tsx",
"**/*.spec.tsx",
"**/*.test.js",
"**/*.spec.js",
"**/*.test.jsx",
"**/*.spec.jsx",
"**/*.d.ts"
]
}
......@@ -15,6 +15,9 @@
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
"@graphpolaris/shared/data-access/authorization": [
"libs/shared/data-access/authorization/src/index.ts"
],
"@graphpolaris/shared/data-access/store": [
"libs/shared/data-access/store/src/index.ts"
]
......
......@@ -3,6 +3,7 @@
"projects": {
"graphpolaris": "apps/graphpolaris",
"graphpolaris-e2e": "apps/graphpolaris-e2e",
"shared-data-access-authorization": "libs/shared/data-access/authorization",
"shared-data-access-store": "libs/shared/data-access/store"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment