Refactor rename lib/contact-model -> lib/contact
parent
2c6fde0acc
commit
28f56f2e85
18
angular.json
18
angular.json
|
@ -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,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,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({
|
||||
|
|
|
@ -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,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({
|
||||
|
|
|
@ -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).
|
|
@ -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).
|
|
@ -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',
|
||||
};
|
|
@ -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 = {
|
2
nx.json
2
nx.json
|
@ -8,7 +8,7 @@
|
|||
"nx.json": "*"
|
||||
},
|
||||
"projects": {
|
||||
"contact-model": {
|
||||
"contact": {
|
||||
"tags": []
|
||||
},
|
||||
"parent-form-e2e": {
|
||||
|
|
|
@ -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…
Reference in New Issue