ember-source 6.2.0-alpha.7 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/blueprints/-addon-import.js +0 -9
  2. package/blueprints/acceptance-test/index.js +2 -2
  3. package/blueprints/component/index.js +7 -22
  4. package/blueprints/component-addon/index.js +0 -9
  5. package/blueprints/component-class/index.js +7 -22
  6. package/blueprints/component-class-addon/index.js +0 -9
  7. package/blueprints/component-test/index.js +2 -2
  8. package/blueprints/controller/index.js +2 -2
  9. package/blueprints/controller-test/index.js +2 -2
  10. package/blueprints/helper/index.js +2 -2
  11. package/blueprints/helper-test/index.js +2 -2
  12. package/blueprints/initializer/index.js +2 -2
  13. package/blueprints/initializer-test/index.js +2 -2
  14. package/blueprints/instance-initializer/index.js +2 -2
  15. package/blueprints/instance-initializer-test/index.js +2 -2
  16. package/blueprints/route/index.js +2 -2
  17. package/blueprints/route-addon/index.js +0 -9
  18. package/blueprints/route-test/index.js +2 -2
  19. package/blueprints/service/index.js +2 -2
  20. package/blueprints/service-test/index.js +2 -2
  21. package/blueprints/util/index.js +2 -2
  22. package/blueprints/util-test/index.js +2 -2
  23. package/build-metadata.json +3 -3
  24. package/dist/ember-template-compiler.js +2 -2
  25. package/dist/ember-testing.js +1 -1
  26. package/dist/ember.debug.js +2 -2
  27. package/dist/ember.prod.js +2 -2
  28. package/dist/packages/ember/version.js +1 -1
  29. package/docs/data.json +1 -1
  30. package/package.json +5 -10
  31. package/blueprints/-maybe-polyfill-typescript-blueprints.js +0 -19
  32. package/blueprints/initializer-addon/files/__root__/__path__/__name__.ts +0 -1
  33. package/blueprints/instance-initializer-addon/files/__root__/__path__/__name__.ts +0 -1
  34. package/blueprints-js/acceptance-test/qunit-files/tests/acceptance/__name__-test.js +0 -12
  35. package/blueprints-js/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +0 -13
  36. package/blueprints-js/component/files/__root__/__path__/__name__.js +0 -3
  37. package/blueprints-js/component/files/__root__/__templatepath__/__templatename__.hbs +0 -1
  38. package/blueprints-js/component-addon/files/__root__/__path__/__name__.js +0 -1
  39. package/blueprints-js/component-class/files/__root__/__path__/__name__.js +0 -3
  40. package/blueprints-js/component-class-addon/files/__root__/__path__/__name__.js +0 -1
  41. package/blueprints-js/component-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -31
  42. package/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -36
  43. package/blueprints-js/controller/files/__root__/__path__/__name__.js +0 -3
  44. package/blueprints-js/controller-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -12
  45. package/blueprints-js/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -12
  46. package/blueprints-js/helper/files/__root__/helpers/__name__.js +0 -5
  47. package/blueprints-js/helper-addon/files/__root__/__path__/__name__.js +0 -1
  48. package/blueprints-js/helper-test/qunit-files/__root__/__testType__/helpers/__name__-test.js +0 -15
  49. package/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.js +0 -17
  50. package/blueprints-js/initializer/files/__root__/initializers/__name__.js +0 -5
  51. package/blueprints-js/initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +0 -25
  52. package/blueprints-js/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -37
  53. package/blueprints-js/instance-initializer/files/__root__/instance-initializers/__name__.js +0 -5
  54. package/blueprints-js/instance-initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +0 -26
  55. package/blueprints-js/instance-initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -39
  56. package/blueprints-js/mixin/files/__root__/mixins/__name__.js +0 -3
  57. package/blueprints-js/mixin-test/qunit-files/__root__/__testType__/__name__-test.js +0 -12
  58. package/blueprints-js/mixin-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +0 -12
  59. package/blueprints-js/route/files/__root__/__path__/__name__.js +0 -9
  60. package/blueprints-js/route/files/__root__/__templatepath__/__templatename__.hbs +0 -2
  61. package/blueprints-js/route-addon/files/__root__/__path__/__name__.js +0 -1
  62. package/blueprints-js/route-addon/files/__root__/__templatepath__/__templatename__.js +0 -1
  63. package/blueprints-js/route-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -11
  64. package/blueprints-js/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -11
  65. package/blueprints-js/service/files/__root__/__path__/__name__.js +0 -3
  66. package/blueprints-js/service-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -12
  67. package/blueprints-js/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -12
  68. package/blueprints-js/template/files/__root__/__path__/__name__.hbs +0 -0
  69. package/blueprints-js/util/files/__root__/utils/__name__.js +0 -3
  70. package/blueprints-js/util-test/qunit-files/__root__/__testType__/__name__-test.js +0 -10
  71. package/blueprints-js/util-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +0 -10
  72. /package/{blueprints-js → blueprints}/initializer-addon/files/__root__/__path__/__name__.js +0 -0
  73. /package/{blueprints-js → blueprints}/instance-initializer-addon/files/__root__/__path__/__name__.js +0 -0
@@ -4,18 +4,9 @@ const stringUtil = require('ember-cli-string-utils');
4
4
  const path = require('path');
5
5
  const inflector = require('inflection');
6
6
 
