From 1fc0b0841b7039037398e8d71231f8e3fe55b912 Mon Sep 17 00:00:00 2001 From: Vincent Scavinner Date: Fri, 3 Nov 2023 16:42:47 +0100 Subject: [PATCH] feat: add glint to test-app --- pnpm-lock.yaml | 35 +++++++++++++++++++---------------- test-app/package.json | 3 +++ test-app/tsconfig.json | 8 +++++++- test-app/types/glint.d.ts | 5 +++++ 4 files changed, 34 insertions(+), 17 deletions(-) create mode 100644 test-app/types/glint.d.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 39b6e9a8..20ce02ad 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,7 +68,7 @@ importers: version: 1.2.1(typescript@5.2.2) '@glint/environment-ember-loose': specifier: ^1.2.1 - version: 1.2.1(@glimmer/component@1.1.2)(@glint/template@1.2.1) + version: 1.2.1(@glimmer/component@1.1.2)(@glint/template@1.2.1)(ember-cli-htmlbars@6.3.0)(ember-modifier@4.1.0) '@glint/template': specifier: ^1.2.1 version: 1.2.1 @@ -138,7 +138,7 @@ importers: version: 3.1.1 '@ember/test-helpers': specifier: ^3.2.0 - version: 3.2.0(ember-source@4.12.0)(webpack@5.89.0) + version: 3.2.0(@glint/template@1.2.1)(ember-source@4.12.0)(webpack@5.89.0) '@embroider/test-setup': specifier: 3.0.2 version: 3.0.2 @@ -148,6 +148,15 @@ importers: '@glimmer/tracking': specifier: ^1.1.2 version: 1.1.2 + '@glint/core': + specifier: ^1.2.1 + version: 1.2.1(typescript@5.2.2) + '@glint/environment-ember-loose': + specifier: ^1.2.1 + version: 1.2.1(@glimmer/component@1.1.2)(@glint/template@1.2.1)(ember-cli-htmlbars@6.3.0)(ember-modifier@4.1.0) + '@glint/template': + specifier: ^1.2.1 + version: 1.2.1 '@prismicio/richtext': specifier: ^1.1.0 version: 1.1.0 @@ -216,7 +225,7 @@ importers: version: 8.1.0(ember-source@4.12.0) ember-qunit: specifier: ^8.0.1 - version: 8.0.1(@ember/test-helpers@3.2.0)(ember-source@4.12.0)(qunit@2.20.0) + version: 8.0.1(@ember/test-helpers@3.2.0)(@glint/template@1.2.1)(ember-source@4.12.0)(qunit@2.20.0) ember-resolver: specifier: ^11.0.1 version: 11.0.1(ember-source@4.12.0) @@ -1655,7 +1664,7 @@ packages: - supports-color dev: true - /@ember/test-helpers@3.2.0(ember-source@4.12.0)(webpack@5.89.0): + /@ember/test-helpers@3.2.0(@glint/template@1.2.1)(ember-source@4.12.0)(webpack@5.89.0): resolution: {integrity: sha512-3yWpPsK5O77tUdCwW3HayrAcdlRitIRYMvLIG69Pkal1JMIGdNYVTvJ2R1lenhQh2syd/WFmGM07vQuDAtotQw==} engines: {node: 16.* || >= 18} peerDependencies: @@ -1916,7 +1925,7 @@ packages: optional: true dependencies: '@embroider/macros': 1.13.2(@glint/template@1.2.1) - '@glint/environment-ember-loose': 1.2.1(@glimmer/component@1.1.2)(@glint/template@1.2.1) + '@glint/environment-ember-loose': 1.2.1(@glimmer/component@1.1.2)(@glint/template@1.2.1)(ember-cli-htmlbars@6.3.0)(ember-modifier@4.1.0) '@glint/template': 1.2.1 broccoli-funnel: 3.0.8 ember-cli-babel: 7.26.11 @@ -2081,7 +2090,7 @@ packages: - supports-color dev: true - /@glint/environment-ember-loose@1.2.1(@glimmer/component@1.1.2)(@glint/template@1.2.1): + /@glint/environment-ember-loose@1.2.1(@glimmer/component@1.1.2)(@glint/template@1.2.1)(ember-cli-htmlbars@6.3.0)(ember-modifier@4.1.0): resolution: {integrity: sha512-ZA0Ht7vwd1FosVLtMFrB2Er62P1v6yX/UuS6z9UVR6DMPfrL5qx6vef+EGJPLBrBKZMlm7zMB6Fyca201y4hDA==} peerDependencies: '@glimmer/component': ^1.1.2 @@ -2111,6 +2120,8 @@ packages: dependencies: '@glimmer/component': 1.1.2(@babel/core@7.23.2) '@glint/template': 1.2.1 + ember-cli-htmlbars: 6.3.0 + ember-modifier: 4.1.0(ember-source@4.12.0) /@glint/template@1.2.1: resolution: {integrity: sha512-rlYy/93fAhYjXmTchWcwCpPFMfrqBYEskzbDYawS2oz4DVwtf4fOITLKB0QddQMI7WUCjgXAiIGZqcNa/R4YeQ==} @@ -3438,7 +3449,6 @@ packages: username-sync: 1.0.3 transitivePeerDependencies: - supports-color - dev: true /async-promise-queue@1.0.5: resolution: {integrity: sha512-xi0aQ1rrjPWYmqbwr18rrSKbSaXIeIwSd1J4KAgVfkq8utNbdZoht7GfvfY6swFUAMJ9obkc4WPJmtGwl+B8dw==} @@ -4169,7 +4179,6 @@ packages: sync-disk-cache: 2.1.0 transitivePeerDependencies: - supports-color - dev: true /broccoli-plugin@1.1.0: resolution: {integrity: sha512-dY1QsA20of9wWEto8yhN7JQjpfjySmgeIMsvnQ9aBAv1wEJJCe04B0ekdgq7Bduyx9yWXdoC5CngGy81swmp2w==} @@ -5619,7 +5628,6 @@ packages: dependencies: errlop: 2.2.0 semver: 6.3.1 - dev: true /ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} @@ -5823,7 +5831,6 @@ packages: walk-sync: 2.2.0 transitivePeerDependencies: - supports-color - dev: true /ember-cli-inject-live-reload@2.1.0: resolution: {integrity: sha512-YV5wYRD5PJHmxaxaJt18u6LE6Y+wo455BnmcpN+hGNlChy2piM9/GMvYgTAz/8Vin8RJ5KekqP/w/NEaRndc/A==} @@ -6241,7 +6248,6 @@ packages: ember-source: 4.12.0(@babel/core@7.23.2)(@glimmer/component@1.1.2)(@glint/template@1.2.1)(webpack@5.89.0) transitivePeerDependencies: - supports-color - dev: true /ember-page-title@8.1.0(ember-source@4.12.0): resolution: {integrity: sha512-c5V4sWu+OSRhN6Fsa0M71PkdNpKkV7Lg9FwqogK3iE++R43G6ySLV/Ls0cE5K+IWS1om7XSPqcUvkfhrfZ3y0g==} @@ -6255,14 +6261,14 @@ packages: - supports-color dev: true - /ember-qunit@8.0.1(@ember/test-helpers@3.2.0)(ember-source@4.12.0)(qunit@2.20.0): + /ember-qunit@8.0.1(@ember/test-helpers@3.2.0)(@glint/template@1.2.1)(ember-source@4.12.0)(qunit@2.20.0): resolution: {integrity: sha512-13PtywHNPTQKkDW4o8QRkJvcdsZr8hRyvh6xh/YLAX8+HaRLd3nPL8mBF4O/Kur/DAj3QWLvjzktZ2uRNGSh3A==} peerDependencies: '@ember/test-helpers': '>=3.0.3' ember-source: '>=4.0.0' qunit: ^2.13.0 dependencies: - '@ember/test-helpers': 3.2.0(ember-source@4.12.0)(webpack@5.89.0) + '@ember/test-helpers': 3.2.0(@glint/template@1.2.1)(ember-source@4.12.0)(webpack@5.89.0) '@embroider/addon-shim': 1.8.6 '@embroider/macros': 1.13.2(@glint/template@1.2.1) ember-cli-test-loader: 3.1.0 @@ -6541,7 +6547,6 @@ packages: /errlop@2.2.0: resolution: {integrity: sha512-e64Qj9+4aZzjzzFpZC7p5kmm/ccCrbLhAJplhsDXQFs87XTsXwOpH4s1Io2s90Tau/8r2j9f4l/thhDevRjzxw==} engines: {node: '>=0.8'} - dev: true /error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} @@ -9020,7 +9025,6 @@ packages: binaryextensions: 2.3.0 editions: 2.3.1 textextensions: 2.6.0 - dev: true /iterate-iterator@1.0.2: resolution: {integrity: sha512-t91HubM4ZDQ70M9wqp+pcNpu8OyJ9UAtXntT/Bcsvp5tZMnz9vRa+IunKXeI8AnfZMTv0jNuVEmGeLSMjVvfPw==} @@ -12772,7 +12776,6 @@ packages: username-sync: 1.0.3 transitivePeerDependencies: - supports-color - dev: true /synckit@0.8.5: resolution: {integrity: sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==} diff --git a/test-app/package.json b/test-app/package.json index c20581e7..41d62e76 100644 --- a/test-app/package.json +++ b/test-app/package.json @@ -33,6 +33,9 @@ "@embroider/test-setup": "3.0.2", "@glimmer/component": "^1.1.2", "@glimmer/tracking": "^1.1.2", + "@glint/core": "^1.2.1", + "@glint/environment-ember-loose": "^1.2.1", + "@glint/template": "^1.2.1", "@prismicio/richtext": "^1.1.0", "@qonto/eslint-config-typescript": "1.0.0-rc.0", "@tsconfig/ember": "^3.0.1", diff --git a/test-app/tsconfig.json b/test-app/tsconfig.json index b9404e69..6d69f8a1 100644 --- a/test-app/tsconfig.json +++ b/test-app/tsconfig.json @@ -13,5 +13,11 @@ "*": ["types/*"] } }, - "include": ["app/**/*", "tests/**/*", "types/**/*"] + "include": ["app/**/*", "tests/**/*", "types/**/*"], + "glint": { + "environment": "ember-loose", + "transform": { + "include": ["app/**", "tests/**"] + } + } } diff --git a/test-app/types/glint.d.ts b/test-app/types/glint.d.ts new file mode 100644 index 00000000..2a6c3057 --- /dev/null +++ b/test-app/types/glint.d.ts @@ -0,0 +1,5 @@ +import '@glint/environment-ember-loose'; + +declare module '@glint/environment-ember-loose/registry' { + export default interface Registry {} +}