Skip to content

Commit 83f7499

Browse files
authored
Merge branch 'master' into patch-4
2 parents 8d207bf + 7ca7c5d commit 83f7499

File tree

9 files changed

+169
-147
lines changed

9 files changed

+169
-147
lines changed

CHANGELOG.md

Lines changed: 152 additions & 131 deletions
Large diffs are not rendered by default.

blueprint-files/ember-cli-typescript/__config_root__/config/environment.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
export default config;
2-
31
/**
42
* Type declarations for
53
* import config from 'my-app/config/environment'
@@ -12,3 +10,5 @@ declare const config: {
1210
rootURL: string;
1311
APP: Record<string, unknown>;
1412
};
13+
14+
export default config;

docs/ember/testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Now, with that setup out of the way, let’s get back to talking about the text
215215
import { module, test } from 'qunit';
216216
import { setupRenderingTest } from 'ember-qunit';
217217
import { render } from '@ember/test-helpers';
218-
import hbs from 'htmlbars-inline-precompile';
218+
import { hbs } from 'ember-cli-htmlbars';
219219

220220
import User from 'app/types/user';
221221

@@ -283,7 +283,7 @@ Putting it all together, this is what our updated test definition would look lik
283283
import { module, test } from 'qunit';
284284
import { setupRenderingTest } from 'ember-qunit';
285285
import { render, TestContext } from '@ember/test-helpers';
286-
import hbs from 'htmlbars-inline-precompile';
286+
import { hbs } from 'ember-cli-htmlbars';
287287

288288
import User from 'app/types/user';
289289

docs/ts/current-limitations.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ Addons need to import templates from the associated `.hbs` file to bind to the l
1616

1717
```ts
1818
declare module '\*/template' {
19-
import { TemplateFactory } from 'htmlbars-inline-precompile';
19+
import { TemplateFactory } from 'ember-cli-htmlbars';
2020
const template: TemplateFactory; export default template;
2121
}
2222

2323

2424
declare module 'app/templates/\*' {
25-
import { TemplateFactory } from 'htmlbars-inline-precompile';
25+
import { TemplateFactory } from 'ember-cli-htmlbars';
2626
const template: TemplateFactory; export default template;
2727
}
2828

2929
declare module 'addon/templates/\*' {
30-
import { TemplateFactory } from 'htmlbars-inline-precompile';
30+
import { TemplateFactory } from 'ember-cli-htmlbars';
3131
const template: TemplateFactory; export default template;
3232
}
3333
```
@@ -42,14 +42,14 @@ import { action } from '@ember/object';
4242

4343
export default class MyGame extends Component {
4444
@action turnWheel(degrees: number) {
45-
// ...
45+
// ...
4646
}
47-
}
47+
}
4848
```
4949

5050
```hbs
5151
<button {{on "click" (fn this.turnWheel "potato")}}>
52-
Click Me
52+
Click Me
5353
</button>
5454
```
5555

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-cli-typescript",
3-
"version": "5.1.0",
3+
"version": "5.1.1",
44
"description": "Allow Ember apps to use TypeScript files.",
55
"keywords": [
66
"ember-addon",

tests/integration/components/js-importing-ts-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { module, test } from 'qunit';
22
import { setupRenderingTest } from 'ember-qunit';
33
import { render } from '@ember/test-helpers';
4-
import hbs from 'htmlbars-inline-precompile';
4+
import { hbs } from 'ember-cli-htmlbars';
55

66
module('Integration | Component | js importing ts', function (hooks) {
77
setupRenderingTest(hooks);

tests/integration/components/ts-component-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { module, test } from 'qunit';
22
import { setupRenderingTest } from 'ember-qunit';
33
import { render } from '@ember/test-helpers';
4-
import hbs from 'htmlbars-inline-precompile';
4+
import { hbs } from 'ember-cli-htmlbars';
55

66
module('Integration | Component | ts component', function (hooks) {
77
setupRenderingTest(hooks);

ts/blueprints/ember-cli-typescript/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ export {};`;
2222
function buildTemplateDeclarations(projectName, layout) {
2323
const comment = '// Types for compiled templates';
2424
const moduleBody = `
25-
import { TemplateFactory } from 'htmlbars-inline-precompile';
25+
import { TemplateFactory } from 'ember-cli-htmlbars';
26+
2627
const tmpl: TemplateFactory;
2728
export default tmpl;
2829
`;
@@ -169,7 +170,6 @@ module.exports = {
169170
'@types/ember__component',
170171
'@types/ember__routing',
171172
'@types/rsvp',
172-
'@types/htmlbars-inline-precompile',
173173
];
174174

175175
if (this._has('@ember/jquery')) {

ts/tests/blueprints/ember-cli-typescript-test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ describe('Acceptance: ember-cli-typescript generator', function () {
147147
const globalTypes = file('types/global.d.ts');
148148
expect(globalTypes).to.exist;
149149
expect(globalTypes).to.include("declare module 'my-addon/templates/*'").to.include(`
150-
import { TemplateFactory } from 'htmlbars-inline-precompile';
150+
import { TemplateFactory } from 'ember-cli-htmlbars';
151+
151152
const tmpl: TemplateFactory;
152153
export default tmpl;
153154
`);

0 commit comments

Comments
 (0)