Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/gentle-bees-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ember-codemod-add-template-tags": minor
---

Updated dependencies
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,31 @@
"test": "sh build.sh --test && mt dist-for-testing --quiet"
},
"dependencies": {
"@codemod-utils/ast-javascript": "^2.1.0",
"@codemod-utils/ast-template": "^2.1.0",
"@codemod-utils/ast-template-tag": "^1.1.0",
"@codemod-utils/ember": "^3.0.4",
"@codemod-utils/files": "^3.2.1",
"@codemod-utils/package-json": "^3.3.1",
"@codemod-utils/ast-javascript": "^2.1.2",
"@codemod-utils/ast-template": "^2.1.2",
"@codemod-utils/ast-template-tag": "^1.2.0",
"@codemod-utils/ember": "^3.0.6",
"@codemod-utils/files": "^3.2.3",
"@codemod-utils/package-json": "^3.3.3",
"yargs": "^18.0.0"
},
"devDependencies": {
"@changesets/cli": "^2.29.8",
"@codemod-utils/tests": "^2.2.0",
"@ijlee2-frontend-configs/changesets": "^1.0.0",
"@ijlee2-frontend-configs/eslint-config-node": "^2.3.1",
"@ijlee2-frontend-configs/prettier": "^2.3.1",
"@codemod-utils/tests": "^2.2.2",
"@ijlee2-frontend-configs/changesets": "^1.0.2",
"@ijlee2-frontend-configs/eslint-config-node": "^2.3.3",
"@ijlee2-frontend-configs/prettier": "^2.3.3",
"@sondr3/minitest": "^0.1.2",
"@tsconfig/node20": "^20.1.8",
"@tsconfig/strictest": "^2.0.8",
"@types/node": "^20.19.26",
"@types/node": "^20.19.27",
"@types/yargs": "^17.0.35",
"concurrently": "^9.2.1",
"eslint": "^9.39.1",
"eslint": "^9.39.2",
"prettier": "^3.7.4",
"typescript": "^5.9.3"
},
"packageManager": "pnpm@10.25.0",
"packageManager": "pnpm@10.26.2",
"engines": {
"node": "20.* || >= 22"
}
Expand Down
461 changes: 229 additions & 232 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ interface NavigationMenuSignature {
};
}

