Skip to content

Commit d4bb2e9

Browse files
committed
added lib
1 parent 579bc42 commit d4bb2e9

17 files changed

Lines changed: 703 additions & 354 deletions

angular.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"mobile-create-data-access": "libs/mobile/create/data-access",
1111
"mobile-create-feature": "libs/mobile/create/feature",
1212
"mobile-create-ui": "libs/mobile/create/ui",
13-
"mobile-shared-ui-new": "libs/mobile/shared/ui/new"
13+
"mobile-shared-ui-new": "libs/mobile/shared/ui/new",
14+
"mobile-shared-ui-new-headless": "libs/mobile/shared/ui/new-headless"
1415
}
1516
}

apps/admin-e2e/project.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,12 @@
1717
},
1818
"lint": {
1919
"executor": "@nrwl/linter:eslint",
20-
"outputs": [
21-
"{options.outputFile}"
22-
],
20+
"outputs": ["{options.outputFile}"],
2321
"options": {
24-
"lintFilePatterns": [
25-
"apps/admin-e2e/**/*.{js,ts}"
26-
]
22+
"lintFilePatterns": ["apps/admin-e2e/**/*.{js,ts}"]
2723
}
2824
}
2925
},
3026
"tags": [],
31-
"implicitDependencies": [
32-
"admin"
33-
]
27+
"implicitDependencies": ["admin"]
3428
}

apps/kharchay-e2e/project.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,12 @@
1717
},
1818
"lint": {
1919
"executor": "@nrwl/linter:eslint",
20-
"outputs": [
21-
"{options.outputFile}"
22-
],
20+
"outputs": ["{options.outputFile}"],
2321
"options": {
24-
"lintFilePatterns": [
25-
"apps/kharchay-e2e/**/*.{js,ts}"
26-
]
22+
"lintFilePatterns": ["apps/kharchay-e2e/**/*.{js,ts}"]
2723
}
2824
}
2925
},
3026
"tags": [],
31-
"implicitDependencies": [
32-
"kharchay"
33-
]
27+
"implicitDependencies": ["kharchay"]
3428
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"extends": ["../../../../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"extends": [
8+
"plugin:@nrwl/nx/angular",
9+
"plugin:@angular-eslint/template/process-inline-templates"
10+
],
11+
"rules": {
12+
"@angular-eslint/directive-selector": [
13+
"error",
14+
{
15+
"type": "attribute",
16+
"prefix": "kh",
17+
"style": "camelCase"
18+
}
19+
],
20+
"@angular-eslint/component-selector": [
21+
"error",
22+
{
23+
"type": "element",
24+
"prefix": "kh",
25+
"style": "kebab-case"
26+
}
27+
]
28+
}
29+
},
30+
{
31+
"files": ["*.html"],
32+
"extends": ["plugin:@nrwl/nx/angular-template"],
33+
"rules": {}
34+
}
35+
]
36+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# mobile-shared-ui-new-headless
2+
3+
This library was generated with [Nx](https://nx.dev).
4+
5+
## Running unit tests
6+
7+
Run `nx test mobile-shared-ui-new-headless` to execute the unit tests.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* eslint-disable */
2+
export default {
3+
displayName: 'mobile-shared-ui-new-headless',
4+
preset: '../../../../../jest.preset.js',
5+
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6+
globals: {
7+
'ts-jest': {
8+
tsconfig: '<rootDir>/tsconfig.spec.json',
9+
stringifyContentPathRegex: '\\.(html|svg)$',
10+
},
11+
},
12+
coverageDirectory:
13+
'../../../../../coverage/libs/mobile/shared/ui/new-headless',
14+
transform: {
15+
'^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular',
16+
},
17+
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
18+
snapshotSerializers: [
19+
'jest-preset-angular/build/serializers/no-ng-attributes',
20+
'jest-preset-angular/build/serializers/ng-snapshot',
21+
'jest-preset-angular/build/serializers/html-comment',
22+
],
23+
};
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"projectType": "library",
3+
"sourceRoot": "libs/mobile/shared/ui/new-headless/src",
4+
"prefix": "kh",
5+
"targets": {
6+
"test": {
7+
"executor": "@nrwl/jest:jest",
8+
"outputs": ["coverage/libs/mobile/shared/ui/new-headless"],
9+
"options": {
10+
"jestConfig": "libs/mobile/shared/ui/new-headless/jest.config.ts",
11+
"passWithNoTests": true
12+
}
13+
},
14+
"lint": {
15+
"executor": "@nrwl/linter:eslint",
16+
"options": {
17+
"lintFilePatterns": [
18+
"libs/mobile/shared/ui/new-headless/**/*.ts",
19+
"libs/mobile/shared/ui/new-headless/**/*.html"
20+
]
21+
}
22+
}
23+
},
24+
"tags": []
25+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './lib/mobile-shared-ui-new-headless.module';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { NgModule } from '@angular/core';
2+
import { CommonModule } from '@angular/common';
3+
4+
@NgModule({
5+
imports: [CommonModule],
6+
})
7+
export class MobileSharedUiNewHeadlessModule {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import 'jest-preset-angular/setup-jest';

0 commit comments

Comments
 (0)