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

master
Kevin C. Coram 2019-09-04 21:36:09 -04:00
parent 2c6fde0acc
commit 28f56f2e85
Signed by: kevin
GPG Key ID: 0342351B3D61AD35
19 changed files with 26 additions and 26 deletions

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"
}
}
}

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({

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({

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';

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({

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
libs/contact/README.md Normal file
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).

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',
};

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 = {

View File

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

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"]