Skip to content

Commit

Permalink
fix(core): mark enableIvy as override for LibExampleLoader #458 (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
why520crazy committed Mar 27, 2023
1 parent edf7a6d commit f42f2ad
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 22 deletions.
1 change: 1 addition & 0 deletions .docgeni/public/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"importHelpers": true,
"target": "ES2022",
"useDefineForClassFields": false,
"noImplicitOverride": true,
"lib": [
"es2018",
"dom"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"@types/yargs": "^15.0.4",
"@typescript-eslint/eslint-plugin": "4.9.1",
"@typescript-eslint/experimental-utils": "4.9.1",
"@typescript-eslint/parser": "4.9.1",
"@typescript-eslint/parser": "5.56.0",
"@worktile/pkg-manager": "^0.0.5",
"chai": "^4.2.0",
"codelyzer": "^6.0.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/builders/libraries-builder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import {
loadFixture,
writeFilesToHost
} from '../testing';
import { DocgeniHost } from '../docgeni-host';
import { LibrariesBuilder } from './libraries-builder';
import { DocgeniContext } from '../docgeni.interface';
import { DocgeniPaths } from '../docgeni-paths';
import { toolkit } from '@docgeni/toolkit';
import { normalizeLibConfig } from './normalize';
import { normalize, resolve } from '../fs';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/templates/example-loader.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { EXAMPLE_COMPONENTS } from './component-examples';
@Injectable()
export class LibExampleLoader extends ExampleLoader {

enableIvy = {{enableIvy}};
override enableIvy = {{enableIvy}};

{{#each moduleKeys}}
'{{this}}'() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { EXAMPLE_COMPONENTS } from './component-examples';
@Injectable()
export class LibExampleLoader extends ExampleLoader {

enableIvy = true;
override enableIvy = true;

'alib/button'() {
return import('./components/alib/button/index');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ import { TocService } from '../../services/toc.service';
@Component({
selector: 'dg-content-viewer',
template: 'Loading...',
changeDetection: ChangeDetectionStrategy.OnPush
changeDetection: ChangeDetectionStrategy.OnPush,
host: {
class: 'dg-doc-content'
}
})
export class ContentViewerComponent extends ContentRenderer implements OnInit, OnDestroy {
@HostBinding('class.dg-doc-content') isDocContent = true;

@Output() contentRendered = new EventEmitter<HTMLElement>();

private portalHosts: DomPortalOutlet[] = [];

constructor(
Expand Down
63 changes: 51 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3298,15 +3298,15 @@
eslint-scope "^5.0.0"
eslint-utils "^2.0.0"

"@typescript-eslint/parser@4.9.1":
version "4.9.1"
resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.9.1.tgz#2d74c4db5dd5117379a9659081a4d1ec02629055"
integrity sha512-Gv2VpqiomvQ2v4UL+dXlQcZ8zCX4eTkoIW+1aGVWT6yTO+6jbxsw7yQl2z2pPl/4B9qa5JXeIbhJpONKjXIy3g==
dependencies:
"@typescript-eslint/scope-manager" "4.9.1"
"@typescript-eslint/types" "4.9.1"
"@typescript-eslint/typescript-estree" "4.9.1"
debug "^4.1.1"
"@typescript-eslint/parser@5.56.0":
version "5.56.0"
resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.56.0.tgz#42eafb44b639ef1dbd54a3dbe628c446ca753ea6"
integrity sha512-sn1OZmBxUsgxMmR8a8U5QM/Wl+tyqlH//jTqCg8daTAmhAk26L2PFhcqPLlYBhYUJMZJK276qLXlHN3a83o2cg==
dependencies:
"@typescript-eslint/scope-manager" "5.56.0"
"@typescript-eslint/types" "5.56.0"
"@typescript-eslint/typescript-estree" "5.56.0"
debug "^4.3.4"

"@typescript-eslint/scope-manager@4.9.1":
version "4.9.1"
Expand All @@ -3316,11 +3316,24 @@
"@typescript-eslint/types" "4.9.1"
"@typescript-eslint/visitor-keys" "4.9.1"

"@typescript-eslint/scope-manager@5.56.0":
version "5.56.0"
resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.56.0.tgz#62b4055088903b5254fa20403010e1c16d6ab725"
integrity sha512-jGYKyt+iBakD0SA5Ww8vFqGpoV2asSjwt60Gl6YcO8ksQ8s2HlUEyHBMSa38bdLopYqGf7EYQMUIGdT/Luw+sw==
dependencies:
"@typescript-eslint/types" "5.56.0"
"@typescript-eslint/visitor-keys" "5.56.0"

"@typescript-eslint/types@4.9.1":
version "4.9.1"
resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.9.1.tgz#a1a7dd80e4e5ac2c593bc458d75dd1edaf77faa2"
integrity sha512-fjkT+tXR13ks6Le7JiEdagnwEFc49IkOyys7ueWQ4O8k4quKPwPJudrwlVOJCUQhXo45PrfIvIarcrEjFTNwUA==

"@typescript-eslint/types@5.56.0":
version "5.56.0"
resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.56.0.tgz#b03f0bfd6fa2afff4e67c5795930aff398cbd834"
integrity sha512-JyAzbTJcIyhuUhogmiu+t79AkdnqgPUEsxMTMc/dCZczGMJQh1MK2wgrju++yMN6AWroVAy2jxyPcPr3SWCq5w==

"@typescript-eslint/typescript-estree@4.9.1":
version "4.9.1"
resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.9.1.tgz#6e5b86ff5a5f66809e1f347469fadeec69ac50bf"
Expand All @@ -3335,6 +3348,19 @@
semver "^7.3.2"
tsutils "^3.17.1"

"@typescript-eslint/typescript-estree@5.56.0":
version "5.56.0"
resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.56.0.tgz#48342aa2344649a03321e74cab9ccecb9af086c3"
integrity sha512-41CH/GncsLXOJi0jb74SnC7jVPWeVJ0pxQj8bOjH1h2O26jXN3YHKDT1ejkVz5YeTEQPeLCCRY0U2r68tfNOcg==
dependencies:
"@typescript-eslint/types" "5.56.0"
"@typescript-eslint/visitor-keys" "5.56.0"
debug "^4.3.4"
globby "^11.1.0"
is-glob "^4.0.3"
semver "^7.3.7"
tsutils "^3.21.0"

"@typescript-eslint/visitor-keys@4.9.1":
version "4.9.1"
resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.9.1.tgz#d76374a58c4ead9e92b454d186fea63487b25ae1"
Expand All @@ -3343,6 +3369,14 @@
"@typescript-eslint/types" "4.9.1"
eslint-visitor-keys "^2.0.0"

"@typescript-eslint/visitor-keys@5.56.0":
version "5.56.0"
resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.56.0.tgz#f19eb297d972417eb13cb69b35b3213e13cc214f"
integrity sha512-1mFdED7u5bZpX6Xxf5N9U2c18sb+8EvU3tyOIj6LQZ5OOvnmj8BVeNNP603OFPm5KkS1a7IvCIcwrdHXaEMG/Q==
dependencies:
"@typescript-eslint/types" "5.56.0"
eslint-visitor-keys "^3.3.0"

"@webassemblyjs/ast@1.11.1":
version "1.11.1"
resolved "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz#2bfd767eae1a6996f432ff7e8d7fc75679c0b6a7"
Expand Down Expand Up @@ -6399,6 +6433,11 @@ eslint-visitor-keys@^2.0.0:
resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303"
integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==

eslint-visitor-keys@^3.3.0:
version "3.3.0"
resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==

eslint@7.15.0:
version "7.15.0"
resolved "https://registry.npmjs.org/eslint/-/eslint-7.15.0.tgz#eb155fb8ed0865fcf5d903f76be2e5b6cd7e0bc7"
Expand Down Expand Up @@ -7489,7 +7528,7 @@ globalthis@^1.0.3:
dependencies:
define-properties "^1.1.3"

globby@^11.0.1:
globby@^11.0.1, globby@^11.1.0:
version "11.1.0"
resolved "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"
integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==
Expand Down Expand Up @@ -12344,7 +12383,7 @@ semver@7.3.2:
resolved "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938"
integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==

semver@7.3.8, semver@^7.0.0, semver@^7.1.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.8:
semver@7.3.8, semver@^7.0.0, semver@^7.1.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8:
version "7.3.8"
resolved "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798"
integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==
Expand Down Expand Up @@ -13555,7 +13594,7 @@ tsutils@^2.29.0:
dependencies:
tslib "^1.8.1"

tsutils@^3.17.1:
tsutils@^3.17.1, tsutils@^3.21.0:
version "3.21.0"
resolved "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"
integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==
Expand Down

0 comments on commit f42f2ad

Please sign in to comment.