fix local dependencies in demo project

This commit is contained in:
Mathias Beaulieu-Duncan 2024-08-25 18:31:49 -04:00
parent 5a9eee1d14
commit 8c1ba32818
Signed by: mathias
GPG Key ID: 1C16CF05BAF9162D
10 changed files with 1785 additions and 944 deletions

View File

@ -22,7 +22,7 @@
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": false, "aot": true,
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets" "src/assets"
@ -45,7 +45,6 @@
"sourceMap": false, "sourceMap": false,
"extractCss": true, "extractCss": true,
"namedChunks": false, "namedChunks": false,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": false, "vendorChunk": false,
"buildOptimizer": true, "buildOptimizer": true,
@ -137,7 +136,12 @@
"tsConfig": "projects/openharbor/ngx-data/tsconfig.lib.json", "tsConfig": "projects/openharbor/ngx-data/tsconfig.lib.json",
"project": "projects/openharbor/ngx-data/ng-package.json" "project": "projects/openharbor/ngx-data/ng-package.json"
} }
}, , "configurations": {
"production": {
"tsConfig": "projects/openharbor/ngx-data/tsconfig.lib.prod.json"
}
}
},
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular-devkit/build-angular:karma",
"options": { "options": {
@ -172,7 +176,12 @@
"tsConfig": "projects/openharbor/ngx-data-apollo/tsconfig.lib.json", "tsConfig": "projects/openharbor/ngx-data-apollo/tsconfig.lib.json",
"project": "projects/openharbor/ngx-data-apollo/ng-package.json" "project": "projects/openharbor/ngx-data-apollo/ng-package.json"
} }
}, , "configurations": {
"production": {
"tsConfig": "projects/openharbor/ngx-data-apollo/tsconfig.lib.prod.json"
}
}
},
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular-devkit/build-angular:karma",
"options": { "options": {

View File

@ -13,14 +13,14 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~8.2.4", "@angular/animations": "~9.1.13",
"@angular/common": "~8.2.4", "@angular/common": "~9.1.13",
"@angular/compiler": "~8.2.4", "@angular/compiler": "~9.1.13",
"@angular/core": "~8.2.4", "@angular/core": "~9.1.13",
"@angular/forms": "~8.2.4", "@angular/forms": "~9.1.13",
"@angular/platform-browser": "~8.2.4", "@angular/platform-browser": "~9.1.13",
"@angular/platform-browser-dynamic": "~8.2.4", "@angular/platform-browser-dynamic": "~9.1.13",
"@angular/router": "~8.2.4", "@angular/router": "~9.1.13",
"@poweredsoft/data": "0.0.32", "@poweredsoft/data": "0.0.32",
"apollo-angular": "^1.8.0", "apollo-angular": "^1.8.0",
"apollo-angular-link-http": "^1.9.0", "apollo-angular-link-http": "^1.9.0",
@ -31,18 +31,18 @@
"graphql-tag": "^2.10.0", "graphql-tag": "^2.10.0",
"rxjs": "~6.5.3", "rxjs": "~6.5.3",
"tslib": "^1.10.0", "tslib": "^1.10.0",
"zone.js": "~0.9.1" "zone.js": "~0.10.2"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.803.3", "@angular-devkit/build-angular": "~0.901.15",
"@angular-devkit/build-ng-packagr": "~0.803.3", "@angular-devkit/build-ng-packagr": "~0.901.15",
"@angular/cli": "~8.3.3", "@angular/cli": "~9.1.15",
"@angular/compiler-cli": "~8.2.4", "@angular/compiler-cli": "~9.1.13",
"@angular/language-service": "~8.2.4", "@angular/language-service": "~9.1.13",
"@types/node": "~8.9.4", "@types/node": "^12.11.1",
"@types/jasmine": "~3.3.8", "@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"codelyzer": "^5.0.0", "codelyzer": "^5.1.2",
"jasmine-core": "~3.4.0", "jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0", "karma": "~4.1.0",
@ -50,12 +50,11 @@
"karma-coverage-istanbul-reporter": "~2.0.1", "karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1", "karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0", "karma-jasmine-html-reporter": "^1.4.0",
"ng-packagr": "^5.4.0", "ng-packagr": "^9.0.0",
"protractor": "~5.4.0", "protractor": "~5.4.0",
"ts-node": "~7.0.0", "ts-node": "~7.0.0",
"tsickle": "^0.37.0",
"tslint": "~5.15.0", "tslint": "~5.15.0",
"typescript": "~3.5.3" "typescript": "~3.8.3"
}, },
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610" "packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
} }

View File

