ember-cli 5.4.1 → 5.5.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 +22 -4
- package/blueprints/addon/files/.travis.yml +11 -0
- package/blueprints/addon/files/CONTRIBUTING.md +6 -6
- package/blueprints/addon/index.js +12 -0
- package/blueprints/app/files/.travis.yml +11 -0
- package/blueprints/app/files/README.md +7 -7
- package/blueprints/app/files/ember-cli-build.js +6 -0
- package/blueprints/app/files/package.json +2 -2
- package/blueprints/app/index.js +16 -0
- package/docs/build/data.json +153 -121
- package/lib/commands/addon.js +1 -1
- package/lib/commands/init.js +21 -1
- package/lib/commands/new.js +1 -1
- package/lib/debug/deprecate.js +12 -3
- package/lib/models/blueprint.js +59 -9
- package/lib/models/command.js +1 -1
- package/lib/models/per-bundle-addon-cache/index.js +1 -1
- package/lib/models/per-bundle-addon-cache/target-instance.js +2 -1
- package/lib/utilities/is-lazy-engine.js +2 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,33 @@
|
|
|
1
1
|
# ember-cli Changelog
|
|
2
2
|
|
|
3
|
-
## v5.
|
|
3
|
+
## v5.5.0-beta.1
|
|
4
4
|
|
|
5
5
|
#### Blueprint Changes
|
|
6
6
|
|
|
7
|
-
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.
|
|
8
|
-
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.
|
|
7
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.5.0-beta.0...v5.5.0-beta.1)
|
|
8
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.5.0-beta.0...v5.5.0-beta.1)
|
|
9
9
|
|
|
10
10
|
#### Changelog
|
|
11
11
|
|
|
12
|
-
- [#
|
|
12
|
+
- [#10403](https://github.com/ember-cli/ember-cli/pull/10403) Fix some docs that were showing up weirdly in generated api docs [@kategengler](https://github.com/kategengler)
|
|
13
|
+
- [#10406](https://github.com/ember-cli/ember-cli/pull/10406) [BUGFIX beta] use import type in helpers/index.ts :: typechecking in new apps otherwise fails [@NullVoxPopuli](https://github.com/NullVoxPopuli)
|
|
14
|
+
|
|
15
|
+
Thank you to all who took the time to contribute!
|
|
16
|
+
|
|
17
|
+
## v5.5.0-beta.0
|
|
18
|
+
|
|
19
|
+
#### Blueprint Changes
|
|
20
|
+
|
|
21
|
+
- [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v5.4.0...v5.5.0-beta.0)
|
|
22
|
+
- [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v5.4.0...v5.5.0-beta.0)
|
|
23
|
+
|
|
24
|
+
#### Changelog
|
|
25
|
+
|
|
26
|
+
- [#10332](https://github.com/ember-cli/ember-cli/pull/10332) [ENHANCEMENT] Support converting gts files in blueprint [@IgnaceMaes](https://github.com/IgnaceMaes)
|
|
27
|
+
- [#10350](https://github.com/ember-cli/ember-cli/pull/10350) [ENHANCEMENT] Deprecate Travis CI support [@bertdeblock](https://github.com/bertdeblock)
|
|
28
|
+
- [#10370](https://github.com/ember-cli/ember-cli/pull/10370) When generating a new app with --embroider use all optimisation flags [@mansona](https://github.com/mansona)
|
|
29
|
+
- [#10393](https://github.com/ember-cli/ember-cli/pull/10393) [ENHANCEMENT] feat: add skip-install alias to skip-npm [@IgnaceMaes](https://github.com/IgnaceMaes)
|
|
30
|
+
- [#9514](https://github.com/ember-cli/ember-cli/pull/9514) [ENHANCEMENT] Use packager commands in `CONTRIBUTING.md` and `README.md` files in `app` and `addon` blueprints [@elwayman02](https://github.com/elwayman02)
|
|
13
31
|
|
|
14
32
|
Thank you to all who took the time to contribute!
|
|
15
33
|
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# DEPRECATION:
|
|
2
|
+
#
|
|
3
|
+
# Support for generating a Travis CI config file is deprecated.
|
|
4
|
+
# You can keep using Travis CI, or you could also consider switching to GitHub Actions instead.
|
|
5
|
+
#
|
|
6
|
+
# Feel free to remove this comment block if you want to continue using Travis CI.
|
|
7
|
+
#
|
|
8
|
+
# ID travis-ci-support
|
|
9
|
+
# UNTIL 6.0.0
|
|
10
|
+
# URL https://deprecations.emberjs.com/id/travis-ci-support
|
|
11
|
+
|
|
1
12
|
---
|
|
2
13
|
language: node_js
|
|
3
14
|
node_js:
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
|
|
9
9
|
## Linting
|
|
10
10
|
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* `<%= invokeScriptPrefix %> lint`
|
|
12
|
+
* `<%= invokeScriptPrefix %> lint:fix`
|
|
13
13
|
|
|
14
14
|
## Running tests
|
|
15
15
|
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* `<%= invokeScriptPrefix %> test` – Runs the test suite on the current Ember version
|
|
17
|
+
* `<%= invokeScriptPrefix %> test:ember <% if (npm) { %>-- <% } %>--server` – Runs the test suite in "watch mode"
|
|
18
|
+
* `<%= invokeScriptPrefix %> test:ember-compatibility` – Runs the test suite against multiple Ember versions
|
|
19
19
|
|
|
20
20
|
## Running the dummy application
|
|
21
21
|
|
|
22
|
-
*
|
|
22
|
+
* `<%= invokeScriptPrefix %> start`
|
|
23
23
|
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
|
|
24
24
|
|
|
25
25
|
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).
|
|
@@ -171,6 +171,16 @@ module.exports = {
|
|
|
171
171
|
outdent;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
let invokeScriptPrefix = 'npm run';
|
|
175
|
+
|
|
176
|
+
if (options.packageManager === 'yarn') {
|
|
177
|
+
invokeScriptPrefix = 'yarn';
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (options.packageManager === 'pnpm') {
|
|
181
|
+
invokeScriptPrefix = 'pnpm';
|
|
182
|
+
}
|
|
183
|
+
|
|
174
184
|
return {
|
|
175
185
|
addonDirectory: directoryForPackageName(addonName),
|
|
176
186
|
name,
|
|
@@ -182,6 +192,8 @@ module.exports = {
|
|
|
182
192
|
year: date.getFullYear(),
|
|
183
193
|
yarn: options.packageManager === 'yarn',
|
|
184
194
|
pnpm: options.packageManager === 'pnpm',
|
|
195
|
+
npm: options.packageManager !== 'yarn' && options.packageManager !== 'pnpm',
|
|
196
|
+
invokeScriptPrefix,
|
|
185
197
|
welcome: options.welcome,
|
|
186
198
|
blueprint: 'addon',
|
|
187
199
|
blueprintOptions,
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# DEPRECATION:
|
|
2
|
+
#
|
|
3
|
+
# Support for generating a Travis CI config file is deprecated.
|
|
4
|
+
# You can keep using Travis CI, or you could also consider switching to GitHub Actions instead.
|
|
5
|
+
#
|
|
6
|
+
# Feel free to remove this comment block if you want to continue using Travis CI.
|
|
7
|
+
#
|
|
8
|
+
# ID travis-ci-support
|
|
9
|
+
# UNTIL 6.0.0
|
|
10
|
+
# URL https://deprecations.emberjs.com/id/travis-ci-support
|
|
11
|
+
|
|
1
12
|
---
|
|
2
13
|
language: node_js
|
|
3
14
|
node_js:
|
|
@@ -22,7 +22,7 @@ You will need the following things properly installed on your computer.
|
|
|
22
22
|
|
|
23
23
|
## Running / Development
|
|
24
24
|
|
|
25
|
-
*
|
|
25
|
+
* `<%= invokeScriptPrefix %> start`
|
|
26
26
|
* Visit your app at [http://localhost:4200](http://localhost:4200).
|
|
27
27
|
* Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).
|
|
28
28
|
|
|
@@ -32,18 +32,18 @@ Make use of the many generators for code, try `ember help generate` for more det
|
|
|
32
32
|
|
|
33
33
|
### Running Tests
|
|
34
34
|
|
|
35
|
-
*
|
|
36
|
-
*
|
|
35
|
+
* `<%= invokeScriptPrefix %> test`
|
|
36
|
+
* `<%= invokeScriptPrefix %> test:ember <% if (npm) { %>-- <% } %>--server`
|
|
37
37
|
|
|
38
38
|
### Linting
|
|
39
39
|
|
|
40
|
-
*
|
|
41
|
-
*
|
|
40
|
+
* `<%= invokeScriptPrefix %> lint`
|
|
41
|
+
* `<%= invokeScriptPrefix %> lint:fix`
|
|
42
42
|
|
|
43
43
|
### Building
|
|
44
44
|
|
|
45
|
-
*
|
|
46
|
-
*
|
|
45
|
+
* `<%= execBinPrefix %> ember build` (development)
|
|
46
|
+
* `<%= invokeScriptPrefix %> build` (production)
|
|
47
47
|
|
|
48
48
|
### Deploying
|
|
49
49
|
|
|
@@ -11,6 +11,12 @@ module.exports = function (defaults) {
|
|
|
11
11
|
|
|
12
12
|
<% if (embroider) { %>const { Webpack } = require('@embroider/webpack');
|
|
13
13
|
return require('@embroider/compat').compatBuild(app, Webpack, {
|
|
14
|
+
staticAddonTestSupportTrees: true,
|
|
15
|
+
staticAddonTrees: true,
|
|
16
|
+
staticHelpers: true,
|
|
17
|
+
staticModifiers: true,
|
|
18
|
+
staticComponents: true,
|
|
19
|
+
staticEmberSource: true,
|
|
14
20
|
skipBabel: [
|
|
15
21
|
{
|
|
16
22
|
package: 'qunit',
|
|
@@ -82,14 +82,14 @@
|
|
|
82
82
|
"ember-cli-inject-live-reload": "^2.1.0<% if (!embroider) { %>",
|
|
83
83
|
"ember-cli-sri": "^2.1.1",
|
|
84
84
|
"ember-cli-terser": "^4.0.2<% } %>",
|
|
85
|
-
"ember-data": "~5.
|
|
85
|
+
"ember-data": "~5.4.0-beta.1",
|
|
86
86
|
"ember-fetch": "^8.1.2",
|
|
87
87
|
"ember-load-initializers": "^2.1.2",
|
|
88
88
|
"ember-modifier": "^4.1.0",
|
|
89
89
|
"ember-page-title": "^8.0.0",
|
|
90
90
|
"ember-qunit": "^8.0.1",
|
|
91
91
|
"ember-resolver": "^11.0.1",
|
|
92
|
-
"ember-source": "~5.
|
|
92
|
+
"ember-source": "~5.5.0-beta.1",
|
|
93
93
|
"ember-template-lint": "^5.11.2<% if (welcome) { %>",
|
|
94
94
|
"ember-welcome-page": "^7.0.2<% } %>",
|
|
95
95
|
"eslint": "^8.52.0",
|
package/blueprints/app/index.js
CHANGED
|
@@ -47,6 +47,19 @@ module.exports = {
|
|
|
47
47
|
outdent;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
let invokeScriptPrefix = 'npm run';
|
|
51
|
+
let execBinPrefix = 'npm exec';
|
|
52
|
+
|
|
53
|
+
if (options.packageManager === 'yarn') {
|
|
54
|
+
invokeScriptPrefix = 'yarn';
|
|
55
|
+
execBinPrefix = 'yarn';
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (options.packageManager === 'pnpm') {
|
|
59
|
+
invokeScriptPrefix = 'pnpm';
|
|
60
|
+
execBinPrefix = 'pnpm';
|
|
61
|
+
}
|
|
62
|
+
|
|
50
63
|
return {
|
|
51
64
|
appDirectory: directoryForPackageName(name),
|
|
52
65
|
name,
|
|
@@ -55,6 +68,9 @@ module.exports = {
|
|
|
55
68
|
emberCLIVersion: require('../../package').version,
|
|
56
69
|
yarn: options.packageManager === 'yarn',
|
|
57
70
|
pnpm: options.packageManager === 'pnpm',
|
|
71
|
+
npm: options.packageManager !== 'yarn' && options.packageManager !== 'pnpm',
|
|
72
|
+
invokeScriptPrefix,
|
|
73
|
+
execBinPrefix,
|
|
58
74
|
welcome: options.welcome,
|
|
59
75
|
blueprint: 'app',
|
|
60
76
|
blueprintOptions,
|
package/docs/build/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"logo": "https://ember-cli.com/assets/images/ember-cli-logo-small-dark.png",
|
|
4
4
|
"name": "ember-cli",
|
|
5
5
|
"description": "Command line tool for developing ambitious ember.js apps",
|
|
6
|
-
"version": "5.
|
|
6
|
+
"version": "5.5.0-beta.1-beta-5c8004b8da"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"lib/broccoli/default-packager.js": {
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"name": "lib/models/per-bundle-addon-cache/index.js",
|
|
97
97
|
"modules": {},
|
|
98
98
|
"classes": {
|
|
99
|
-
"PerBundleAddonCache
|
|
99
|
+
"PerBundleAddonCache": 1
|
|
100
100
|
},
|
|
101
101
|
"fors": {},
|
|
102
102
|
"namespaces": {}
|
|
@@ -104,7 +104,9 @@
|
|
|
104
104
|
"lib/models/per-bundle-addon-cache/target-instance.js": {
|
|
105
105
|
"name": "lib/models/per-bundle-addon-cache/target-instance.js",
|
|
106
106
|
"modules": {},
|
|
107
|
-
"classes": {
|
|
107
|
+
"classes": {
|
|
108
|
+
"TARGET_INSTANCE": 1
|
|
109
|
+
},
|
|
108
110
|
"fors": {},
|
|
109
111
|
"namespaces": {}
|
|
110
112
|
},
|
|
@@ -299,9 +301,7 @@
|
|
|
299
301
|
},
|
|
300
302
|
"lib/utilities/is-lazy-engine.js": {
|
|
301
303
|
"name": "lib/utilities/is-lazy-engine.js",
|
|
302
|
-
"modules": {
|
|
303
|
-
"is-lazy-engine": 1
|
|
304
|
-
},
|
|
304
|
+
"modules": {},
|
|
305
305
|
"classes": {},
|
|
306
306
|
"fors": {},
|
|
307
307
|
"namespaces": {}
|
|
@@ -343,7 +343,8 @@
|
|
|
343
343
|
"PackageInfoCache": 1,
|
|
344
344
|
"NodeModulesList": 1,
|
|
345
345
|
"PackageInfo": 1,
|
|
346
|
-
"PerBundleAddonCache
|
|
346
|
+
"PerBundleAddonCache": 1,
|
|
347
|
+
"TARGET_INSTANCE": 1,
|
|
347
348
|
"Addon": 1,
|
|
348
349
|
"Blueprint": 1,
|
|
349
350
|
"Builder": 1,
|
|
@@ -356,7 +357,8 @@
|
|
|
356
357
|
"HistorySupportAddon": 1,
|
|
357
358
|
"TestsServerAddon": 1,
|
|
358
359
|
"AmdTransformAddon": 1,
|
|
359
|
-
"NpmTask": 1
|
|
360
|
+
"NpmTask": 1,
|
|
361
|
+
"WindowsSymlinkChecker": 1
|
|
360
362
|
},
|
|
361
363
|
"fors": {
|
|
362
364
|
"HardwareInfo": 1
|
|
@@ -365,37 +367,12 @@
|
|
|
365
367
|
"Blueprint": 1
|
|
366
368
|
},
|
|
367
369
|
"tag": "module",
|
|
368
|
-
"file": "lib/
|
|
369
|
-
"line":
|
|
370
|
+
"file": "lib/utilities/windows-admin.js",
|
|
371
|
+
"line": 6,
|
|
370
372
|
"access": "private",
|
|
371
373
|
"tagname": "",
|
|
372
374
|
"is_constructor": 1,
|
|
373
375
|
"extends": "Task"
|
|
374
|
-
},
|
|
375
|
-
"is-lazy-engine": {
|
|
376
|
-
"name": "is-lazy-engine",
|
|
377
|
-
"submodules": {},
|
|
378
|
-
"elements": {},
|
|
379
|
-
"classes": {
|
|
380
|
-
"WindowsSymlinkChecker": 1
|
|
381
|
-
},
|
|
382
|
-
"fors": {},
|
|
383
|
-
"namespaces": {},
|
|
384
|
-
"tag": "module",
|
|
385
|
-
"file": "lib/utilities/windows-admin.js",
|
|
386
|
-
"line": 6,
|
|
387
|
-
"description": "Indicate if a given object is a constructor function or class or an instance of an Addon.",
|
|
388
|
-
"params": [
|
|
389
|
-
{
|
|
390
|
-
"name": "addonCtorOrInstance",
|
|
391
|
-
"description": "the constructor function/class or an instance of an Addon.",
|
|
392
|
-
"type": "Object"
|
|
393
|
-
}
|
|
394
|
-
],
|
|
395
|
-
"return": {
|
|
396
|
-
"description": "True if the addonCtorOrInstance is a lazy engine, False otherwise.",
|
|
397
|
-
"type": "Boolean"
|
|
398
|
-
}
|
|
399
376
|
}
|
|
400
377
|
},
|
|
401
378
|
"classes": {
|
|
@@ -544,9 +521,9 @@
|
|
|
544
521
|
"access": "public",
|
|
545
522
|
"tagname": ""
|
|
546
523
|
},
|
|
547
|
-
"PerBundleAddonCache
|
|
548
|
-
"name": "PerBundleAddonCache
|
|
549
|
-
"shortname": "PerBundleAddonCache
|
|
524
|
+
"PerBundleAddonCache": {
|
|
525
|
+
"name": "PerBundleAddonCache",
|
|
526
|
+
"shortname": "PerBundleAddonCache",
|
|
550
527
|
"classitems": [],
|
|
551
528
|
"plugins": [],
|
|
552
529
|
"extensions": [],
|
|
@@ -560,6 +537,24 @@
|
|
|
560
537
|
"access": "public",
|
|
561
538
|
"tagname": ""
|
|
562
539
|
},
|
|
540
|
+
"TARGET_INSTANCE": {
|
|
541
|
+
"name": "TARGET_INSTANCE",
|
|
542
|
+
"shortname": "TARGET_INSTANCE",
|
|
543
|
+
"classitems": [],
|
|
544
|
+
"plugins": [],
|
|
545
|
+
"extensions": [],
|
|
546
|
+
"plugin_for": [],
|
|
547
|
+
"extension_for": [],
|
|
548
|
+
"module": "ember-cli",
|
|
549
|
+
"namespace": "",
|
|
550
|
+
"file": "lib/models/per-bundle-addon-cache/target-instance.js",
|
|
551
|
+
"line": 3,
|
|
552
|
+
"description": "A Symbol constant for sharing between index.js and addon-proxy.js rather than\nputting the symbol into the Symbol global cache. The symbol is used in per-bundle\ncache entries to refer to the field that points at the real instance that a Proxy\nrefers to.",
|
|
553
|
+
"type": "Symbol",
|
|
554
|
+
"access": "private",
|
|
555
|
+
"tagname": "",
|
|
556
|
+
"final": 1
|
|
557
|
+
},
|
|
563
558
|
"Addon": {
|
|
564
559
|
"name": "Addon",
|
|
565
560
|
"shortname": "Addon",
|
|
@@ -818,7 +813,7 @@
|
|
|
818
813
|
"extensions": [],
|
|
819
814
|
"plugin_for": [],
|
|
820
815
|
"extension_for": [],
|
|
821
|
-
"module": "
|
|
816
|
+
"module": "ember-cli",
|
|
822
817
|
"namespace": "",
|
|
823
818
|
"file": "lib/utilities/windows-admin.js",
|
|
824
819
|
"line": 6,
|
|
@@ -2221,7 +2216,7 @@
|
|
|
2221
2216
|
"description": "If the new cache key doesn't match the previous cache key",
|
|
2222
2217
|
"type": "Error"
|
|
2223
2218
|
},
|
|
2224
|
-
"class": "PerBundleAddonCache
|
|
2219
|
+
"class": "PerBundleAddonCache",
|
|
2225
2220
|
"module": "ember-cli"
|
|
2226
2221
|
},
|
|
2227
2222
|
{
|
|
@@ -2243,7 +2238,7 @@
|
|
|
2243
2238
|
"return": {
|
|
2244
2239
|
"description": "Proxy"
|
|
2245
2240
|
},
|
|
2246
|
-
"class": "PerBundleAddonCache
|
|
2241
|
+
"class": "PerBundleAddonCache",
|
|
2247
2242
|
"module": "ember-cli"
|
|
2248
2243
|
},
|
|
2249
2244
|
{
|
|
@@ -2263,7 +2258,7 @@
|
|
|
2263
2258
|
"description": "}",
|
|
2264
2259
|
"type": "AllowCachingPerBundle: Function"
|
|
2265
2260
|
},
|
|
2266
|
-
"class": "PerBundleAddonCache
|
|
2261
|
+
"class": "PerBundleAddonCache",
|
|
2267
2262
|
"module": "ember-cli"
|
|
2268
2263
|
},
|
|
2269
2264
|
{
|
|
@@ -2283,7 +2278,7 @@
|
|
|
2283
2278
|
"description": "true if the given constructor function or class supports caching per bundle, false otherwise",
|
|
2284
2279
|
"type": "Boolean"
|
|
2285
2280
|
},
|
|
2286
|
-
"class": "PerBundleAddonCache
|
|
2281
|
+
"class": "PerBundleAddonCache",
|
|
2287
2282
|
"module": "ember-cli"
|
|
2288
2283
|
},
|
|
2289
2284
|
{
|
|
@@ -2303,7 +2298,7 @@
|
|
|
2303
2298
|
"description": "an object in the form of a bundle-host cache entry",
|
|
2304
2299
|
"type": "Object"
|
|
2305
2300
|
},
|
|
2306
|
-
"class": "PerBundleAddonCache
|
|
2301
|
+
"class": "PerBundleAddonCache",
|
|
2307
2302
|
"module": "ember-cli"
|
|
2308
2303
|
},
|
|
2309
2304
|
{
|
|
@@ -2328,7 +2323,7 @@
|
|
|
2328
2323
|
"description": "an object in the form of an addon-cache entry",
|
|
2329
2324
|
"type": "Object"
|
|
2330
2325
|
},
|
|
2331
|
-
"class": "PerBundleAddonCache
|
|
2326
|
+
"class": "PerBundleAddonCache",
|
|
2332
2327
|
"module": "ember-cli"
|
|
2333
2328
|
},
|
|
2334
2329
|
{
|
|
@@ -2357,7 +2352,7 @@
|
|
|
2357
2352
|
"description": "if there is not bundle host",
|
|
2358
2353
|
"type": "Error"
|
|
2359
2354
|
},
|
|
2360
|
-
"class": "PerBundleAddonCache
|
|
2355
|
+
"class": "PerBundleAddonCache",
|
|
2361
2356
|
"module": "ember-cli"
|
|
2362
2357
|
},
|
|
2363
2358
|
{
|
|
@@ -2381,7 +2376,7 @@
|
|
|
2381
2376
|
"description": "true if the bundle host is to \"own\" the instance, false otherwise.",
|
|
2382
2377
|
"type": "Boolean"
|
|
2383
2378
|
},
|
|
2384
|
-
"class": "PerBundleAddonCache
|
|
2379
|
+
"class": "PerBundleAddonCache",
|
|
2385
2380
|
"module": "ember-cli"
|
|
2386
2381
|
},
|
|
2387
2382
|
{
|
|
@@ -2406,18 +2401,7 @@
|
|
|
2406
2401
|
"description": "An addon instance (for the first copy of the addon) or a Proxy.\nAn addon that is a lazy engine will only ever have a single copy in the cache.\nAn addon that is not will have 1 copy per bundle host (Project or lazy engine),\nexcept if it is an addon that's also owned by a given LCA host and transitive\ndedupe is enabled (`engineAddonTransitiveDedupeEnabled`), in which case it will\nonly have a single copy in the project's addon cache.",
|
|
2407
2402
|
"type": "Addon|Proxy"
|
|
2408
2403
|
},
|
|
2409
|
-
"class": "PerBundleAddonCache
|
|
2410
|
-
"module": "ember-cli"
|
|
2411
|
-
},
|
|
2412
|
-
{
|
|
2413
|
-
"file": "lib/models/per-bundle-addon-cache/target-instance.js",
|
|
2414
|
-
"line": 3,
|
|
2415
|
-
"description": "A Symbol constant for sharing between index.js and addon-proxy.js rather than\nputting the symbol into the Symbol global cache. The symbol is used in per-bundle\ncache entries to refer to the field that points at the real instance that a Proxy\nrefers to.",
|
|
2416
|
-
"itemtype": "property",
|
|
2417
|
-
"name": "",
|
|
2418
|
-
"type": "Symbol",
|
|
2419
|
-
"final": 1,
|
|
2420
|
-
"class": "Addon",
|
|
2404
|
+
"class": "PerBundleAddonCache",
|
|
2421
2405
|
"module": "ember-cli"
|
|
2422
2406
|
},
|
|
2423
2407
|
{
|
|
@@ -3911,7 +3895,33 @@
|
|
|
3911
3895
|
},
|
|
3912
3896
|
{
|
|
3913
3897
|
"file": "lib/models/blueprint.js",
|
|
3914
|
-
"line":
|
|
3898
|
+
"line": 539,
|
|
3899
|
+
"access": "private",
|
|
3900
|
+
"tagname": "",
|
|
3901
|
+
"itemtype": "method",
|
|
3902
|
+
"name": "removeTypes",
|
|
3903
|
+
"params": [
|
|
3904
|
+
{
|
|
3905
|
+
"name": "extension",
|
|
3906
|
+
"description": "",
|
|
3907
|
+
"type": "String"
|
|
3908
|
+
},
|
|
3909
|
+
{
|
|
3910
|
+
"name": "code",
|
|
3911
|
+
"description": "",
|
|
3912
|
+
"type": "String"
|
|
3913
|
+
}
|
|
3914
|
+
],
|
|
3915
|
+
"return": {
|
|
3916
|
+
"description": "",
|
|
3917
|
+
"type": "Promise"
|
|
3918
|
+
},
|
|
3919
|
+
"class": "Blueprint",
|
|
3920
|
+
"module": "ember-cli"
|
|
3921
|
+
},
|
|
3922
|
+
{
|
|
3923
|
+
"file": "lib/models/blueprint.js",
|
|
3924
|
+
"line": 582,
|
|
3915
3925
|
"itemtype": "method",
|
|
3916
3926
|
"name": "install",
|
|
3917
3927
|
"params": [
|
|
@@ -3930,7 +3940,7 @@
|
|
|
3930
3940
|
},
|
|
3931
3941
|
{
|
|
3932
3942
|
"file": "lib/models/blueprint.js",
|
|
3933
|
-
"line":
|
|
3943
|
+
"line": 609,
|
|
3934
3944
|
"itemtype": "method",
|
|
3935
3945
|
"name": "uninstall",
|
|
3936
3946
|
"params": [
|
|
@@ -3949,7 +3959,7 @@
|
|
|
3949
3959
|
},
|
|
3950
3960
|
{
|
|
3951
3961
|
"file": "lib/models/blueprint.js",
|
|
3952
|
-
"line":
|
|
3962
|
+
"line": 631,
|
|
3953
3963
|
"description": "Hook for running operations before install.",
|
|
3954
3964
|
"itemtype": "method",
|
|
3955
3965
|
"name": "beforeInstall",
|
|
@@ -3962,7 +3972,7 @@
|
|
|
3962
3972
|
},
|
|
3963
3973
|
{
|
|
3964
3974
|
"file": "lib/models/blueprint.js",
|
|
3965
|
-
"line":
|
|
3975
|
+
"line": 638,
|
|
3966
3976
|
"description": "Hook for running operations after install.",
|
|
3967
3977
|
"itemtype": "method",
|
|
3968
3978
|
"name": "afterInstall",
|
|
@@ -3975,7 +3985,7 @@
|
|
|
3975
3985
|
},
|
|
3976
3986
|
{
|
|
3977
3987
|
"file": "lib/models/blueprint.js",
|
|
3978
|
-
"line":
|
|
3988
|
+
"line": 645,
|
|
3979
3989
|
"description": "Hook for running operations before uninstall.",
|
|
3980
3990
|
"itemtype": "method",
|
|
3981
3991
|
"name": "beforeUninstall",
|
|
@@ -3988,7 +3998,7 @@
|
|
|
3988
3998
|
},
|
|
3989
3999
|
{
|
|
3990
4000
|
"file": "lib/models/blueprint.js",
|
|
3991
|
-
"line":
|
|
4001
|
+
"line": 652,
|
|
3992
4002
|
"description": "Hook for running operations after uninstall.",
|
|
3993
4003
|
"itemtype": "method",
|
|
3994
4004
|
"name": "afterUninstall",
|
|
@@ -4001,7 +4011,7 @@
|
|
|
4001
4011
|
},
|
|
4002
4012
|
{
|
|
4003
4013
|
"file": "lib/models/blueprint.js",
|
|
4004
|
-
"line":
|
|
4014
|
+
"line": 661,
|
|
4005
4015
|
"description": "Hook for adding custom template variables.\n\nWhen the following is called on the command line:\n\n```sh\nember generate controller foo --type=array --dry-run isAdmin:true\n```\n\nThe object passed to `locals` looks like this:\n\n```js\n{\n entity: {\n name: 'foo',\n options: {\n isAdmin: true\n }\n },\n dryRun: true\n type: \"array\"\n // more keys\n}\n```\n\nThis hook must return an object or a Promise which resolves to an object.\nThe resolved object will be merged with the aforementioned default locals.",
|
|
4006
4016
|
"access": "public",
|
|
4007
4017
|
"tagname": "",
|
|
@@ -4023,7 +4033,7 @@
|
|
|
4023
4033
|
},
|
|
4024
4034
|
{
|
|
4025
4035
|
"file": "lib/models/blueprint.js",
|
|
4026
|
-
"line":
|
|
4036
|
+
"line": 696,
|
|
4027
4037
|
"description": "Hook to add additional or override existing fileMap tokens.\n\nUse `fileMapTokens` to add custom fileMap tokens for use\nin the `mapFile` method. The hook must return an object in the\nfollowing pattern:\n\n```js\n{\n __token__(options){\n // logic to determine value goes here\n return 'value';\n }\n}\n```\n\nIt will be merged with the default `fileMapTokens`, and can be used\nto override any of the default tokens.\n\nTokens are used in the files folder (see `files`), and get replaced with\nvalues when the `mapFile` method is called.",
|
|
4028
4038
|
"access": "public",
|
|
4029
4039
|
"tagname": "",
|
|
@@ -4038,7 +4048,7 @@
|
|
|
4038
4048
|
},
|
|
4039
4049
|
{
|
|
4040
4050
|
"file": "lib/models/blueprint.js",
|
|
4041
|
-
"line":
|
|
4051
|
+
"line": 724,
|
|
4042
4052
|
"access": "private",
|
|
4043
4053
|
"tagname": "",
|
|
4044
4054
|
"itemtype": "method",
|
|
@@ -4059,7 +4069,7 @@
|
|
|
4059
4069
|
},
|
|
4060
4070
|
{
|
|
4061
4071
|
"file": "lib/models/blueprint.js",
|
|
4062
|
-
"line":
|
|
4072
|
+
"line": 780,
|
|
4063
4073
|
"description": "Used to generate fileMap tokens for mapFile.",
|
|
4064
4074
|
"itemtype": "method",
|
|
4065
4075
|
"name": "generateFileMap",
|
|
@@ -4079,7 +4089,7 @@
|
|
|
4079
4089
|
},
|
|
4080
4090
|
{
|
|
4081
4091
|
"file": "lib/models/blueprint.js",
|
|
4082
|
-
"line":
|
|
4092
|
+
"line": 795,
|
|
4083
4093
|
"itemtype": "method",
|
|
4084
4094
|
"name": "buildFileInfo",
|
|
4085
4095
|
"params": [
|
|
@@ -4108,7 +4118,7 @@
|
|
|
4108
4118
|
},
|
|
4109
4119
|
{
|
|
4110
4120
|
"file": "lib/models/blueprint.js",
|
|
4111
|
-
"line":
|
|
4121
|
+
"line": 816,
|
|
4112
4122
|
"itemtype": "method",
|
|
4113
4123
|
"name": "isUpdate",
|
|
4114
4124
|
"return": {
|
|
@@ -4120,7 +4130,7 @@
|
|
|
4120
4130
|
},
|
|
4121
4131
|
{
|
|
4122
4132
|
"file": "lib/models/blueprint.js",
|
|
4123
|
-
"line":
|
|
4133
|
+
"line": 826,
|
|
4124
4134
|
"access": "private",
|
|
4125
4135
|
"tagname": "",
|
|
4126
4136
|
"itemtype": "method",
|
|
@@ -4151,7 +4161,7 @@
|
|
|
4151
4161
|
},
|
|
4152
4162
|
{
|
|
4153
4163
|
"file": "lib/models/blueprint.js",
|
|
4154
|
-
"line":
|
|
4164
|
+
"line": 838,
|
|
4155
4165
|
"description": "Add update files to ignored files or reset them",
|
|
4156
4166
|
"access": "private",
|
|
4157
4167
|
"tagname": "",
|
|
@@ -4162,7 +4172,7 @@
|
|
|
4162
4172
|
},
|
|
4163
4173
|
{
|
|
4164
4174
|
"file": "lib/models/blueprint.js",
|
|
4165
|
-
"line":
|
|
4175
|
+
"line": 851,
|
|
4166
4176
|
"access": "private",
|
|
4167
4177
|
"tagname": "",
|
|
4168
4178
|
"itemtype": "method",
|
|
@@ -4183,7 +4193,7 @@
|
|
|
4183
4193
|
},
|
|
4184
4194
|
{
|
|
4185
4195
|
"file": "lib/models/blueprint.js",
|
|
4186
|
-
"line":
|
|
4196
|
+
"line": 864,
|
|
4187
4197
|
"access": "private",
|
|
4188
4198
|
"tagname": "",
|
|
4189
4199
|
"itemtype": "method",
|
|
@@ -4205,7 +4215,7 @@
|
|
|
4205
4215
|
},
|
|
4206
4216
|
{
|
|
4207
4217
|
"file": "lib/models/blueprint.js",
|
|
4208
|
-
"line":
|
|
4218
|
+
"line": 878,
|
|
4209
4219
|
"itemtype": "method",
|
|
4210
4220
|
"name": "processFiles",
|
|
4211
4221
|
"params": [
|
|
@@ -4229,7 +4239,7 @@
|
|
|
4229
4239
|
},
|
|
4230
4240
|
{
|
|
4231
4241
|
"file": "lib/models/blueprint.js",
|
|
4232
|
-
"line":
|
|
4242
|
+
"line": 911,
|
|
4233
4243
|
"itemtype": "method",
|
|
4234
4244
|
"name": "processFilesForUninstall",
|
|
4235
4245
|
"params": [
|
|
@@ -4249,7 +4259,7 @@
|
|
|
4249
4259
|
},
|
|
4250
4260
|
{
|
|
4251
4261
|
"file": "lib/models/blueprint.js",
|
|
4252
|
-
"line":
|
|
4262
|
+
"line": 962,
|
|
4253
4263
|
"itemtype": "method",
|
|
4254
4264
|
"name": "mapFile",
|
|
4255
4265
|
"params": [
|
|
@@ -4272,7 +4282,7 @@
|
|
|
4272
4282
|
},
|
|
4273
4283
|
{
|
|
4274
4284
|
"file": "lib/models/blueprint.js",
|
|
4275
|
-
"line":
|
|
4285
|
+
"line": 979,
|
|
4276
4286
|
"description": "Looks for a __root__ token in the files folder. Must be present for\nthe blueprint to support addon tokens. The `server`, `blueprints`, and `test`",
|
|
4277
4287
|
"access": "private",
|
|
4278
4288
|
"tagname": "",
|
|
@@ -4287,7 +4297,7 @@
|
|
|
4287
4297
|
},
|
|
4288
4298
|
{
|
|
4289
4299
|
"file": "lib/models/blueprint.js",
|
|
4290
|
-
"line":
|
|
4300
|
+
"line": 991,
|
|
4291
4301
|
"access": "private",
|
|
4292
4302
|
"tagname": "",
|
|
4293
4303
|
"itemtype": "method",
|
|
@@ -4317,7 +4327,7 @@
|
|
|
4317
4327
|
},
|
|
4318
4328
|
{
|
|
4319
4329
|
"file": "lib/models/blueprint.js",
|
|
4320
|
-
"line":
|
|
4330
|
+
"line": 1021,
|
|
4321
4331
|
"access": "private",
|
|
4322
4332
|
"tagname": "",
|
|
4323
4333
|
"itemtype": "method",
|
|
@@ -4338,7 +4348,7 @@
|
|
|
4338
4348
|
},
|
|
4339
4349
|
{
|
|
4340
4350
|
"file": "lib/models/blueprint.js",
|
|
4341
|
-
"line":
|
|
4351
|
+
"line": 1054,
|
|
4342
4352
|
"description": "Used to add a package to the project's `package.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.",
|
|
4343
4353
|
"itemtype": "method",
|
|
4344
4354
|
"name": "addPackageToProject",
|
|
@@ -4363,7 +4373,7 @@
|
|
|
4363
4373
|
},
|
|
4364
4374
|
{
|
|
4365
4375
|
"file": "lib/models/blueprint.js",
|
|
4366
|
-
"line":
|
|
4376
|
+
"line": 1076,
|
|
4367
4377
|
"description": "Used to add multiple packages to the project's `package.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.\n\nExpects each array item to be an object with a `name`. Each object\nmay optionally have a `target` to specify a specific version.",
|
|
4368
4378
|
"itemtype": "method",
|
|
4369
4379
|
"name": "addPackagesToProject",
|
|
@@ -4386,7 +4396,7 @@
|
|
|
4386
4396
|
},
|
|
4387
4397
|
{
|
|
4388
4398
|
"file": "lib/models/blueprint.js",
|
|
4389
|
-
"line":
|
|
4399
|
+
"line": 1125,
|
|
4390
4400
|
"description": "Used to remove a package from the project's `package.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that any package conflicts can be resolved before the\naddon is used.",
|
|
4391
4401
|
"itemtype": "method",
|
|
4392
4402
|
"name": "removePackageFromProject",
|
|
@@ -4406,7 +4416,7 @@
|
|
|
4406
4416
|
},
|
|
4407
4417
|
{
|
|
4408
4418
|
"file": "lib/models/blueprint.js",
|
|
4409
|
-
"line":
|
|
4419
|
+
"line": 1142,
|
|
4410
4420
|
"description": "Used to remove multiple packages from the project's `package.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that any package conflicts can be resolved before the\naddon is used.\n\nExpects each array item to be an object with a `name` property.",
|
|
4411
4421
|
"itemtype": "method",
|
|
4412
4422
|
"name": "removePackagesFromProject",
|
|
@@ -4426,7 +4436,7 @@
|
|
|
4426
4436
|
},
|
|
4427
4437
|
{
|
|
4428
4438
|
"file": "lib/models/blueprint.js",
|
|
4429
|
-
"line":
|
|
4439
|
+
"line": 1183,
|
|
4430
4440
|
"description": "Used to add an addon to the project's `package.json` and run it's\n`defaultBlueprint` if it provides one.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.",
|
|
4431
4441
|
"itemtype": "method",
|
|
4432
4442
|
"name": "addAddonToProject",
|
|
@@ -4446,7 +4456,7 @@
|
|
|
4446
4456
|
},
|
|
4447
4457
|
{
|
|
4448
4458
|
"file": "lib/models/blueprint.js",
|
|
4449
|
-
"line":
|
|
4459
|
+
"line": 1203,
|
|
4450
4460
|
"description": "Used to add multiple addons to the project's `package.json` and run their\n`defaultBlueprint` if they provide one.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.",
|
|
4451
4461
|
"itemtype": "method",
|
|
4452
4462
|
"name": "addAddonsToProject",
|
|
@@ -4466,7 +4476,7 @@
|
|
|
4466
4476
|
},
|
|
4467
4477
|
{
|
|
4468
4478
|
"file": "lib/models/blueprint.js",
|
|
4469
|
-
"line":
|
|
4479
|
+
"line": 1280,
|
|
4470
4480
|
"description": "Used to retrieve a task with the given name. Passes the new task\nthe standard information available (like `ui`, `project`, etc).",
|
|
4471
4481
|
"itemtype": "method",
|
|
4472
4482
|
"name": "taskFor",
|
|
@@ -4483,7 +4493,7 @@
|
|
|
4483
4493
|
},
|
|
4484
4494
|
{
|
|
4485
4495
|
"file": "lib/models/blueprint.js",
|
|
4486
|
-
"line":
|
|
4496
|
+
"line": 1297,
|
|
4487
4497
|
"description": "Inserts the given content into a file. If the `contentsToInsert` string is already\npresent in the current contents, the file will not be changed unless `force` option\nis passed.\n\nIf `options.before` is specified, `contentsToInsert` will be inserted before\nthe first instance of that string. If `options.after` is specified, the\ncontents will be inserted after the first instance of that string.\nIf the string specified by options.before or options.after is not in the file,\nno change will be made.\n\nIf neither `options.before` nor `options.after` are present, `contentsToInsert`\nwill be inserted at the end of the file.\n\nExample:\n```\n// app/router.js\nRouter.map(function () {\n});\n```\n\n```\ninsertIntoFile('app/router.js', ' this.route(\"admin\");', {\n after: 'Router.map(function () {' + EOL\n}).then(function() {\n // file has been inserted into!\n});\n\n\n```\n\n```\n// app/router.js\nRouter.map(function () {\n this.route(\"admin\");\n});\n```",
|
|
4488
4498
|
"itemtype": "method",
|
|
4489
4499
|
"name": "insertIntoFile",
|
|
@@ -4513,7 +4523,7 @@
|
|
|
4513
4523
|
},
|
|
4514
4524
|
{
|
|
4515
4525
|
"file": "lib/models/blueprint.js",
|
|
4516
|
-
"line":
|
|
4526
|
+
"line": 1401,
|
|
4517
4527
|
"description": "Used to retrieve a blueprint with the given name.",
|
|
4518
4528
|
"itemtype": "method",
|
|
4519
4529
|
"name": "lookupBlueprint",
|
|
@@ -4535,7 +4545,7 @@
|
|
|
4535
4545
|
},
|
|
4536
4546
|
{
|
|
4537
4547
|
"file": "lib/models/blueprint.js",
|
|
4538
|
-
"line":
|
|
4548
|
+
"line": 1418,
|
|
4539
4549
|
"static": 1,
|
|
4540
4550
|
"itemtype": "method",
|
|
4541
4551
|
"name": "lookup",
|
|
@@ -4582,7 +4592,7 @@
|
|
|
4582
4592
|
},
|
|
4583
4593
|
{
|
|
4584
4594
|
"file": "lib/models/blueprint.js",
|
|
4585
|
-
"line":
|
|
4595
|
+
"line": 1459,
|
|
4586
4596
|
"description": "Loads a blueprint from given path.",
|
|
4587
4597
|
"static": 1,
|
|
4588
4598
|
"itemtype": "method",
|
|
@@ -4610,7 +4620,7 @@
|
|
|
4610
4620
|
},
|
|
4611
4621
|
{
|
|
4612
4622
|
"file": "lib/models/blueprint.js",
|
|
4613
|
-
"line":
|
|
4623
|
+
"line": 1487,
|
|
4614
4624
|
"static": 1,
|
|
4615
4625
|
"itemtype": "method",
|
|
4616
4626
|
"name": "list",
|
|
@@ -4640,7 +4650,7 @@
|
|
|
4640
4650
|
},
|
|
4641
4651
|
{
|
|
4642
4652
|
"file": "lib/models/blueprint.js",
|
|
4643
|
-
"line":
|
|
4653
|
+
"line": 1536,
|
|
4644
4654
|
"description": "Files that are renamed when installed into the target directory.\nThis allows including files in the blueprint that would have an effect\non another process, such as a file named `.gitignore`.\n\nThe keys are the filenames used in the files folder.\nThe values are the filenames used in the target directory.",
|
|
4645
4655
|
"static": 1,
|
|
4646
4656
|
"itemtype": "property",
|
|
@@ -4651,7 +4661,7 @@
|
|
|
4651
4661
|
},
|
|
4652
4662
|
{
|
|
4653
4663
|
"file": "lib/models/blueprint.js",
|
|
4654
|
-
"line":
|
|
4664
|
+
"line": 1551,
|
|
4655
4665
|
"static": 1,
|
|
4656
4666
|
"itemtype": "property",
|
|
4657
4667
|
"name": "ignoredFiles",
|
|
@@ -4661,7 +4671,7 @@
|
|
|
4661
4671
|
},
|
|
4662
4672
|
{
|
|
4663
4673
|
"file": "lib/models/blueprint.js",
|
|
4664
|
-
"line":
|
|
4674
|
+
"line": 1557,
|
|
4665
4675
|
"static": 1,
|
|
4666
4676
|
"itemtype": "property",
|
|
4667
4677
|
"name": "ignoredUpdateFiles",
|
|
@@ -4671,7 +4681,7 @@
|
|
|
4671
4681
|
},
|
|
4672
4682
|
{
|
|
4673
4683
|
"file": "lib/models/blueprint.js",
|
|
4674
|
-
"line":
|
|
4684
|
+
"line": 1563,
|
|
4675
4685
|
"static": 1,
|
|
4676
4686
|
"itemtype": "property",
|
|
4677
4687
|
"name": "defaultLookupPaths",
|
|
@@ -4681,7 +4691,7 @@
|
|
|
4681
4691
|
},
|
|
4682
4692
|
{
|
|
4683
4693
|
"file": "lib/models/blueprint.js",
|
|
4684
|
-
"line":
|
|
4694
|
+
"line": 1571,
|
|
4685
4695
|
"access": "private",
|
|
4686
4696
|
"tagname": "",
|
|
4687
4697
|
"itemtype": "method",
|
|
@@ -4703,7 +4713,7 @@
|
|
|
4703
4713
|
},
|
|
4704
4714
|
{
|
|
4705
4715
|
"file": "lib/models/blueprint.js",
|
|
4706
|
-
"line":
|
|
4716
|
+
"line": 1584,
|
|
4707
4717
|
"access": "private",
|
|
4708
4718
|
"tagname": "",
|
|
4709
4719
|
"itemtype": "method",
|
|
@@ -4721,7 +4731,7 @@
|
|
|
4721
4731
|
},
|
|
4722
4732
|
{
|
|
4723
4733
|
"file": "lib/models/blueprint.js",
|
|
4724
|
-
"line":
|
|
4734
|
+
"line": 1595,
|
|
4725
4735
|
"access": "private",
|
|
4726
4736
|
"tagname": "",
|
|
4727
4737
|
"itemtype": "method",
|
|
@@ -4739,7 +4749,7 @@
|
|
|
4739
4749
|
},
|
|
4740
4750
|
{
|
|
4741
4751
|
"file": "lib/models/blueprint.js",
|
|
4742
|
-
"line":
|
|
4752
|
+
"line": 1604,
|
|
4743
4753
|
"access": "private",
|
|
4744
4754
|
"tagname": "",
|
|
4745
4755
|
"itemtype": "method",
|
|
@@ -4766,7 +4776,7 @@
|
|
|
4766
4776
|
},
|
|
4767
4777
|
{
|
|
4768
4778
|
"file": "lib/models/blueprint.js",
|
|
4769
|
-
"line":
|
|
4779
|
+
"line": 1618,
|
|
4770
4780
|
"access": "private",
|
|
4771
4781
|
"tagname": "",
|
|
4772
4782
|
"itemtype": "method",
|
|
@@ -4788,7 +4798,7 @@
|
|
|
4788
4798
|
},
|
|
4789
4799
|
{
|
|
4790
4800
|
"file": "lib/models/blueprint.js",
|
|
4791
|
-
"line":
|
|
4801
|
+
"line": 1630,
|
|
4792
4802
|
"description": "Combines provided lookup paths with defaults and removes\nduplicates.",
|
|
4793
4803
|
"access": "private",
|
|
4794
4804
|
"tagname": "",
|
|
@@ -4811,7 +4821,7 @@
|
|
|
4811
4821
|
},
|
|
4812
4822
|
{
|
|
4813
4823
|
"file": "lib/models/blueprint.js",
|
|
4814
|
-
"line":
|
|
4824
|
+
"line": 1645,
|
|
4815
4825
|
"description": "Looks for a __path__ token in the files folder. Must be present for\nthe blueprint to support pod tokens.",
|
|
4816
4826
|
"access": "private",
|
|
4817
4827
|
"tagname": "",
|
|
@@ -4834,7 +4844,7 @@
|
|
|
4834
4844
|
},
|
|
4835
4845
|
{
|
|
4836
4846
|
"file": "lib/models/blueprint.js",
|
|
4837
|
-
"line":
|
|
4847
|
+
"line": 1684,
|
|
4838
4848
|
"access": "private",
|
|
4839
4849
|
"tagname": "",
|
|
4840
4850
|
"itemtype": "method",
|
|
@@ -4856,7 +4866,7 @@
|
|
|
4856
4866
|
},
|
|
4857
4867
|
{
|
|
4858
4868
|
"file": "lib/models/blueprint.js",
|
|
4859
|
-
"line":
|
|
4869
|
+
"line": 1698,
|
|
4860
4870
|
"access": "private",
|
|
4861
4871
|
"tagname": "",
|
|
4862
4872
|
"itemtype": "method",
|
|
@@ -4878,7 +4888,7 @@
|
|
|
4878
4888
|
},
|
|
4879
4889
|
{
|
|
4880
4890
|
"file": "lib/models/blueprint.js",
|
|
4881
|
-
"line":
|
|
4891
|
+
"line": 1708,
|
|
4882
4892
|
"access": "private",
|
|
4883
4893
|
"tagname": "",
|
|
4884
4894
|
"itemtype": "method",
|
|
@@ -4893,7 +4903,7 @@
|
|
|
4893
4903
|
},
|
|
4894
4904
|
{
|
|
4895
4905
|
"file": "lib/models/blueprint.js",
|
|
4896
|
-
"line":
|
|
4906
|
+
"line": 1721,
|
|
4897
4907
|
"access": "private",
|
|
4898
4908
|
"tagname": "",
|
|
4899
4909
|
"itemtype": "method",
|
|
@@ -5112,7 +5122,7 @@
|
|
|
5112
5122
|
"name": "availableOptions",
|
|
5113
5123
|
"type": "Array",
|
|
5114
5124
|
"example": [
|
|
5115
|
-
"\n```js\navailableOptions: [\n { name: 'dry-run', type: Boolean, default: false, aliases: ['d'] },\n { name: 'verbose', type: Boolean, default: false, aliases: ['v'] },\n { name: 'blueprint', type: String, default: 'app', aliases: ['b'] },\n { name: 'skip-npm', type: Boolean, default: false, aliases: ['sn'] },\n { name: 'skip-git', type: Boolean, default: false, aliases: ['sg'] },\n { name: 'directory', type: String , aliases: ['dir'] }\n],\n```"
|
|
5125
|
+
"\n```js\navailableOptions: [\n { name: 'dry-run', type: Boolean, default: false, aliases: ['d'] },\n { name: 'verbose', type: Boolean, default: false, aliases: ['v'] },\n { name: 'blueprint', type: String, default: 'app', aliases: ['b'] },\n { name: 'skip-npm', type: Boolean, default: false, aliases: ['sn', 'skip-install', 'si'] },\n { name: 'skip-git', type: Boolean, default: false, aliases: ['sg'] },\n { name: 'directory', type: String , aliases: ['dir'] }\n],\n```"
|
|
5116
5126
|
],
|
|
5117
5127
|
"class": "Command",
|
|
5118
5128
|
"module": "ember-cli"
|
|
@@ -6418,6 +6428,28 @@
|
|
|
6418
6428
|
"class": "WindowsSymlinkChecker",
|
|
6419
6429
|
"module": "ember-cli"
|
|
6420
6430
|
},
|
|
6431
|
+
{
|
|
6432
|
+
"file": "lib/utilities/is-lazy-engine.js",
|
|
6433
|
+
"line": 3,
|
|
6434
|
+
"description": "Indicate if a given object is a constructor function or class or an instance of an Addon.",
|
|
6435
|
+
"access": "private",
|
|
6436
|
+
"tagname": "",
|
|
6437
|
+
"itemtype": "method",
|
|
6438
|
+
"name": "",
|
|
6439
|
+
"params": [
|
|
6440
|
+
{
|
|
6441
|
+
"name": "addonCtorOrInstance",
|
|
6442
|
+
"description": "the constructor function/class or an instance of an Addon.",
|
|
6443
|
+
"type": "Object"
|
|
6444
|
+
}
|
|
6445
|
+
],
|
|
6446
|
+
"return": {
|
|
6447
|
+
"description": "True if the addonCtorOrInstance is a lazy engine, False otherwise.",
|
|
6448
|
+
"type": "Boolean"
|
|
6449
|
+
},
|
|
6450
|
+
"class": "WindowsSymlinkChecker",
|
|
6451
|
+
"module": "ember-cli"
|
|
6452
|
+
},
|
|
6421
6453
|
{
|
|
6422
6454
|
"file": "lib/utilities/valid-project-name.js",
|
|
6423
6455
|
"line": 5,
|
|
@@ -6429,7 +6461,7 @@
|
|
|
6429
6461
|
"type": "Boolean"
|
|
6430
6462
|
},
|
|
6431
6463
|
"class": "WindowsSymlinkChecker",
|
|
6432
|
-
"module": "
|
|
6464
|
+
"module": "ember-cli"
|
|
6433
6465
|
},
|
|
6434
6466
|
{
|
|
6435
6467
|
"file": "lib/utilities/valid-project-name.js",
|
|
@@ -6449,7 +6481,7 @@
|
|
|
6449
6481
|
"type": "Boolean"
|
|
6450
6482
|
},
|
|
6451
6483
|
"class": "WindowsSymlinkChecker",
|
|
6452
|
-
"module": "
|
|
6484
|
+
"module": "ember-cli"
|
|
6453
6485
|
},
|
|
6454
6486
|
{
|
|
6455
6487
|
"file": "lib/utilities/will-interrupt-process.js",
|
|
@@ -6460,7 +6492,7 @@
|
|
|
6460
6492
|
"itemtype": "method",
|
|
6461
6493
|
"name": "release",
|
|
6462
6494
|
"class": "WindowsSymlinkChecker",
|
|
6463
|
-
"module": "
|
|
6495
|
+
"module": "ember-cli"
|
|
6464
6496
|
},
|
|
6465
6497
|
{
|
|
6466
6498
|
"file": "lib/utilities/will-interrupt-process.js",
|
|
@@ -6478,7 +6510,7 @@
|
|
|
6478
6510
|
}
|
|
6479
6511
|
],
|
|
6480
6512
|
"class": "WindowsSymlinkChecker",
|
|
6481
|
-
"module": "
|
|
6513
|
+
"module": "ember-cli"
|
|
6482
6514
|
},
|
|
6483
6515
|
{
|
|
6484
6516
|
"file": "lib/utilities/will-interrupt-process.js",
|
|
@@ -6496,7 +6528,7 @@
|
|
|
6496
6528
|
}
|
|
6497
6529
|
],
|
|
6498
6530
|
"class": "WindowsSymlinkChecker",
|
|
6499
|
-
"module": "
|
|
6531
|
+
"module": "ember-cli"
|
|
6500
6532
|
},
|
|
6501
6533
|
{
|
|
6502
6534
|
"file": "lib/utilities/will-interrupt-process.js",
|
|
@@ -6505,7 +6537,7 @@
|
|
|
6505
6537
|
"itemtype": "method",
|
|
6506
6538
|
"name": "setupSignalsTrap",
|
|
6507
6539
|
"class": "WindowsSymlinkChecker",
|
|
6508
|
-
"module": "
|
|
6540
|
+
"module": "ember-cli"
|
|
6509
6541
|
},
|
|
6510
6542
|
{
|
|
6511
6543
|
"file": "lib/utilities/will-interrupt-process.js",
|
|
@@ -6514,7 +6546,7 @@
|
|
|
6514
6546
|
"itemtype": "method",
|
|
6515
6547
|
"name": "teardownSignalsTrap",
|
|
6516
6548
|
"class": "WindowsSymlinkChecker",
|
|
6517
|
-
"module": "
|
|
6549
|
+
"module": "ember-cli"
|
|
6518
6550
|
},
|
|
6519
6551
|
{
|
|
6520
6552
|
"file": "lib/utilities/will-interrupt-process.js",
|
|
@@ -6523,7 +6555,7 @@
|
|
|
6523
6555
|
"itemtype": "method",
|
|
6524
6556
|
"name": "trapWindowsSignals",
|
|
6525
6557
|
"class": "WindowsSymlinkChecker",
|
|
6526
|
-
"module": "
|
|
6558
|
+
"module": "ember-cli"
|
|
6527
6559
|
},
|
|
6528
6560
|
{
|
|
6529
6561
|
"file": "lib/utilities/windows-admin.js",
|
|
@@ -6538,7 +6570,7 @@
|
|
|
6538
6570
|
"type": "Promise<Object>"
|
|
6539
6571
|
},
|
|
6540
6572
|
"class": "WindowsSymlinkChecker",
|
|
6541
|
-
"module": "
|
|
6573
|
+
"module": "ember-cli"
|
|
6542
6574
|
},
|
|
6543
6575
|
{
|
|
6544
6576
|
"file": "lib/utilities/windows-admin.js",
|
|
@@ -6560,7 +6592,7 @@
|
|
|
6560
6592
|
"type": "WindowsSymlinkChecker"
|
|
6561
6593
|
},
|
|
6562
6594
|
"class": "WindowsSymlinkChecker",
|
|
6563
|
-
"module": "
|
|
6595
|
+
"module": "ember-cli"
|
|
6564
6596
|
},
|
|
6565
6597
|
{
|
|
6566
6598
|
"file": "lib/utilities/windows-admin.js",
|
|
@@ -6574,7 +6606,7 @@
|
|
|
6574
6606
|
"type": "Promise<Object>"
|
|
6575
6607
|
},
|
|
6576
6608
|
"class": "WindowsSymlinkChecker",
|
|
6577
|
-
"module": "
|
|
6609
|
+
"module": "ember-cli"
|
|
6578
6610
|
},
|
|
6579
6611
|
{
|
|
6580
6612
|
"file": "lib/utilities/windows-admin.js",
|
|
@@ -6596,7 +6628,7 @@
|
|
|
6596
6628
|
"type": "Object"
|
|
6597
6629
|
},
|
|
6598
6630
|
"class": "WindowsSymlinkChecker",
|
|
6599
|
-
"module": "
|
|
6631
|
+
"module": "ember-cli"
|
|
6600
6632
|
}
|
|
6601
6633
|
],
|
|
6602
6634
|
"warnings": []
|
package/lib/commands/addon.js
CHANGED
|
@@ -11,7 +11,7 @@ module.exports = NewCommand.extend({
|
|
|
11
11
|
{ name: 'dry-run', type: Boolean, default: false, aliases: ['d'] },
|
|
12
12
|
{ name: 'verbose', type: Boolean, default: false, aliases: ['v'] },
|
|
13
13
|
{ name: 'blueprint', type: String, default: 'addon', aliases: ['b'] },
|
|
14
|
-
{ name: 'skip-npm', type: Boolean, default: false, aliases: ['sn'] },
|
|
14
|
+
{ name: 'skip-npm', type: Boolean, default: false, aliases: ['sn', 'skip-install', 'si'] },
|
|
15
15
|
{ name: 'skip-git', type: Boolean, default: false, aliases: ['sg'] },
|
|
16
16
|
{
|
|
17
17
|
name: 'package-manager',
|
package/lib/commands/init.js
CHANGED
|
@@ -9,6 +9,7 @@ const normalizeBlueprint = require('../utilities/normalize-blueprint-option');
|
|
|
9
9
|
const mergeBlueprintOptions = require('../utilities/merge-blueprint-options');
|
|
10
10
|
const { isPnpmProject, isYarnProject } = require('../utilities/package-managers');
|
|
11
11
|
const getLangArg = require('../../lib/utilities/get-lang-arg');
|
|
12
|
+
const { deprecate } = require('../debug');
|
|
12
13
|
|
|
13
14
|
module.exports = Command.extend({
|
|
14
15
|
name: 'init',
|
|
@@ -19,7 +20,7 @@ module.exports = Command.extend({
|
|
|
19
20
|
{ name: 'dry-run', type: Boolean, default: false, aliases: ['d'] },
|
|
20
21
|
{ name: 'verbose', type: Boolean, default: false, aliases: ['v'] },
|
|
21
22
|
{ name: 'blueprint', type: String, aliases: ['b'] },
|
|
22
|
-
{ name: 'skip-npm', type: Boolean, default: false, aliases: ['sn'] },
|
|
23
|
+
{ name: 'skip-npm', type: Boolean, default: false, aliases: ['sn', 'skip-install', 'si'] },
|
|
23
24
|
{ name: 'lint-fix', type: Boolean, default: true },
|
|
24
25
|
{
|
|
25
26
|
name: 'welcome',
|
|
@@ -119,6 +120,25 @@ module.exports = Command.extend({
|
|
|
119
120
|
const projectName = this.project.name();
|
|
120
121
|
const prependEmoji = require('../../lib/utilities/prepend-emoji');
|
|
121
122
|
|
|
123
|
+
if (ciProvider === 'travis') {
|
|
124
|
+
this.ui.writeLine('');
|
|
125
|
+
|
|
126
|
+
deprecate(
|
|
127
|
+
'Support for generating a Travis CI config file is deprecated.\nYou can keep using Travis CI, or you could also consider switching to GitHub Actions instead.',
|
|
128
|
+
false,
|
|
129
|
+
{
|
|
130
|
+
for: 'ember-cli',
|
|
131
|
+
id: 'travis-ci-support',
|
|
132
|
+
since: {
|
|
133
|
+
available: '5.5.0',
|
|
134
|
+
enabled: '5.5.0',
|
|
135
|
+
},
|
|
136
|
+
until: '6.0.0',
|
|
137
|
+
url: 'https://deprecations.emberjs.com/id/travis-ci-support',
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
122
142
|
this.ui.writeLine('');
|
|
123
143
|
this.ui.writeLine(prependEmoji('🎉', `Successfully created project ${chalk.yellow(projectName)}.`));
|
|
124
144
|
this.ui.writeLine(prependEmoji('👉', 'Get started by typing:'));
|
package/lib/commands/new.js
CHANGED
|
@@ -17,7 +17,7 @@ module.exports = Command.extend({
|
|
|
17
17
|
{ name: 'dry-run', type: Boolean, default: false, aliases: ['d'] },
|
|
18
18
|
{ name: 'verbose', type: Boolean, default: false, aliases: ['v'] },
|
|
19
19
|
{ name: 'blueprint', type: String, default: 'app', aliases: ['b'] },
|
|
20
|
-
{ name: 'skip-npm', type: Boolean, default: false, aliases: ['sn'] },
|
|
20
|
+
{ name: 'skip-npm', type: Boolean, default: false, aliases: ['sn', 'skip-install', 'si'] },
|
|
21
21
|
{ name: 'skip-git', type: Boolean, default: false, aliases: ['sg'] },
|
|
22
22
|
{
|
|
23
23
|
name: 'welcome',
|
package/lib/debug/deprecate.js
CHANGED
|
@@ -74,6 +74,7 @@ function deprecate(description, condition, options) {
|
|
|
74
74
|
let message = formatMessage(description, options);
|
|
75
75
|
|
|
76
76
|
warn(message);
|
|
77
|
+
warn('');
|
|
77
78
|
warn(getStackTrace());
|
|
78
79
|
|
|
79
80
|
// Return the message for testing purposes.
|
|
@@ -86,13 +87,21 @@ function isSemVer(version) {
|
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
function formatMessage(description, options) {
|
|
89
|
-
let message = [
|
|
90
|
+
let message = [
|
|
91
|
+
chalk.inverse(' DEPRECATION '),
|
|
92
|
+
'\n\n',
|
|
93
|
+
description,
|
|
94
|
+
'\n\n',
|
|
95
|
+
`ID ${options.id}`,
|
|
96
|
+
'\n',
|
|
97
|
+
`UNTIL ${options.until}`,
|
|
98
|
+
];
|
|
90
99
|
|
|
91
100
|
if (options.url) {
|
|
92
|
-
message.push(`
|
|
101
|
+
message.push('\n', `URL ${options.url}`);
|
|
93
102
|
}
|
|
94
103
|
|
|
95
|
-
return message.join('
|
|
104
|
+
return message.join('');
|
|
96
105
|
}
|
|
97
106
|
|
|
98
107
|
function getStackTrace() {
|
package/lib/models/blueprint.js
CHANGED
|
@@ -529,15 +529,54 @@ let Blueprint = CoreObject.extend({
|
|
|
529
529
|
async convertToJS(fileInfo) {
|
|
530
530
|
let rendered = await fileInfo.render();
|
|
531
531
|
|
|
532
|
+
fileInfo.rendered = await this.removeTypes(path.extname(fileInfo.displayPath), rendered);
|
|
533
|
+
fileInfo.displayPath = replaceTypeScriptExtension(fileInfo.displayPath);
|
|
534
|
+
fileInfo.outputPath = replaceTypeScriptExtension(fileInfo.outputPath);
|
|
535
|
+
|
|
536
|
+
return fileInfo;
|
|
537
|
+
},
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
@private
|
|
541
|
+
@method removeTypes
|
|
542
|
+
@param {string} extension
|
|
543
|
+
@param {string} code
|
|
544
|
+
@return {Promise}
|
|
545
|
+
*/
|
|
546
|
+
async removeTypes(extension, code) {
|
|
532
547
|
const { removeTypes } = require('remove-types');
|
|
533
|
-
const transformed = await removeTypes(rendered);
|
|
534
548
|
|
|
535
|
-
|
|
549
|
+
if (extension === '.gts') {
|
|
550
|
+
const { parseTemplates } = require('ember-template-tag');
|
|
551
|
+
// Strip template tags
|
|
552
|
+
const templateTagIdentifier = (index) => `template = __TEMPLATE_TAG_${index}__;`;
|
|
553
|
+
const templateTagIdentifierBraces = (index) => `(template = __TEMPLATE_TAG_${index}__);`;
|
|
554
|
+
const templateTagMatches = parseTemplates(code).filter((match) => match.type === 'template-tag');
|
|
555
|
+
let strippedCode = code;
|
|
556
|
+
for (let i = 0; i < templateTagMatches.length; i++) {
|
|
557
|
+
const match = templateTagMatches[i];
|
|
558
|
+
const [matchStart, matchEnd] = match.range;
|
|
559
|
+
const templateTag = code.substring(matchStart, matchEnd);
|
|
560
|
+
strippedCode = strippedCode.replace(templateTag, templateTagIdentifier(i));
|
|
561
|
+
}
|
|
536
562
|
|
|
537
|
-
|
|
538
|
-
|
|
563
|
+
// Remove types
|
|
564
|
+
const transformed = await removeTypes(strippedCode);
|
|
565
|
+
|
|
566
|
+
// Readd stripped template tags
|
|
567
|
+
let transformedWithTemplateTag = transformed;
|
|
568
|
+
for (let i = 0; i < templateTagMatches.length; i++) {
|
|
569
|
+
const match = templateTagMatches[i];
|
|
570
|
+
const [matchStart, matchEnd] = match.range;
|
|
571
|
+
const templateTag = code.substring(matchStart, matchEnd);
|
|
572
|
+
transformedWithTemplateTag = transformedWithTemplateTag.replace(templateTagIdentifier(i), templateTag);
|
|
573
|
+
transformedWithTemplateTag = transformedWithTemplateTag.replace(templateTagIdentifierBraces(i), templateTag);
|
|
574
|
+
}
|
|
539
575
|
|
|
540
|
-
|
|
576
|
+
return transformedWithTemplateTag;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
return await removeTypes(code);
|
|
541
580
|
},
|
|
542
581
|
|
|
543
582
|
/**
|
|
@@ -893,8 +932,8 @@ let Blueprint = CoreObject.extend({
|
|
|
893
932
|
|
|
894
933
|
const jsInfo = new FileInfo({
|
|
895
934
|
...info,
|
|
896
|
-
outputPath:
|
|
897
|
-
displayPath:
|
|
935
|
+
outputPath: replaceTypeScriptExtension(info.outputPath),
|
|
936
|
+
displayPath: replaceTypeScriptExtension(info.displayPath),
|
|
898
937
|
});
|
|
899
938
|
|
|
900
939
|
if (this.options.typescript === false) {
|
|
@@ -1714,12 +1753,23 @@ function replaceExtension(filePath, newExt) {
|
|
|
1714
1753
|
});
|
|
1715
1754
|
}
|
|
1716
1755
|
|
|
1756
|
+
function replaceTypeScriptExtension(filePath) {
|
|
1757
|
+
const extensionMap = {
|
|
1758
|
+
'.ts': '.js',
|
|
1759
|
+
'.gts': '.gjs',
|
|
1760
|
+
};
|
|
1761
|
+
const ext = path.extname(filePath);
|
|
1762
|
+
const newExt = extensionMap[ext];
|
|
1763
|
+
|
|
1764
|
+
return replaceExtension(filePath, newExt);
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1717
1767
|
function isTypeScriptFile(filePath) {
|
|
1718
|
-
return path.extname(filePath) === '.ts';
|
|
1768
|
+
return path.extname(filePath) === '.ts' || path.extname(filePath) === '.gts';
|
|
1719
1769
|
}
|
|
1720
1770
|
|
|
1721
1771
|
function isJavaScriptFile(filePath) {
|
|
1722
|
-
return path.extname(filePath) === '.js';
|
|
1772
|
+
return path.extname(filePath) === '.js' || path.extname(filePath) === '.gjs';
|
|
1723
1773
|
}
|
|
1724
1774
|
|
|
1725
1775
|
module.exports = Blueprint;
|
package/lib/models/command.js
CHANGED
|
@@ -126,7 +126,7 @@ let Command = CoreObject.extend({
|
|
|
126
126
|
* { name: 'dry-run', type: Boolean, default: false, aliases: ['d'] },
|
|
127
127
|
* { name: 'verbose', type: Boolean, default: false, aliases: ['v'] },
|
|
128
128
|
* { name: 'blueprint', type: String, default: 'app', aliases: ['b'] },
|
|
129
|
-
* { name: 'skip-npm', type: Boolean, default: false, aliases: ['sn'] },
|
|
129
|
+
* { name: 'skip-npm', type: Boolean, default: false, aliases: ['sn', 'skip-install', 'si'] },
|
|
130
130
|
* { name: 'skip-git', type: Boolean, default: false, aliases: ['sg'] },
|
|
131
131
|
* { name: 'directory', type: String , aliases: ['dir'] }
|
|
132
132
|
* ],
|
|
@@ -91,7 +91,7 @@ function resolvePerBundleAddonCacheUtil(project) {
|
|
|
91
91
|
* https://github.com/ember-engines/ember-engines/blob/master/packages/ember-engines/lib/engine-addon.js#L396
|
|
92
92
|
*
|
|
93
93
|
* @public
|
|
94
|
-
* @class PerBundleAddonCache
|
|
94
|
+
* @class PerBundleAddonCache
|
|
95
95
|
*/
|
|
96
96
|
class PerBundleAddonCache {
|
|
97
97
|
constructor(project) {
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
* putting the symbol into the Symbol global cache. The symbol is used in per-bundle
|
|
6
6
|
* cache entries to refer to the field that points at the real instance that a Proxy
|
|
7
7
|
* refers to.
|
|
8
|
-
* @
|
|
8
|
+
* @class TARGET_INSTANCE
|
|
9
9
|
* @type Symbol
|
|
10
|
+
* @private
|
|
10
11
|
* @final
|
|
11
12
|
*/
|
|
12
13
|
const TARGET_INSTANCE = Symbol('_targetInstance_');
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Indicate if a given object is a constructor function or class or an instance of an Addon.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @private
|
|
7
|
+
* @method
|
|
7
8
|
* @param {Object} addonCtorOrInstance the constructor function/class or an instance of an Addon.
|
|
8
9
|
* @return {Boolean} True if the addonCtorOrInstance is a lazy engine, False otherwise.
|
|
9
10
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0-beta.1",
|
|
4
4
|
"description": "Command line tool for developing ambitious ember.js apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"ember-cli-normalize-entity-name": "^1.0.0",
|
|
68
68
|
"ember-cli-preprocess-registry": "^5.0.1",
|
|
69
69
|
"ember-cli-string-utils": "^1.1.0",
|
|
70
|
+
"ember-template-tag": "^2.3.8",
|
|
70
71
|
"ensure-posix-path": "^1.1.1",
|
|
71
72
|
"execa": "^5.1.1",
|
|
72
73
|
"exit": "^0.1.2",
|