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

View File

@ -1,5 +1,5 @@
import { FormGroup, FormBuilder, FormArray } from '@angular/forms'; 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'; import { Component, OnInit, Input } from '@angular/core';
@Component({ @Component({

View File

@ -1,5 +1,5 @@
import { FormArray, FormBuilder, FormGroup, FormControl } from '@angular/forms'; 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'; import { Component, OnInit, Input } from '@angular/core';
@Component({ @Component({

View File

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

View File

@ -1,5 +1,5 @@
import { FormGroup, FormBuilder, FormControl } from '@angular/forms'; 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'; import { Component, OnInit, Input } from '@angular/core';
@Component({ @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 = { module.exports = {
name: 'contact-model', name: 'contact',
preset: '../../jest.config.js', preset: '../../jest.config.js',
transform: { transform: {
'^.+\\.[tj]sx?$': 'ts-jest' '^.+\\.[tj]sx?$': 'ts-jest'
}, },
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], 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 { Injectable } from '@angular/core';
import { Contact } from '@nested-forms/contact-model'; import { Contact } from './contact-model';
import { Observable, of } from 'rxjs'; import { Observable, of } from 'rxjs';
const contact: Contact = { const contact: Contact = {

View File

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

View File

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