Skip to content

Commit

Permalink
Merge pull request #177 from valerymelou/feature/cms
Browse files Browse the repository at this point in the history
feat: add the cms and blog services to query data
  • Loading branch information
valerymelou authored May 25, 2024
2 parents 3f757bd + f4ff84e commit 693ecca
Show file tree
Hide file tree
Showing 32 changed files with 1,540 additions and 1 deletion.
36 changes: 36 additions & 0 deletions libs/blog/data-access/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"extends": ["../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts"],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "vmelou",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "vmelou",
"style": "kebab-case"
}
]
},
"extends": [
"plugin:@nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
]
},
{
"files": ["*.html"],
"extends": ["plugin:@nx/angular-template"],
"rules": {}
}
]
}
7 changes: 7 additions & 0 deletions libs/blog/data-access/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# blog-data-access

This library was generated with [Nx](https://nx.dev).

## Running unit tests

Run `nx test blog-data-access` to execute the unit tests.
22 changes: 22 additions & 0 deletions libs/blog/data-access/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* eslint-disable */
export default {
displayName: 'blog-data-access',
preset: '../../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
coverageDirectory: '../../../coverage/libs/blog/data-access',
transform: {
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
],
},
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
};
34 changes: 34 additions & 0 deletions libs/blog/data-access/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "blog-data-access",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/blog/data-access/src",
"prefix": "vmelou",
"tags": [],
"projectType": "library",
"targets": {
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/blog/data-access/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"libs/blog/data-access/**/*.ts",
"libs/blog/data-access/**/*.html"
]
}
}
}
}
6 changes: 6 additions & 0 deletions libs/blog/data-access/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from './lib/article';
export * from './lib/article.service';
export * from './lib/asset';
export * from './lib/results';
export * from './lib/tag';
export * from './lib/tag.service';
Loading

0 comments on commit 693ecca

Please sign in to comment.