<template>
<nav aria-label={{@name}} data-test-nav={{@name}}>
<template><nav aria-label={{@name}} data-test-nav={{@name}}>
<ul class="navigation-menu-list">
{{#each @menuItems as |menuItem|}}
<li>
Expand All @@ -29,5 +28,4 @@ interface NavigationMenuSignature {
</li>
{{/each}}
</ul>
</nav>
</template>
</nav></template>
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ export default class UiForm extends Component<UiFormSignature> {
}


<template>
{{#let (uniqueId) as |formId|}}
<template>{{#let (uniqueId) as |formId|}}
<form
aria-describedby={{if
@instructions
Expand Down Expand Up @@ -135,6 +134,5 @@ export default class UiForm extends Component<UiFormSignature> {
</button>
</div>
</form>
{{/let}}
</template>
{{/let}}</template>
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ export default class UiFormCheckbox extends Component<UiFormCheckboxSignature> {
}


<template>
<UiFormField
<template><UiFormField
@errorMessage={{this.errorMessage}}
@isInline={{@isInline}}
@isWide={{@isWide}}
Expand Down Expand Up @@ -102,6 +101,5 @@ export default class UiFormCheckbox extends Component<UiFormCheckboxSignature> {
{{/if}}
</span>
</:field>
</UiFormField>
</template>
</UiFormField></template>
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export default class UiFormField extends Component<UiFormFieldSignature> {
styles = styles;


<template>
{{#let (uniqueId) as |inputId|}}
<template>{{#let (uniqueId) as |inputId|}}
<div
class={{local
this.styles
Expand Down Expand Up @@ -57,6 +56,5 @@ export default class UiFormField extends Component<UiFormFieldSignature> {
</div>
{{/if}}
</div>
{{/let}}
</template>
{{/let}}</template>
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ interface UiFormInformationSignature {
};
}

const UiFormInformation = <template>
{{#if (or @title @instructions)}}
const UiFormInformation = <template>{{#if (or @title @instructions)}}
<div class="ui-form-information-container">
{{#if @title}}
<div
Expand All @@ -33,7 +32,6 @@ const UiFormInformation = <template>
</p>
{{/if}}
</div>
{{/if}}
</template> satisfies TOC<UiFormInformationSignature>;
{{/if}}</template> satisfies TOC<UiFormInformationSignature>;

export default UiFormInformation;
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export default class UiFormInput extends Component {
}


<template>
<UiFormField
<template><UiFormField
@errorMessage={{this.errorMessage}}
@isWide={{@isWide}}
>
Expand Down Expand Up @@ -81,6 +80,5 @@ export default class UiFormInput extends Component {
{{on "input" this.updateValue}}
/>
</:field>
</UiFormField>
</template>
</UiFormField></template>
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ export default class UiFormSelect extends Component<UiFormSelectSignature> {
}


<template>
<UiFormField
<template><UiFormField
@errorMessage={{this.errorMessage}}
@isWide={{@isWide}}
>
Expand Down Expand Up @@ -140,6 +139,5 @@ export default class UiFormSelect extends Component<UiFormSelectSignature> {
</button>
</div>
</:field>
</UiFormField>
</template>
</UiFormField></template>
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
const UiPage = <template>
<div class="ui-page-container">
const UiPage = <template><div class="ui-page-container">
<h1 class="ui-page-title">
{{@title}}
</h1>

<div class="ui-page-content" id="main-content" tabindex="-1">
{{yield}}
</div>
</div>
</template>;
</div></template>;

export default UiPage;
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export default class ProductsProductCard extends Component<ProductsProductCardSi
styles = styles;


<template>
<ContainerQuery
<template><ContainerQuery
@features={{hash wide=(width min=320)}}
@tagName="article"
class={{this.styles.container}}
Expand Down Expand Up @@ -60,8 +59,7 @@ export default class ProductsProductCard extends Component<ProductsProductCardSi
{{t "components.products.product.card.learn-more.label"}}
</LinkTo>
</div>
</ContainerQuery>
</template>
</ContainerQuery></template>
}

declare module '@glint/environment-ember-loose/registry' {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export default class ProductsProductDetails extends Component {
}


<template>
<article class={{this.styles.container}} data-test-product-details>
<template><article class={{this.styles.container}} data-test-product-details>
<header class={{this.styles.header}}>
<h2 class={{this.styles.name}} data-test-field="Name">
{{@product.name}}
Expand Down Expand Up @@ -79,6 +78,5 @@ export default class ProductsProductDetails extends Component {
{{t "components.products.product.details.add-to-cart"}}
</button>
</div>
</article>
</template>
</article></template>
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ module('Integration | Component | products/product/card', function (hooks) {



await render(<template>
<ProductsProductCard
@product={{self.product}}
@redirectTo="products.product"
/>
</template>);
await render(<template><ProductsProductCard
@product={{self.product}}
@redirectTo="products.product"
/></template>);

assert.dom('[data-test-field="Name"]').hasText('Vanilla Ice Cream Cake');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ module('Integration | Component | products/product/details', function (hooks) {



await render(<template>
<ProductsProductDetails @product={{self.product}} />
</template>);
await render(
<template><ProductsProductDetails @product={{self.product}} /></template>
);

assert.dom('[data-test-field="Name"]').hasText('Vanilla Ice Cream Cake');

Expand Down Expand Up @@ -73,9 +73,9 @@ module('Integration | Component | products/product/details', function (hooks) {



await render(<template>
<ProductsProductDetails @product={{self.product}} />
</template>);
await render(
<template><ProductsProductDetails @product={{self.product}} /></template>
);

assert.true(log.notCalled);

Expand Down
Loading