Generate contact-model library

Kevin C. Coram 2019-08-19 21:27:15 -04:00
parent 4baa840557
commit 844b279afb
12 changed files with 145 additions and 3 deletions

View File

@ -1,6 +1,32 @@
{ {
"version": 1, "version": 1,
"projects": {}, "projects": {
"contact-model": {
"root": "libs/contact-model",
"sourceRoot": "libs/contact-model/src",
"projectType": "library",
"schematics": {},
"architect": {
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"libs/contact-model/tsconfig.lib.json",
"libs/contact-model/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/contact-model/**"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/contact-model/jest.config.js",
"tsConfig": "libs/contact-model/tsconfig.spec.json"
}
}
}
}
},
"cli": { "cli": {
"defaultCollection": "@nrwl/workspace" "defaultCollection": "@nrwl/workspace"
} }

View File

@ -0,0 +1,7 @@
# 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).

View File

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

View File

@ -0,0 +1 @@
export * from './lib/contact-model';

View File

@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"types": ["node", "jest"]
},
"include": ["**/*.ts"]
}

View File

@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
},
"exclude": ["**/*.spec.ts"],
"include": ["**/*.ts"]
}

View File

@ -0,0 +1,15 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": [
"**/*.spec.ts",
"**/*.spec.tsx",
"**/*.spec.js",
"**/*.spec.jsx",
"**/*.d.ts"
]
}

View File

@ -0,0 +1 @@
{ "extends": "../../tslint.json", "rules": [] }

View File

@ -7,5 +7,9 @@
"tslint.json": "*", "tslint.json": "*",
"nx.json": "*" "nx.json": "*"
}, },
"projects": {} "projects": {
"contact-model": {
"tags": []
}
}
} }

View File

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

61
tslint.json Normal file
View File

@ -0,0 +1,61 @@
{
"rulesDirectory": ["node_modules/@nrwl/workspace/src/tslint"],
"rules": {
"arrow-return-shorthand": true,
"callable-types": true,
"class-name": true,
"deprecation": {
"severity": "warn"
},
"forin": true,
"import-blacklist": [true, "rxjs/Rx"],
"interface-over-type-literal": true,
"member-access": false,
"member-ordering": [
true,
{
"order": [
"static-field",
"instance-field",
"static-method",
"instance-method"
]
}
],
"no-arg": true,
"no-bitwise": true,
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
"no-construct": true,
"no-debugger": true,
"no-duplicate-super": true,
"no-empty": false,
"no-empty-interface": true,
"no-eval": true,
"no-inferrable-types": [true, "ignore-params"],
"no-misused-new": true,
"no-non-null-assertion": true,
"no-shadowed-variable": true,
"no-string-literal": false,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-unnecessary-initializer": true,
"no-unused-expression": true,
"no-var-keyword": true,
"object-literal-sort-keys": false,
"prefer-const": true,
"radix": true,
"triple-equals": [true, "allow-null-check"],
"unified-signatures": true,
"variable-name": false,
"nx-enforce-module-boundaries": [
true,
{
"allow": [],
"depConstraints": [
{ "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }
]
}
]
}
}