@ -12,7 +12,6 @@
] ]
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true, "skipTemplateCodegen": true,
"strictMetadataEmit": true, "strictMetadataEmit": true,
"fullTemplateTypeCheck": true, "fullTemplateTypeCheck": true,

View File

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.lib.json",
"angularCompilerOptions": {
"enableIvy": false
}
}

View File

@ -12,7 +12,6 @@
] ]
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true, "skipTemplateCodegen": true,
"strictMetadataEmit": true, "strictMetadataEmit": true,
"fullTemplateTypeCheck": true, "fullTemplateTypeCheck": true,

View File

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.lib.json",
"angularCompilerOptions": {
"enableIvy": false
}
}

View File

@ -1,49 +1,41 @@
import { Component, OnInit } from '@angular/core'; import {Component, OnInit} from '@angular/core';
import { GenericRestDataSourceService } from 'projects/poweredsoft/ngx-data/src/public-api'; import {of} from 'rxjs';
import { of, Observable } from 'rxjs'; import {IDataSource, IQueryCriteria} from '@poweredsoft/data';
import { DataSource, IDataSource, IQueryCriteria, IResolveCommandModelEvent } from '@poweredsoft/data'; import {HttpDataSourceService} from '@openharbor/ngx-data';
import { } from 'projects/poweredsoft/ngx-data-apollo/src/public-api';
import { Apollo } from 'apollo-angular';
import gql from 'graphql-tag';
import { map } from 'rxjs/operators';
import { DocumentNode } from 'graphql';
import { GraphQLDataSourceService, IGraphQLAdvanceQueryInput } from 'projects/poweredsoft/ngx-data-apollo/src/public-api';
import { TestService, ITestModel, IValidationTestCommand } from './services/test.service';
import { HttpDataSourceService} from '@poweredsoft/ngx-data';
export interface IContact export interface IContact
{ {
id: number id: number;
displayName: string displayName: string;
} }
export interface IPerson { export interface IPerson {
id: number, id: number;
firstName: string, firstName: string;
lastName: string lastName: string;
} }
export interface ICreatePerson { export interface ICreatePerson {
firstName: string firstName: string;
lastName: string lastName: string;
} }
export interface IEchoCommand { export interface IEchoCommand {
message: string message: string;
} }
export interface IMyQuery extends IQueryCriteria{ export interface IMyQuery extends IQueryCriteria{
params: { params: {
showDisabled: boolean showDisabled: boolean;
} }
} }
export interface IOnePersonQuery { export interface IOnePersonQuery {
personId: number personId: number;
} }
export interface IListPersonQuery { export interface IListPersonQuery {
search?: string search?: string;
} }
@Component({ @Component({
@ -91,13 +83,13 @@ export class AppComponent implements OnInit {
pageSize: 5 pageSize: 5
}) })
.beforeRead<IMyQuery>(q => { .beforeRead<IMyQuery>(q => {
q.params = { q.params = {
showDisabled: true showDisabled: true
}; };
return of(q); return of(q);
}) })
.queryUrl('https://localhost:5001/api/query/contacts') .queryUrl('https://localhost:5001/api/query/contacts')
.addCommandByUrl<ICreatePerson, void>("createPerson", 'https://localhost:5001/api/command/createPerson', .addCommandByUrl<ICreatePerson, void>("createPerson", 'https://localhost:5001/api/command/createPerson',
e => { e => {
return of (<ICreatePerson>{ return of (<ICreatePerson>{
firstName: '', firstName: '',

View File

@ -9,7 +9,7 @@
"src/polyfills.ts" "src/polyfills.ts"
], ],
"include": [ "include": [
"src/**/*.ts" "src/**/*.d.ts"
], ],
"exclude": [ "exclude": [
"src/test.ts", "src/test.ts",

View File

@ -20,22 +20,13 @@
"esnext.asynciterable" "esnext.asynciterable"
], ],
"paths": { "paths": {
"@poweredsoft/ngx-data": [ "@openharbor/ngx-data": [
"dist/poweredsoft/ngx-data" "./projects/openharbor/ngx-data/src/public-api"
], ],
"@poweredsoft/ngx-data/*": [
"dist/poweredsoft/ngx-data/*"
],
"@poweredsoft/ngx-data-apollo": [
"dist/poweredsoft/ngx-data-apollo"
],
"@poweredsoft/ngx-data-apollo/*": [
"dist/poweredsoft/ngx-data-apollo/*"
]
} }
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"fullTemplateTypeCheck": true, "fullTemplateTypeCheck": true,
"strictInjectionParameters": true "strictInjectionParameters": true
} }
} }

2600
yarn.lock

File diff suppressed because it is too large Load Diff