Skip to content

Commit 9efe7b1

Browse files
aklkvNullVoxPopuli
andauthored
feat: drop support for classic component layout (#721)
* feat: drop support for classic component layout * Delete component with classicly resolved template --------- Co-authored-by: NullVoxPopuli <[email protected]>
1 parent e8d1c9a commit 9efe7b1

File tree

9 files changed

+0
-59
lines changed

9 files changed

+0
-59
lines changed

packages/environment-ember-loose/-private/environment/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ export default function emberLooseEnvironment(
6262
templatePath.replace(REGEXES.POD_TEMPLATE, '/controller.ts'),
6363
templatePath.replace(REGEXES.POD_TEMPLATE, '/route.ts'),
6464
);
65-
} else if (templatePath.includes('/templates/components/')) {
66-
// Classic component
67-
candidates.push(colocatedTsScriptPath.replace('/templates/components/', '/components/'));
6865
} else if (templatePath.includes('/templates/')) {
6966
// Classic controller/route
7067
candidates.push(

packages/environment-ember-loose/__tests__/environment.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,6 @@ describe('Environments: Ember Loose', () => {
6969
'/route.js',
7070
]);
7171

72-
// Classic component
73-
expect(env?.getPossibleScriptPaths('/templates/components/hello.hbs')).toEqual([
74-
'/templates/components/hello.ts',
75-
'/templates/components/hello.js',
76-
'/components/hello.ts',
77-
'/components/hello.js',
78-
]);
79-
8072
// Classic controller/route
8173
expect(env?.getPossibleScriptPaths('/templates/hello.hbs')).toEqual([
8274
'/templates/hello.ts',

test-packages/ts-ember-app/app/components/foo.hbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
<Baz />
2222

23-
<Qux />
24-
2523
<this.MaybeComponent @arg="hi" />
2624

2725
{{! @glint-expect-error: missing required arg }}

test-packages/ts-ember-app/app/components/qux.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

test-packages/ts-ember-app/app/templates/components/qux.hbs

Lines changed: 0 additions & 4 deletions
This file was deleted.

test-packages/ts-ember-app/tests/integration/components/qux-test.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

test-packages/ts-ember-preview-types/app/components/foo.hbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
<Baz />
2222

23-
<Qux />
24-
2523
<this.MaybeComponent @arg="hi" />
2624

2725
{{! @glint-expect-error: missing required arg }}

test-packages/ts-ember-preview-types/app/components/qux.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

test-packages/ts-ember-preview-types/app/templates/components/qux.hbs

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)