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.
- package/blueprints/-addon-import.js +0 -9
- package/blueprints/acceptance-test/index.js +2 -2
- package/blueprints/component/index.js +7 -22
- package/blueprints/component-addon/index.js +0 -9
- package/blueprints/component-class/index.js +7 -22
- package/blueprints/component-class-addon/index.js +0 -9
- package/blueprints/component-test/index.js +2 -2
- package/blueprints/controller/index.js +2 -2
- package/blueprints/controller-test/index.js +2 -2
- package/blueprints/helper/index.js +2 -2
- package/blueprints/helper-test/index.js +2 -2
- package/blueprints/initializer/index.js +2 -2
- package/blueprints/initializer-test/index.js +2 -2
- package/blueprints/instance-initializer/index.js +2 -2
- package/blueprints/instance-initializer-test/index.js +2 -2
- package/blueprints/route/index.js +2 -2
- package/blueprints/route-addon/index.js +0 -9
- package/blueprints/route-test/index.js +2 -2
- package/blueprints/service/index.js +2 -2
- package/blueprints/service-test/index.js +2 -2
- package/blueprints/util/index.js +2 -2
- package/blueprints/util-test/index.js +2 -2
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +2 -2
- package/dist/ember-testing.js +1 -1
- package/dist/ember.debug.js +2 -2
- package/dist/ember.prod.js +2 -2
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +1 -1
- package/package.json +5 -10
- package/blueprints/-maybe-polyfill-typescript-blueprints.js +0 -19
- package/blueprints/initializer-addon/files/__root__/__path__/__name__.ts +0 -1
- package/blueprints/instance-initializer-addon/files/__root__/__path__/__name__.ts +0 -1
- package/blueprints-js/acceptance-test/qunit-files/tests/acceptance/__name__-test.js +0 -12
- package/blueprints-js/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +0 -13
- package/blueprints-js/component/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/component/files/__root__/__templatepath__/__templatename__.hbs +0 -1
- package/blueprints-js/component-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/component-class/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/component-class-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/component-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -31
- package/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -36
- package/blueprints-js/controller/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/controller-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/helper/files/__root__/helpers/__name__.js +0 -5
- package/blueprints-js/helper-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/helper-test/qunit-files/__root__/__testType__/helpers/__name__-test.js +0 -15
- package/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.js +0 -17
- package/blueprints-js/initializer/files/__root__/initializers/__name__.js +0 -5
- package/blueprints-js/initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +0 -25
- package/blueprints-js/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -37
- package/blueprints-js/instance-initializer/files/__root__/instance-initializers/__name__.js +0 -5
- package/blueprints-js/instance-initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +0 -26
- package/blueprints-js/instance-initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -39
- package/blueprints-js/mixin/files/__root__/mixins/__name__.js +0 -3
- package/blueprints-js/mixin-test/qunit-files/__root__/__testType__/__name__-test.js +0 -12
- package/blueprints-js/mixin-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +0 -12
- package/blueprints-js/route/files/__root__/__path__/__name__.js +0 -9
- package/blueprints-js/route/files/__root__/__templatepath__/__templatename__.hbs +0 -2
- package/blueprints-js/route-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/route-addon/files/__root__/__templatepath__/__templatename__.js +0 -1
- package/blueprints-js/route-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -11
- package/blueprints-js/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -11
- package/blueprints-js/service/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/service-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/template/files/__root__/__path__/__name__.hbs +0 -0
- package/blueprints-js/util/files/__root__/utils/__name__.js +0 -3
- package/blueprints-js/util-test/qunit-files/__root__/__testType__/__name__-test.js +0 -10
- package/blueprints-js/util-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +0 -10
- /package/{blueprints-js → blueprints}/initializer-addon/files/__root__/__path__/__name__.js +0 -0
- /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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
214
|
-
|
|
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
|
-
|
|
223
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
136
|
-
|
|
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
|
-
|
|
145
|
-
|
|
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
|
|
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
|
-
|
|
25
|
+
typescriptBlueprintPolyfill(this);
|
|
26
26
|
},
|
|
27
27
|
|
|
28
28
|
availableOptions: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
18
|
+
typescriptBlueprintPolyfill(this);
|
|
19
19
|
},
|
|
20
20
|
|
|
21
21
|
fileMapTokens: function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
17
|
+
typescriptBlueprintPolyfill(this);
|
|
18
18
|
},
|
|
19
19
|
|
|
20
20
|
fileMapTokens: function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
17
|
+
typescriptBlueprintPolyfill(this);
|
|
18
18
|
},
|
|
19
19
|
|
|
20
20
|
availableOptions: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
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
|
-
|
|
12
|
+
typescriptBlueprintPolyfill(this);
|
|
13
13
|
},
|
|
14
14
|
|
|
15
15
|
normalizeEntityName: function (entityName) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
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
|
-
|
|
14
|
+
typescriptBlueprintPolyfill(this);
|
|
15
15
|
},
|
|
16
16
|
|
|
17
17
|
fileMapTokens() {
|
package/blueprints/util/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
16
|
+
typescriptBlueprintPolyfill(this);
|
|
17
17
|
},
|
|
18
18
|
|
|
19
19
|
fileMapTokens() {
|
package/build-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "6.2.0
|
|
2
|
+
"version": "6.2.0",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
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
|
|
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
|
|
15654
|
+
const version = '6.2.0';
|
|
15655
15655
|
|
|
15656
15656
|
const emberVersion = /*#__PURE__*/Object.defineProperty({
|
|
15657
15657
|
__proto__: null,
|
package/dist/ember-testing.js
CHANGED
|
@@ -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
|
|
8
|
+
* @version 6.2.0
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable no-var */
|
|
11
11
|
/* globals global globalThis self */
|
package/dist/ember.debug.js
CHANGED
|
@@ -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
|
|
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
|
|
3382
|
+
const Version = '6.2.0';
|
|
3383
3383
|
|
|
3384
3384
|
const emberVersion = /*#__PURE__*/Object.defineProperty({
|
|
3385
3385
|
__proto__: null,
|
package/dist/ember.prod.js
CHANGED
|
@@ -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
|
|
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
|
|
2623
|
+
const Version = '6.2.0';
|
|
2624
2624
|
|
|
2625
2625
|
const emberVersion = /*#__PURE__*/Object.defineProperty({
|
|
2626
2626
|
__proto__: null,
|
package/docs/data.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "6.2.0
|
|
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
|
|
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
|
|
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 +0,0 @@
|
|
|
1
|
-
{{yield}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '<%= modulePath %>';
|
|
@@ -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
|
-
});
|
package/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js
DELETED
|
@@ -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
|
-
});<% } %>
|
package/blueprints-js/controller-test/qunit-files/__root__/__testType__/__path__/__test__.js
DELETED
|
@@ -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
|
-
});
|
package/blueprints-js/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js
DELETED
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export { default } from '<%= modulePath %>';
|
package/blueprints-js/helper-test/qunit-files/__root__/__testType__/helpers/__name__-test.js
DELETED
|
@@ -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
|
-
});
|
package/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.js
DELETED
|
@@ -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
|
-
});
|
package/blueprints-js/initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js
DELETED
|
@@ -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,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,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 +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
|
-
});
|
package/blueprints-js/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js
DELETED
|
@@ -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,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
|
-
});
|
package/blueprints-js/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js
DELETED
|
@@ -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
|
-
});
|
|
File without changes
|
|
@@ -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
|
-
});
|
|
File without changes
|
/package/{blueprints-js → blueprints}/instance-initializer-addon/files/__root__/__path__/__name__.js
RENAMED
|
File without changes
|