Browse Source

Refactor rename lib/contact-model -> lib/contact

tags/part_1
Kevin C. Coram 1 year ago
parent
commit
28f56f2e85
Signed by: kevin GPG Key ID: 0342351B3D61AD35
19 changed files with 26 additions and 26 deletions
  1. +9
    -9
      angular.json
  2. +1
    -1
      apps/parent-form/src/app/address-list/address-list.component.ts
  3. +1
    -1
      apps/parent-form/src/app/address/address.component.ts
  4. +2
    -2
      apps/parent-form/src/app/app.component.ts
  5. +1
    -1
      apps/parent-form/src/app/name/name.component.ts
  6. +0
    -7
      libs/contact-model/README.md
  7. +7
    -0
      libs/contact/README.md
  8. +2
    -2
      libs/contact/jest.config.js
  9. +0
    -0
      libs/contact/src/index.ts
  10. +0
    -0
      libs/contact/src/lib/contact-model.ts
  11. +0
    -0
      libs/contact/src/lib/contact.service.spec.ts
  12. +1
    -1
      libs/contact/src/lib/contact.service.ts
  13. +0
    -0
      libs/contact/src/test-setup.ts
  14. +0
    -0
      libs/contact/tsconfig.json
  15. +0
    -0
      libs/contact/tsconfig.lib.json
  16. +0
    -0
      libs/contact/tsconfig.spec.json
  17. +0
    -0
      libs/contact/tslint.json
  18. +1
    -1
      nx.json
  19. +1
    -1
      tsconfig.json

+ 9
- 9
angular.json View File

@@ -1,9 +1,9 @@
{
"version": 1,
"projects": {
"contact-model": {
"root": "libs/contact-model",
"sourceRoot": "libs/contact-model/src",
"contact": {
"root": "libs/contact",
"sourceRoot": "libs/contact/src",
"projectType": "library",
"schematics": {},
"architect": {
@@ -11,18 +11,18 @@
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"libs/contact-model/tsconfig.lib.json",
"libs/contact-model/tsconfig.spec.json"
"libs/contact/tsconfig.lib.json",
"libs/contact/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/contact-model/**"]
"exclude": ["**/node_modules/**", "!libs/contact/**"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/contact-model/jest.config.js",
"tsConfig": "libs/contact-model/tsconfig.spec.json",
"setupFile": "libs/contact-model/src/test-setup.ts"
"jestConfig": "libs/contact/jest.config.js",
"tsConfig": "libs/contact/tsconfig.spec.json",
"setupFile": "libs/contact/src/test-setup.ts"
}
}
}


+ 1
- 1
apps/parent-form/src/app/address-list/address-list.component.ts View File

@@ -1,5 +1,5 @@
import { FormGroup, FormBuilder, FormArray } from '@angular/forms';
import { Address } from '@nested-forms/contact-model';
import { Address } from '@nested-forms/contact';
import { Component, OnInit, Input } from '@angular/core';

@Component({


+ 1
- 1
apps/parent-form/src/app/address/address.component.ts View File

@@ -1,5 +1,5 @@
import { FormArray, FormBuilder, FormGroup, FormControl } from '@angular/forms';
import { Address } from '@nested-forms/contact-model';
import { Address } from '@nested-forms/contact';
import { Component, OnInit, Input } from '@angular/core';

@Component({


+ 2
- 2
apps/parent-form/src/app/app.component.ts View File

@@ -1,5 +1,5 @@
import { ContactService } from './../../../../libs/contact-model/src/lib/contact.service';
import { Contact } from '@nested-forms/contact-model';
import { ContactService } from './../../../../libs/contact/src/lib/contact.service';
import { Contact } from '@nested-forms/contact';
import { Component, OnInit, OnDestroy } from '@angular/core';
import { FormGroup, FormBuilder } from '@angular/forms';
import { Subscription } from 'rxjs';


+ 1
- 1
apps/parent-form/src/app/name/name.component.ts View File

@@ -1,5 +1,5 @@
import { FormGroup, FormBuilder, FormControl } from '@angular/forms';
import { Name } from '@nested-forms/contact-model';
import { Name } from '@nested-forms/contact';
import { Component, OnInit, Input } from '@angular/core';

@Component({


+ 0
- 7
libs/contact-model/README.md View File

@@ -1,7 +0,0 @@
# contact-model

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

## Running unit tests

Run `ng test contact-model` to execute the unit tests via [Jest](https://jestjs.io).

+ 7
- 0
libs/contact/README.md View File

@@ -0,0 +1,7 @@
# contact

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

## Running unit tests

Run `ng test contact` to execute the unit tests via [Jest](https://jestjs.io).

libs/contact-model/jest.config.js → libs/contact/jest.config.js View File

@@ -1,9 +1,9 @@
module.exports = {
name: 'contact-model',
name: 'contact',
preset: '../../jest.config.js',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest'
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
coverageDirectory: '../../coverage/libs/contact-model',
coverageDirectory: '../../coverage/libs/contact',
};

libs/contact-model/src/index.ts → libs/contact/src/index.ts View File


libs/contact-model/src/lib/contact-model.ts → libs/contact/src/lib/contact-model.ts View File


libs/contact-model/src/lib/contact.service.spec.ts → libs/contact/src/lib/contact.service.spec.ts View File


libs/contact-model/src/lib/contact.service.ts → libs/contact/src/lib/contact.service.ts View File

@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';

import { Contact } from '@nested-forms/contact-model';
import { Contact } from './contact-model';
import { Observable, of } from 'rxjs';

const contact: Contact = {

libs/contact-model/src/test-setup.ts → libs/contact/src/test-setup.ts View File


libs/contact-model/tsconfig.json → libs/contact/tsconfig.json View File


libs/contact-model/tsconfig.lib.json → libs/contact/tsconfig.lib.json View File


libs/contact-model/tsconfig.spec.json → libs/contact/tsconfig.spec.json View File


libs/contact-model/tslint.json → libs/contact/tslint.json View File


+ 1
- 1
nx.json View File

@@ -8,7 +8,7 @@
"nx.json": "*"
},
"projects": {
"contact-model": {
"contact": {
"tags": []
},
"parent-form-e2e": {


+ 1
- 1
tsconfig.json View File

@@ -16,7 +16,7 @@
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
"@nested-forms/contact-model": ["libs/contact-model/src/index.ts"]
"@nested-forms/contact": ["libs/contact/src/index.ts"]
}
},
"exclude": ["node_modules", "tmp"]


Loading…
Cancel
Save