7
- const maybePolyfillTypeScriptBlueprints = require('./-maybe-polyfill-typescript-blueprints');
8
-
9
7
  module.exports = {
10
8
  description: 'Generates an import wrapper.',
11
9
 
12
- shouldTransformTypeScript: true,
13
-
14
- init() {
15
- this._super && this._super.init.apply(this, arguments);
16
- maybePolyfillTypeScriptBlueprints(this);
17
- },
18
-
19
10
  fileMapTokens: function () {
20
11
  return {
21
12
  __name__: function (options) {
@@ -5,7 +5,7 @@ const path = require('path');
5
5
  const pathUtil = require('ember-cli-path-utils');
6
6
  const stringUtils = require('ember-cli-string-utils');
7
7
 
8
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
8
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
9
9
  const { modulePrefixForProject } = require('../-utils');
10
10
  const useTestFrameworkDetector = require('../test-framework-detector');
11
11
 
@@ -16,7 +16,7 @@ module.exports = useTestFrameworkDetector({
16
16
 
17
17
  init() {
18
18
  this._super && this._super.init.apply(this, arguments);
19
- maybePolyfillTypeScriptBlueprints(this);
19
+ typescriptBlueprintPolyfill(this);
20
20
  },
21
21
 
22
22
  locals: function (options) {
@@ -8,7 +8,7 @@ const normalizeEntityName = require('ember-cli-normalize-entity-name');
8
8
  const { has } = require('@ember/edition-utils');
9
9
  const { generateComponentSignature } = require('../-utils');
10
10
 
11
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
11
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
12
12
 
13
13
  const OCTANE = has('octane');
14
14
 
@@ -51,17 +51,10 @@ module.exports = {
51
51
  },
52
52
  ],
53
53
 
54
- /**
55
- Flag to let us correctly handle the case where we are running against a
56
- version of Ember CLI which does not support TS-based emit, and where we
57
- therefore *must* not emit a `defaultExport` local which includes a type
58
- parameter in the exported function call or class definition.
59
- */
60
- _isUsingTS: false,
61
-
62
54
  init() {
63
55
  this._super && this._super.init.apply(this, arguments);
64
- this._isUsingTS = maybePolyfillTypeScriptBlueprints(this);
56
+ typescriptBlueprintPolyfill(this);
57
+
65
58
  let isOctane = has('octane');
66
59
 
67
60
  this.availableOptions.forEach((option) => {
@@ -210,21 +203,13 @@ module.exports = {
210
203
  break;
211
204
  case '@glimmer/component':
212
205
  importComponent = `import Component from '@glimmer/component';`;
213
- if (this._isUsingTS) {
214
- componentSignature = generateComponentSignature(classifiedModuleName);
215
- defaultExport = `class ${classifiedModuleName} extends Component<${classifiedModuleName}Signature> {}`;
216
- } else {
217
- defaultExport = `class ${classifiedModuleName} extends Component {}`;
218
- }
206
+ componentSignature = generateComponentSignature(classifiedModuleName);
207
+ defaultExport = `class ${classifiedModuleName} extends Component<${classifiedModuleName}Signature> {}`;
219
208
  break;
220
209
  case '@ember/component/template-only':
221
210
  importComponent = `import templateOnly from '@ember/component/template-only';`;
222
- if (this._isUsingTS) {
223
- componentSignature = generateComponentSignature(classifiedModuleName);
224
- defaultExport = `templateOnly<${classifiedModuleName}Signature>();`;
225
- } else {
226
- defaultExport = `templateOnly();`;
227
- }
211
+ componentSignature = generateComponentSignature(classifiedModuleName);
212
+ defaultExport = `templateOnly<${classifiedModuleName}Signature>();`;
228
213
  break;
229
214
  }
230
215
 
@@ -5,18 +5,9 @@ const stringUtil = require('ember-cli-string-utils');
5
5
  const getPathOption = require('ember-cli-get-component-path-option');
6
6
  const normalizeEntityName = require('ember-cli-normalize-entity-name');
7
7
 
8
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
9
-
10
8
  module.exports = {
11
9
  description: 'Generates a component.',
12
10
 
13
- shouldTransformTypeScript: true,
14
-
15
- init() {
16
- this._super && this._super.init.apply(this, arguments);
17
- maybePolyfillTypeScriptBlueprints(this);
18
- },
19
-
20
11
  fileMapTokens: function () {
21
12
  return {
22
13
  __path__: function (options) {
@@ -7,7 +7,7 @@ const normalizeEntityName = require('ember-cli-normalize-entity-name');
7
7
  const { has } = require('@ember/edition-utils');
8
8
  const { generateComponentSignature } = require('../-utils');
9
9
 
10
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
10
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
11
11
 
12
12
  const OCTANE = has('octane');
13
13
 
@@ -47,17 +47,10 @@ module.exports = {
47
47
  },
48
48
  ],
49
49
 
50
- /**
51
- Flag to let us correctly handle the case where we are running against a
52
- version of Ember CLI which does not support TS-based emit, and where we
53
- therefore *must* not emit a `defaultExport` local which includes a type
54
- parameter in the exported function call or class definition.
55
- */
56
- _isUsingTS: false,
57
-
58
50
  init() {
59
51
  this._super && this._super.init.apply(this, arguments);
60
- this._isUsingTS = maybePolyfillTypeScriptBlueprints(this);
52
+ typescriptBlueprintPolyfill(this);
53
+
61
54
  let isOctane = has('octane');
62
55
 
63
56
  this.availableOptions.forEach((option) => {
@@ -132,21 +125,13 @@ module.exports = {
132
125
  break;
133
126
  case '@glimmer/component':
134
127
  importComponent = `import Component from '@glimmer/component';`;
135
- if (this._isUsingTS) {
136
- componentSignature = generateComponentSignature(classifiedModuleName);
137
- defaultExport = `class ${classifiedModuleName} extends Component<${classifiedModuleName}Signature> {}`;
138
- } else {
139
- defaultExport = `class ${classifiedModuleName} extends Component {}`;
140
- }
128
+ componentSignature = generateComponentSignature(classifiedModuleName);
129
+ defaultExport = `class ${classifiedModuleName} extends Component<${classifiedModuleName}Signature> {}`;
141
130
  break;
142
131
  case '@ember/component/template-only':
143
132
  importComponent = `import templateOnly from '@ember/component/template-only';`;
144
- if (this._isUsingTS) {
145
- componentSignature = generateComponentSignature(classifiedModuleName);
146
- defaultExport = `templateOnly<${classifiedModuleName}Signature>();`;
147
- } else {
148
- defaultExport = `templateOnly();`;
149
- }
133
+ componentSignature = generateComponentSignature(classifiedModuleName);
134
+ defaultExport = `templateOnly<${classifiedModuleName}Signature>();`;
150
135
  break;
151
136
  }
152
137
 
@@ -5,18 +5,9 @@ const stringUtil = require('ember-cli-string-utils');
5
5
  const getPathOption = require('ember-cli-get-component-path-option');
6
6
  const normalizeEntityName = require('ember-cli-normalize-entity-name');
7
7
 
8
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
9
-
10
8
  module.exports = {
11
9
  description: 'Generates a component class.',
12
10
 
13
- shouldTransformTypeScript: true,
14
-
15
- init() {
16
- this._super && this._super.init.apply(this, arguments);
17
- maybePolyfillTypeScriptBlueprints(this);
18
- },
19
-
20
11
  fileMapTokens: function () {
21
12
  return {
22
13
  __path__: function (options) {
@@ -6,7 +6,7 @@ const isPackageMissing = require('ember-cli-is-package-missing');
6
6
  const getPathOption = require('ember-cli-get-component-path-option');
7
7
  const semver = require('semver');
8
8
 
9
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
9
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
10
10
  const { modulePrefixForProject } = require('../-utils');
11
11
  const useTestFrameworkDetector = require('../test-framework-detector');
12
12
 
@@ -22,7 +22,7 @@ module.exports = useTestFrameworkDetector({
22
22
 
23
23
  init() {
24
24
  this._super && this._super.init.apply(this, arguments);
25
- maybePolyfillTypeScriptBlueprints(this);
25
+ typescriptBlueprintPolyfill(this);
26
26
  },
27
27
 
28
28
  availableOptions: [
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
3
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
4
4
 
5
5
  module.exports = {
6
6
  description: 'Generates a controller.',
@@ -9,7 +9,7 @@ module.exports = {
9
9
 
10
10
  init() {
11
11
  this._super && this._super.init.apply(this, arguments);
12
- maybePolyfillTypeScriptBlueprints(this);
12
+ typescriptBlueprintPolyfill(this);
13
13
  },
14
14
 
15
15
  normalizeEntityName: function (entityName) {
@@ -5,7 +5,7 @@ const stringUtil = require('ember-cli-string-utils');
5
5
  const useTestFrameworkDetector = require('../test-framework-detector');
6
6
  const path = require('path');
7
7
 
8
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
8
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
9
9
  const { modulePrefixForProject } = require('../-utils');
10
10
 
11
11
  module.exports = useTestFrameworkDetector({
@@ -15,7 +15,7 @@ module.exports = useTestFrameworkDetector({
15
15
 
16
16
  init() {
17
17
  this._super && this._super.init.apply(this, arguments);
18
- maybePolyfillTypeScriptBlueprints(this);
18
+ typescriptBlueprintPolyfill(this);
19
19
  },
20
20
 
21
21
  locals: function (options) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  const normalizeEntityName = require('ember-cli-normalize-entity-name');
4
4
 
5
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
5
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
6
6
 
7
7
  module.exports = {
8
8
  description: 'Generates a helper function.',
@@ -11,7 +11,7 @@ module.exports = {
11
11
 
12
12
  init() {
13
13
  this._super && this._super.init.apply(this, arguments);
14
- maybePolyfillTypeScriptBlueprints(this);
14
+ typescriptBlueprintPolyfill(this);
15
15
  },
16
16
 
17
17
  normalizeEntityName: function (entityName) {
@@ -3,7 +3,7 @@
3
3
  const isPackageMissing = require('ember-cli-is-package-missing');
4
4
  const semver = require('semver');
5
5
 
6
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
6
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
7
7
  const { modulePrefixForProject } = require('../-utils');
8
8
 
9
9
  const useTestFrameworkDetector = require('../test-framework-detector');
@@ -15,7 +15,7 @@ module.exports = useTestFrameworkDetector({
15
15
 
16
16
  init() {
17
17
  this._super && this._super.init.apply(this, arguments);
18
- maybePolyfillTypeScriptBlueprints(this);
18
+ typescriptBlueprintPolyfill(this);
19
19
  },
20
20
 
21
21
  fileMapTokens: function () {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
3
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
4
4
 
5
5
  module.exports = {
6
6
  description: 'Generates an initializer.',
@@ -9,6 +9,6 @@ module.exports = {
9
9
 
10
10
  init() {
11
11
  this._super && this._super.init.apply(this, arguments);
12
- maybePolyfillTypeScriptBlueprints(this);
12
+ typescriptBlueprintPolyfill(this);
13
13
  },
14
14
  };
@@ -3,7 +3,7 @@
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
5
 
6
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
6
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
7
7
  const { modulePrefixForProject } = require('../-utils');
8
8
  const useTestFrameworkDetector = require('../test-framework-detector');
9
9
 
@@ -14,7 +14,7 @@ module.exports = useTestFrameworkDetector({
14
14
 
15
15
  init() {
16
16
  this._super && this._super.init.apply(this, arguments);
17
- maybePolyfillTypeScriptBlueprints(this);
17
+ typescriptBlueprintPolyfill(this);
18
18
  },
19
19
 
20
20
  fileMapTokens: function () {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
3
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
4
4
 
5
5
  module.exports = {
6
6
  shouldTransformTypeScript: true,
@@ -9,6 +9,6 @@ module.exports = {
9
9
 
10
10
  init() {
11
11
  this._super && this._super.init.apply(this, arguments);
12
- maybePolyfillTypeScriptBlueprints(this);
12
+ typescriptBlueprintPolyfill(this);
13
13
  },
14
14
  };
@@ -3,7 +3,7 @@
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
5
 
6
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
6
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
7
7
  const { modulePrefixForProject } = require('../-utils');
8
8
  const useTestFrameworkDetector = require('../test-framework-detector');
9
9
 
@@ -14,7 +14,7 @@ module.exports = useTestFrameworkDetector({
14
14
 
15
15
  init() {
16
16
  this._super && this._super.init.apply(this, arguments);
17
- maybePolyfillTypeScriptBlueprints(this);
17
+ typescriptBlueprintPolyfill(this);
18
18
  },
19
19
 
20
20
  fileMapTokens: function () {
@@ -7,7 +7,7 @@ const stringUtil = require('ember-cli-string-utils');
7
7
  const EmberRouterGenerator = require('ember-router-generator');
8
8
  const SilentError = require('silent-error');
9
9
 
10
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
10
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
11
11
 
12
12
  module.exports = {
13
13
  description: 'Generates a route and a template, and registers the route with the router.',
@@ -33,7 +33,7 @@ module.exports = {
33
33
 
34
34
  init() {
35
35
  this._super && this._super.init.apply(this, arguments);
36
- maybePolyfillTypeScriptBlueprints(this);
36
+ typescriptBlueprintPolyfill(this);
37
37
  },
38
38
 
39
39
  fileMapTokens: function () {
@@ -4,18 +4,9 @@ const path = require('path');
4
4
  const stringUtil = require('ember-cli-string-utils');
5
5
  const inflector = require('inflection');
6
6
 
7
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
8
-
9
7
  module.exports = {
10
8
  description: 'Generates import wrappers for a route and its template.',
11
9
 
12
- shouldTransformTypeScript: true,
13
-
14
- init() {
15
- this._super && this._super.init.apply(this, arguments);
16
- maybePolyfillTypeScriptBlueprints(this);
17
- },
18
-
19
10
  fileMapTokens: function () {
20
11
  return {
21
12
  __templatepath__: function (options) {
@@ -4,7 +4,7 @@ const path = require('path');
4
4
  const stringUtil = require('ember-cli-string-utils');
5
5
 
6
6
  const useTestFrameworkDetector = require('../test-framework-detector');
7
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
7
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
8
8
  const { modulePrefixForProject } = require('../-utils');
9
9
 
10
10
  module.exports = useTestFrameworkDetector({
@@ -14,7 +14,7 @@ module.exports = useTestFrameworkDetector({
14
14
 
15
15
  init() {
16
16
  this._super && this._super.init.apply(this, arguments);
17
- maybePolyfillTypeScriptBlueprints(this);
17
+ typescriptBlueprintPolyfill(this);
18
18
  },
19
19
 
20
20
  availableOptions: [
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
3
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
4
4
 
5
5
  module.exports = {
6
6
  description: 'Generates a service.',
@@ -9,7 +9,7 @@ module.exports = {
9
9
 
10
10
  init() {
11
11
  this._super && this._super.init.apply(this, arguments);
12
- maybePolyfillTypeScriptBlueprints(this);
12
+ typescriptBlueprintPolyfill(this);
13
13
  },
14
14
 
15
15
  normalizeEntityName: function (entityName) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
3
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
4
4
  const { modulePrefixForProject } = require('../-utils');
5
5
  const useTestFrameworkDetector = require('../test-framework-detector');
6
6
 
@@ -11,7 +11,7 @@ module.exports = useTestFrameworkDetector({
11
11
 
12
12
  init() {
13
13
  this._super && this._super.init.apply(this, arguments);
14
- maybePolyfillTypeScriptBlueprints(this);
14
+ typescriptBlueprintPolyfill(this);
15
15
  },
16
16
 
17
17
  fileMapTokens() {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
3
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
4
4
 
5
5
  module.exports = {
6
6
  description: 'Generates a simple utility module/function.',
@@ -9,7 +9,7 @@ module.exports = {
9
9
 
10
10
  init() {
11
11
  this._super && this._super.init.apply(this, arguments);
12
- maybePolyfillTypeScriptBlueprints(this);
12
+ typescriptBlueprintPolyfill(this);
13
13
  },
14
14
 
15
15
  normalizeEntityName: function (entityName) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  const path = require('path');
4
4
 
5
- const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
5
+ const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
6
6
  const { modulePrefixForProject } = require('../-utils');
7
7
  const useTestFrameworkDetector = require('../test-framework-detector');
8
8
 
@@ -13,7 +13,7 @@ module.exports = useTestFrameworkDetector({
13
13
 
14
14
  init() {
15
15
  this._super && this._super.init.apply(this, arguments);
16
- maybePolyfillTypeScriptBlueprints(this);
16
+ typescriptBlueprintPolyfill(this);
17
17
  },
18
18
 
19
19
  fileMapTokens() {
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "6.2.0-alpha.7",
2
+ "version": "6.2.0",
3
3
  "buildType": "tag",
4
- "SHA": "d5c2f9303de4804e9e5167e03bfaf0d1dd2d2afb",
5
- "assetPath": "/tag/shas/d5c2f9303de4804e9e5167e03bfaf0d1dd2d2afb.tgz"
4
+ "SHA": "8d0bb45f523aed2b8dd421e644538e64f71c2acf",
5
+ "assetPath": "/tag/shas/8d0bb45f523aed2b8dd421e644538e64f71c2acf.tgz"
6
6
  }
@@ -5,7 +5,7 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 6.2.0-alpha.7
8
+ * @version 6.2.0
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -15651,7 +15651,7 @@ var define, require;
15651
15651
  }, Symbol.toStringTag, { value: 'Module' });
15652
15652
 
15653
15653
  // this file gets replaced with the real value during the build
15654
- const version = '6.2.0-alpha.7';
15654
+ const version = '6.2.0';
15655
15655
 
15656
15656
  const emberVersion = /*#__PURE__*/Object.defineProperty({
15657
15657
  __proto__: null,
@@ -5,7 +5,7 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 6.2.0-alpha.7
8
+ * @version 6.2.0
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -5,7 +5,7 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 6.2.0-alpha.7
8
+ * @version 6.2.0
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -3379,7 +3379,7 @@ var define, require;
3379
3379
  }, Symbol.toStringTag, { value: 'Module' });
3380
3380
 
3381
3381
  // this file gets replaced with the real value during the build
3382
- const Version = '6.2.0-alpha.7';
3382
+ const Version = '6.2.0';
3383
3383
 
3384
3384
  const emberVersion = /*#__PURE__*/Object.defineProperty({
3385
3385
  __proto__: null,
@@ -5,7 +5,7 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 6.2.0-alpha.7
8
+ * @version 6.2.0
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -2620,7 +2620,7 @@ var define, require;
2620
2620
  }, Symbol.toStringTag, { value: 'Module' });
2621
2621
 
2622
2622
  // this file gets replaced with the real value during the build
2623
- const Version = '6.2.0-alpha.7';
2623
+ const Version = '6.2.0';
2624
2624
 
2625
2625
  const emberVersion = /*#__PURE__*/Object.defineProperty({
2626
2626
  __proto__: null,
@@ -1,4 +1,4 @@
1
1
  // this file gets replaced with the real value during the build
2
- const Version = '6.2.0-alpha.7';
2
+ const Version = '6.2.0';
3
3
 
4
4
  export { Version as default };
package/docs/data.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "The Ember API",
4
4
  "description": "The Ember API: a framework for building ambitious web applications",
5
5
  "url": "https://emberjs.com/",
6
- "version": "6.2.0-alpha.7"
6
+ "version": "6.2.0"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "6.2.0-alpha.7",
3
+ "version": "6.2.0",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -22,7 +22,6 @@
22
22
  "files": [
23
23
  "build-metadata.json",
24
24
  "blueprints",
25
- "blueprints-js",
26
25
  "dist/packages",
27
26
  "dist/dependencies",
28
27
  "dist/ember-template-compiler.js",
@@ -54,9 +53,7 @@
54
53
  "lint:eslint:fix": "npm-run-all \"lint:eslint --fix\"",
55
54
  "lint:fix": "npm-run-all lint:*:fix",
56
55
  "test": "node bin/run-tests.js",
57
- "test:blueprints:js": "EMBER_TYPESCRIPT_BLUEPRINTS=false pnpm test:blueprints:ts",
58
- "test:blueprints:ts": "mocha node-tests/blueprints/**/*-test.js",
59
- "test:blueprints": "pnpm test:blueprints:js && pnpm test:blueprints:ts",
56
+ "test:blueprints": "mocha node-tests/blueprints/**/*-test.js",
60
57
  "test:node": "qunit tests/node/**/*-test.js",
61
58
  "test:browserstack": "node bin/run-browserstack-tests.js",
62
59
  "test:wip": "vite build --mode development --minify false && testem ci",
@@ -397,13 +394,11 @@
397
394
  ]
398
395
  }
399
396
  },
397
+ "packageManager": "pnpm@8.10.0",
400
398
  "volta": {
401
399
  "node": "16.20.0",
402
400
  "pnpm": "8.10.0"
403
401
  },
404
- "_originalVersion": "6.2.0-alpha.7",
405
- "_versionPreviouslyCalculated": true,
406
- "publishConfig": {
407
- "tag": "alpha"
408
- }
402
+ "_originalVersion": "6.2.0",
403
+ "_versionPreviouslyCalculated": true
409
404
  }
@@ -1,19 +0,0 @@
1
- const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
2
- const EMBER_TYPESCRIPT_BLUEPRINTS = true;
3
-
4
- function canEmitTypeScript() {
5
- return 'EMBER_TYPESCRIPT_BLUEPRINTS' in process.env
6
- ? process.env.EMBER_TYPESCRIPT_BLUEPRINTS === 'true'
7
- : EMBER_TYPESCRIPT_BLUEPRINTS;
8
- }
9
-
10
- module.exports = function (context) {
11
- let canUseTypeScript = canEmitTypeScript();
12
- if (canUseTypeScript) {
13
- typescriptBlueprintPolyfill(context);
14
- } else {
15
- // Use the plain old JS templates from before
16
- context.path = context.path.replace('blueprints', 'blueprints-js');
17
- }
18
- return canUseTypeScript;
19
- };
@@ -1 +0,0 @@
1
- export { default, initialize } from '<%= modulePath %>';
@@ -1 +0,0 @@
1
- export { default, initialize } from '<%= modulePath %>';
@@ -1,12 +0,0 @@
1
- import { test } from 'qunit';
2
- import moduleForAcceptance from '<%= testFolderRoot %>/tests/helpers/module-for-acceptance';
3
-
4
- moduleForAcceptance('<%= friendlyTestName %>');
5
-
6
- test('visiting /<%= dasherizedModuleName %>', function (assert) {
7
- visit('/<%= dasherizedModuleName %>');
8
-
9
- andThen(function () {
10
- assert.strictEqual(currentURL(), '/<%= dasherizedModuleName %>');
11
- });
12
- });
@@ -1,13 +0,0 @@
1
- import { module, test } from 'qunit';
2
- import { visit, currentURL } from '@ember/test-helpers';
3
- import { setupApplicationTest } from '<%= modulePrefix %>/tests/helpers';
4
-
5
- module('<%= friendlyTestName %>', function (hooks) {
6
- setupApplicationTest(hooks);
7
-
8
- test('visiting /<%= dasherizedModuleName %>', async function (assert) {
9
- await visit('/<%= dasherizedModuleName %>');
10
-
11
- assert.strictEqual(currentURL(), '/<%= dasherizedModuleName %>');
12
- });
13
- });
@@ -1,3 +0,0 @@
1
- <%= importComponent %>
2
- <%= importTemplate %>
3
- export default <%= defaultExport %>
@@ -1 +0,0 @@
1
- export { default } from '<%= modulePath %>';
@@ -1,3 +0,0 @@
1
- <%= importComponent %>
2
- <%= importTemplate %>
3
- export default <%= defaultExport %>
@@ -1 +0,0 @@
1
- export { default } from '<%= modulePath %>';
@@ -1,31 +0,0 @@
1
- import { moduleForComponent, test } from 'ember-qunit';<% if (testType === 'integration') { %>
2
- import hbs from 'htmlbars-inline-precompile';<% } %>
3
-
4
- moduleForComponent('<%= componentPathName %>', '<%= friendlyTestDescription %>', {
5
- <% if (testType === 'integration' ) { %>integration: true,<% } else if(testType === 'unit') { %>// Specify the other units that are required for this test
6
- // needs: ['component:foo', 'helper:bar'],
7
- unit: true,<% } %>
8
- });
9
-
10
- test('it renders', function (assert) {<% if (testType === 'integration' ) { %>
11
- // Set any properties with this.set('myProperty', 'value');
12
- // Handle any actions with this.on('myAction', function(val) { ... });
13
-
14
- this.render(hbs`<%= selfCloseComponent(componentName) %>`);
15
-
16
- assert.strictEqual(this.$().text().trim(), '');
17
-
18
- // Template block usage:
19
- this.render(hbs`
20
- <%= openComponent(componentName) %>
21
- template block text
22
- <%= closeComponent(componentName) %>
23
- `);
24
-
25
- assert.strictEqual(this.$().text().trim(), 'template block text');<% } else if(testType === 'unit') { %>
26
- // Creates the component instance
27
- /*let component =*/ this.subject();
28
- // Renders the component to the page
29
- this.render();
30
- assert.strictEqual(this.$().text().trim(), '');<% } %>
31
- });
@@ -1,36 +0,0 @@
1
- <% if (testType === 'integration') { %>import { module, test } from 'qunit';
2
- import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
3
- import { render } from '@ember/test-helpers';
4
- <%= hbsImportStatement %>
5
-
6
- module('<%= friendlyTestDescription %>', function (hooks) {
7
- setupRenderingTest(hooks);
8
-
9
- test('it renders', async function (assert) {
10
- // Set any properties with this.set('myProperty', 'value');
11
- // Handle any actions with this.set('myAction', function(val) { ... });
12
-
13
- await render(hbs`<%= selfCloseComponent(componentName) %>`);
14
-
15
- assert.dom().hasText('');
16
-
17
- // Template block usage:
18
- await render(hbs`
19
- <%= openComponent(componentName) %>
20
- template block text
21
- <%= closeComponent(componentName) %>
22
- `);
23
-
24
- assert.dom().hasText('template block text');
25
- });
26
- });<% } else if (testType === 'unit') { %>import { module, test } from 'qunit';
27
- import { setupTest } from '<%= modulePrefix %>/tests/helpers';
28
-
29
- module('<%= friendlyTestDescription %>', function (hooks) {
30
- setupTest(hooks);
31
-
32
- test('it exists', function (assert) {
33
- let component = this.owner.factoryFor('component:<%= componentPathName %>').create();
34
- assert.ok(component);
35
- });
36
- });<% } %>
@@ -1,3 +0,0 @@
1
- import Controller from '@ember/controller';
2
-
3
- export default class <%= classifiedModuleName %>Controller extends Controller {}
@@ -1,12 +0,0 @@
1
- import { moduleFor, test } from 'ember-qunit';
2
-
3
- moduleFor('controller:<%= dasherizedModuleName %>', '<%= friendlyTestDescription %>', {
4
- // Specify the other units that are required for this test.
5
- // needs: ['controller:foo']
6
- });
7
-
8
- // TODO: Replace this with your real tests.
9
- test('it exists', function (assert) {
10
- let controller = this.subject();
11
- assert.ok(controller);
12
- });
@@ -1,12 +0,0 @@
1
- import { module, test } from 'qunit';
2
- import { setupTest } from '<%= modulePrefix %>/tests/helpers';
3
-
4
- module('<%= friendlyTestDescription %>', function (hooks) {
5
- setupTest(hooks);
6
-
7
- // TODO: Replace this with your real tests.
8
- test('it exists', function (assert) {
9
- let controller = this.owner.lookup('controller:<%= controllerPathName %>');
10
- assert.ok(controller);
11
- });
12
- });
@@ -1,5 +0,0 @@
1
- import { helper } from '@ember/component/helper';
2
-
3
- export default helper(function <%= camelizedModuleName %>(positional /*, named*/) {
4
- return positional;
5
- });
@@ -1 +0,0 @@
1
- export { default } from '<%= modulePath %>';
@@ -1,15 +0,0 @@
1
- import { moduleForComponent, test } from 'ember-qunit';
2
- import hbs from 'htmlbars-inline-precompile';
3
-
4
- moduleForComponent('<%= dasherizedModuleName %>', 'helper:<%= dasherizedModuleName %>', {
5
- integration: true,
6
- });
7
-
8
- // TODO: Replace this with your real tests.
9
- test('it renders', function (assert) {
10
- this.set('inputValue', '1234');
11
-
12
- this.render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`);
13
-
14
- assert.strictEqual(this.$().text().trim(), '1234');
15
- });
@@ -1,17 +0,0 @@
1
- import { module, test } from 'qunit';
2
- import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
3
- import { render } from '@ember/test-helpers';
4
- <%= hbsImportStatement %>
5
-
6
- module('<%= friendlyTestName %>', function (hooks) {
7
- setupRenderingTest(hooks);
8
-
9
- // TODO: Replace this with your real tests.
10
- test('it renders', async function (assert) {
11
- this.set('inputValue', '1234');
12
-
13
- await render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`);
14
-
15
- assert.dom().hasText('1234');
16
- });
17
- });
@@ -1,5 +0,0 @@
1
- export function initialize(application) {}
2
-
3
- export default {
4
- initialize,
5
- };
@@ -1,25 +0,0 @@
1
- import Application from '@ember/application';
2
- import { run } from '@ember/runloop';
3
-
4
- import { initialize } from '<%= modulePrefix %>/initializers/<%= dasherizedModuleName %>';
5
- import { module, test } from 'qunit';
6
- <% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';\n<% } %>
7
- module('<%= friendlyTestName %>', {
8
- beforeEach() {
9
- run(() => {
10
- this.application = Application.create();
11
- this.application.deferReadiness();
12
- });
13
- },
14
- afterEach() {
15
- <% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
16
- },
17
- });
18
-
19
- // TODO: Replace this with your real tests.
20
- test('it works', function (assert) {
21
- initialize(this.application);
22
-
23
- // you would normally confirm the results of the initializer here
24
- assert.ok(true);
25
- });
@@ -1,37 +0,0 @@
1
- import Application from '@ember/application';
2
-
3
- import config from '<%= modulePrefix %>/config/environment';
4
- import { initialize } from '<%= modulePrefix %>/initializers/<%= dasherizedModuleName %>';
5
- import { module, test } from 'qunit';
6
- import Resolver from 'ember-resolver';
7
- <% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';<% } else { %>import { run } from '@ember/runloop';<% } %>
8
-
9
- module('<%= friendlyTestName %>', function (hooks) {
10
- hooks.beforeEach(function () {
11
- this.TestApplication = class TestApplication extends Application {
12
- modulePrefix = config.modulePrefix;
13
- podModulePrefix = config.podModulePrefix;
14
- Resolver = Resolver;
15
- };
16
-
17
- this.TestApplication.initializer({
18
- name: 'initializer under test',
19
- initialize,
20
- });
21
-
22
- this.application = this.TestApplication.create({
23
- autoboot: false,
24
- });
25
- });
26
-
27
- hooks.afterEach(function () {
28
- <% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
29
- });
30
-
31
- // TODO: Replace this with your real tests.
32
- test('it works', async function (assert) {
33
- await this.application.boot();
34
-
35
- assert.ok(true);
36
- });
37
- });
@@ -1,5 +0,0 @@
1
- export function initialize(owner) {}
2
-
3
- export default {
4
- initialize,
5
- };
@@ -1,26 +0,0 @@
1
- import Application from '@ember/application';
2
- import { run } from '@ember/runloop';
3
- import { initialize } from '<%= modulePrefix %>/instance-initializers/<%= dasherizedModuleName %>';
4
- import { module, test } from 'qunit';<% if (destroyAppExists) { %>
5
- import destroyApp from '../../helpers/destroy-app';<% } %>
6
-
7
- module('<%= friendlyTestName %>', {
8
- beforeEach() {
9
- run(() => {
10
- this.application = Application.create();
11
- this.appInstance = this.application.buildInstance();
12
- });
13
- },
14
- afterEach() {
15
- run(this.appInstance, 'destroy');
16
- <% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
17
- },
18
- });
19
-
20
- // TODO: Replace this with your real tests.
21
- test('it works', function (assert) {
22
- initialize(this.appInstance);
23
-
24
- // you would normally confirm the results of the initializer here
25
- assert.ok(true);
26
- });
@@ -1,39 +0,0 @@
1
- import Application from '@ember/application';
2
-
3
- import config from '<%= modulePrefix %>/config/environment';
4
- import { initialize } from '<%= modulePrefix %>/instance-initializers/<%= dasherizedModuleName %>';
5
- import { module, test } from 'qunit';
6
- import Resolver from 'ember-resolver';
7
- <% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';<% } else { %>import { run } from '@ember/runloop';<% } %>
8
-
9
- module('<%= friendlyTestName %>', function (hooks) {
10
- hooks.beforeEach(function () {
11
- this.TestApplication = class TestApplication extends Application {
12
- modulePrefix = config.modulePrefix;
13
- podModulePrefix = config.podModulePrefix;
14
- Resolver = Resolver;
15
- };
16
-
17
- this.TestApplication.instanceInitializer({
18
- name: 'initializer under test',
19
- initialize,
20
- });
21
-
22
- this.application = this.TestApplication.create({
23
- autoboot: false,
24
- });
25
-
26
- this.instance = this.application.buildInstance();
27
- });
28
- hooks.afterEach(function () {
29
- <% if (destroyAppExists) { %>destroyApp(this.instance);<% } else { %>run(this.instance, 'destroy');<% } %>
30
- <% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
31
- });
32
-
33
- // TODO: Replace this with your real tests.
34
- test('it works', async function (assert) {
35
- await this.instance.boot();
36
-
37
- assert.ok(true);
38
- });
39
- });
@@ -1,3 +0,0 @@
1
- import Mixin from '@ember/object/mixin';
2
-
3
- export default Mixin.create({});
@@ -1,12 +0,0 @@
1
- import EmberObject from '@ember/object';
2
- import <%= classifiedModuleName %>Mixin from '<%= projectName %>/mixins/<%= dasherizedModuleName %>';
3
- import { module, test } from 'qunit';
4
-
5
- module('<%= friendlyTestName %>');
6
-
7
- // TODO: Replace this with your real tests.
8
- test('it works', function (assert) {
9
- let <%= classifiedModuleName %>Object = EmberObject.extend(<%= classifiedModuleName %>Mixin);
10
- let subject = <%= classifiedModuleName %>Object.create();
11
- assert.ok(subject);
12
- });
@@ -1,12 +0,0 @@
1
- import EmberObject from '@ember/object';
2
- import <%= classifiedModuleName %>Mixin from '<%= projectName %>/mixins/<%= dasherizedModuleName %>';
3
- import { module, test } from 'qunit';
4
-
5
- module('<%= friendlyTestName %>', function () {
6
- // TODO: Replace this with your real tests.
7
- test('it works', function (assert) {
8
- let <%= classifiedModuleName %>Object = EmberObject.extend(<%= classifiedModuleName %>Mixin);
9
- let subject = <%= classifiedModuleName %>Object.create();
10
- assert.ok(subject);
11
- });
12
- });
@@ -1,9 +0,0 @@
1
- import Route from '@ember/routing/route';
2
-
3
- export default class <%= classifiedModuleName %>Route extends Route {<% if (hasDynamicSegment) {%>
4
- model(params) {
5
- // This route was generated with a dynamic segment. Implement data loading
6
- // based on that dynamic segment here in the model hook.
7
- return params;
8
- }
9
- <%}%>}
@@ -1,2 +0,0 @@
1
- <% if (addTitle) {%>{{page-title "<%= routeName %>"}}
2
- <%}%>{{outlet}}
@@ -1 +0,0 @@
1
- export { default } from '<%= routeModulePath %>';
@@ -1 +0,0 @@
1
- export { default } from '<%= templateModulePath %>';
@@ -1,11 +0,0 @@
1
- import { moduleFor, test } from 'ember-qunit';
2
-
3
- moduleFor('route:<%= moduleName %>', '<%= friendlyTestDescription %>', {
4
- // Specify the other units that are required for this test.
5
- // needs: ['controller:foo']
6
- });
7
-
8
- test('it exists', function (assert) {
9
- let route = this.subject();
10
- assert.ok(route);
11
- });
@@ -1,11 +0,0 @@
1
- import { module, test } from 'qunit';
2
- import { setupTest } from '<%= modulePrefix %>/tests/helpers';
3
-
4
- module('<%= friendlyTestDescription %>', function (hooks) {
5
- setupTest(hooks);
6
-
7
- test('it exists', function (assert) {
8
- let route = this.owner.lookup('route:<%= moduleName %>');
9
- assert.ok(route);
10
- });
11
- });
@@ -1,3 +0,0 @@
1
- import Service from '@ember/service';
2
-
3
- export default class <%= classifiedModuleName %>Service extends Service {}
@@ -1,12 +0,0 @@
1
- import { moduleFor, test } from 'ember-qunit';
2
-
3
- moduleFor('service:<%= dasherizedModuleName %>', '<%= friendlyTestDescription %>', {
4
- // Specify the other units that are required for this test.
5
- // needs: ['service:foo']
6
- });
7
-
8
- // TODO: Replace this with your real tests.
9
- test('it exists', function (assert) {
10
- let service = this.subject();
11
- assert.ok(service);
12
- });
@@ -1,12 +0,0 @@
1
- import { module, test } from 'qunit';
2
- import { setupTest } from '<%= modulePrefix %>/tests/helpers';
3
-
4
- module('<%= friendlyTestDescription %>', function (hooks) {
5
- setupTest(hooks);
6
-
7
- // TODO: Replace this with your real tests.
8
- test('it exists', function (assert) {
9
- let service = this.owner.lookup('service:<%= dasherizedModuleName %>');
10
- assert.ok(service);
11
- });
12
- });
@@ -1,3 +0,0 @@
1
- export default function <%= camelizedModuleName %>() {
2
- return true;
3
- }
@@ -1,10 +0,0 @@
1
- import <%= camelizedModuleName %> from '<%= modulePrefix %>/utils/<%= dasherizedModuleName %>';
2
- import { module, test } from 'qunit';
3
-
4
- module('<%= friendlyTestName %>');
5
-
6
- // TODO: Replace this with your real tests.
7
- test('it works', function (assert) {
8
- let result = <%= camelizedModuleName %>();
9
- assert.ok(result);
10
- });
@@ -1,10 +0,0 @@
1
- import <%= camelizedModuleName %> from '<%= modulePrefix %>/utils/<%= dasherizedModuleName %>';
2
- import { module, test } from 'qunit';
3
-
4
- module('<%= friendlyTestName %>', function () {
5
- // TODO: Replace this with your real tests.
6
- test('it works', function (assert) {
7
- let result = <%= camelizedModuleName %>();
8
- assert.ok(result);
9
- });
10
- });