ember-source 4.6.0-alpha.4 → 4.6.0-beta.1
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/CHANGELOG.md +13 -1
- package/blueprints/-utils.js +9 -0
- package/blueprints/acceptance-test/index.js +3 -1
- package/blueprints/acceptance-test/mocha-rfc-232-files/tests/acceptance/__name__-test.ts +1 -1
- package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.ts +1 -1
- package/blueprints/component-test/index.js +2 -0
- package/blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +2 -2
- package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +2 -2
- package/blueprints/controller-test/index.js +2 -0
- package/blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/helper-test/index.js +2 -3
- package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.ts +1 -1
- package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.ts +1 -1
- package/blueprints/initializer-test/index.js +2 -3
- package/blueprints/instance-initializer-test/index.js +2 -4
- package/blueprints/route-test/index.js +2 -0
- package/blueprints/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/service-test/index.js +2 -0
- package/blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +1 -1
- package/blueprints/util-test/index.js +2 -2
- package/blueprints/util-test/qunit-files/__root__/__testType__/__name__-test.js +1 -1
- package/blueprints/util-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.ts +1 -1
- package/blueprints-js/acceptance-test/mocha-rfc-232-files/tests/acceptance/__name__-test.js +1 -1
- package/blueprints-js/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +1 -1
- package/blueprints-js/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
- package/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +2 -2
- package/blueprints-js/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +1 -1
- package/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +1 -1
- package/blueprints-js/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +1 -1
- package/blueprints-js/util-test/qunit-files/__root__/__testType__/__name__-test.js +1 -1
- package/blueprints-js/util-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +1 -1
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +4 -4
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +4 -4
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/canary-features/index.js +2 -2
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +1 -1
- package/package.json +3 -3
- package/blueprints-js/-addon-import.js +0 -48
- package/blueprints-js/test-framework-detector.js +0 -60
package/dist/header/license.js
CHANGED
|
@@ -11,8 +11,8 @@ import { ENV } from '@ember/-internals/environment';
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
export const DEFAULT_FEATURES = {
|
|
14
|
-
EMBER_LIBRARIES_ISREGISTERED:
|
|
15
|
-
EMBER_IMPROVED_INSTRUMENTATION:
|
|
14
|
+
EMBER_LIBRARIES_ISREGISTERED: false,
|
|
15
|
+
EMBER_IMPROVED_INSTRUMENTATION: false,
|
|
16
16
|
EMBER_UNIQUE_ID_HELPER: true,
|
|
17
17
|
EMBER_DEFAULT_HELPER_MANAGER: true
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "4.6.0-
|
|
1
|
+
export default "4.6.0-beta.1";
|
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": "4.6.0-
|
|
6
|
+
"version": "4.6.0-beta.1"
|
|
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": "4.6.0-
|
|
3
|
+
"version": "4.6.0-beta.1",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -160,9 +160,9 @@
|
|
|
160
160
|
"ember-addon": {
|
|
161
161
|
"after": "ember-cli-legacy-blueprints"
|
|
162
162
|
},
|
|
163
|
-
"_originalVersion": "4.6.0-
|
|
163
|
+
"_originalVersion": "4.6.0-beta.1",
|
|
164
164
|
"_versionPreviouslyCalculated": true,
|
|
165
165
|
"publishConfig": {
|
|
166
|
-
"tag": "
|
|
166
|
+
"tag": "beta"
|
|
167
167
|
}
|
|
168
168
|
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const stringUtil = require('ember-cli-string-utils');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
const inflector = require('inflection');
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
description: 'Generates an import wrapper.',
|
|
9
|
-
|
|
10
|
-
fileMapTokens: function () {
|
|
11
|
-
return {
|
|
12
|
-
__name__: function (options) {
|
|
13
|
-
return options.dasherizedModuleName;
|
|
14
|
-
},
|
|
15
|
-
__path__: function (options) {
|
|
16
|
-
return inflector.pluralize(options.locals.blueprintName);
|
|
17
|
-
},
|
|
18
|
-
__root__: function (options) {
|
|
19
|
-
if (options.inRepoAddon) {
|
|
20
|
-
return path.join('lib', options.inRepoAddon, 'app');
|
|
21
|
-
}
|
|
22
|
-
return 'app';
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
locals: function (options) {
|
|
28
|
-
let addonRawName = options.inRepoAddon ? options.inRepoAddon : options.project.name();
|
|
29
|
-
let addonName = stringUtil.dasherize(addonRawName);
|
|
30
|
-
let fileName = stringUtil.dasherize(options.entity.name);
|
|
31
|
-
let blueprintName = options.originBlueprintName;
|
|
32
|
-
let modulePathSegments = [
|
|
33
|
-
addonName,
|
|
34
|
-
inflector.pluralize(options.originBlueprintName),
|
|
35
|
-
fileName,
|
|
36
|
-
];
|
|
37
|
-
|
|
38
|
-
if (blueprintName.match(/-addon/)) {
|
|
39
|
-
blueprintName = blueprintName.substr(0, blueprintName.indexOf('-addon'));
|
|
40
|
-
modulePathSegments = [addonName, inflector.pluralize(blueprintName), fileName];
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return {
|
|
44
|
-
modulePath: modulePathSegments.join('/'),
|
|
45
|
-
blueprintName: blueprintName,
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
const VersionChecker = require('ember-cli-version-checker');
|
|
6
|
-
|
|
7
|
-
module.exports = function (blueprint) {
|
|
8
|
-
blueprint.supportsAddon = function () {
|
|
9
|
-
return false;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
blueprint.filesPath = function () {
|
|
13
|
-
let type;
|
|
14
|
-
const qunitRfcVersion = 'qunit-rfc-232';
|
|
15
|
-
const mochaRfcVersion = 'mocha-rfc-232';
|
|
16
|
-
const mochaVersion = 'mocha-0.12';
|
|
17
|
-
|
|
18
|
-
let dependencies = this.project.dependencies();
|
|
19
|
-
if ('ember-qunit' in dependencies) {
|
|
20
|
-
type = qunitRfcVersion;
|
|
21
|
-
} else if ('ember-cli-qunit' in dependencies) {
|
|
22
|
-
let checker = new VersionChecker(this.project);
|
|
23
|
-
if (
|
|
24
|
-
fs.existsSync(`${this.path}/${qunitRfcVersion}-files`) &&
|
|
25
|
-
checker.for('ember-cli-qunit', 'npm').gte('4.2.0')
|
|
26
|
-
) {
|
|
27
|
-
type = qunitRfcVersion;
|
|
28
|
-
} else {
|
|
29
|
-
type = 'qunit';
|
|
30
|
-
}
|
|
31
|
-
} else if ('ember-mocha' in dependencies) {
|
|
32
|
-
let checker = new VersionChecker(this.project);
|
|
33
|
-
if (
|
|
34
|
-
fs.existsSync(`${this.path}/${mochaRfcVersion}-files`) &&
|
|
35
|
-
checker.for('ember-mocha', 'npm').gte('0.14.0')
|
|
36
|
-
) {
|
|
37
|
-
type = mochaRfcVersion;
|
|
38
|
-
} else {
|
|
39
|
-
type = mochaVersion;
|
|
40
|
-
}
|
|
41
|
-
} else if ('ember-cli-mocha' in dependencies) {
|
|
42
|
-
let checker = new VersionChecker(this.project);
|
|
43
|
-
if (
|
|
44
|
-
fs.existsSync(`${this.path}/${mochaVersion}-files`) &&
|
|
45
|
-
checker.for('ember-cli-mocha', 'npm').gte('0.12.0')
|
|
46
|
-
) {
|
|
47
|
-
type = mochaVersion;
|
|
48
|
-
} else {
|
|
49
|
-
type = 'mocha';
|
|
50
|
-
}
|
|
51
|
-
} else {
|
|
52
|
-
this.ui.writeLine("Couldn't determine test style - using QUnit");
|
|
53
|
-
type = 'qunit';
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return path.join(this.path, type + '-files');
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
return blueprint;
|
|
60
|
-
};
|