ember-cli 4.0.0-beta.4 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/.github/workflows/ci.yml +4 -4
  2. package/CHANGELOG.md +28 -17
  3. package/bin/ember +0 -0
  4. package/blueprints/addon/additional-dev-dependencies.json +1 -1
  5. package/blueprints/addon/files/.github/workflows/ci.yml +5 -1
  6. package/blueprints/addon/files/.travis.yml +1 -1
  7. package/blueprints/addon/files/README.md +2 -2
  8. package/blueprints/addon/files/addon-config/ember-try.js +4 -4
  9. package/blueprints/app/files/.github/workflows/ci.yml +4 -0
  10. package/blueprints/app/files/package.json +8 -8
  11. package/blueprints/in-repo-addon/files/__root__/__name__/index.js +0 -0
  12. package/blueprints/in-repo-addon/index.js +0 -0
  13. package/blueprints/lib/index.js +0 -0
  14. package/docs/build/data.json +413 -413
  15. package/lib/models/host-info-cache.js +3 -5
  16. package/lib/models/per-bundle-addon-cache/index.js +2 -3
  17. package/lib/tasks/npm-task.js +1 -1
  18. package/lib/utilities/get-lang-arg.js +45 -45
  19. package/package.json +25 -25
  20. package/.github/ISSUE_TEMPLATE.md +0 -12
  21. package/.github/dependabot.yml +0 -15
  22. package/.github/workflows/coverage.yml +0 -31
  23. package/docs/analytics.md +0 -44
  24. package/docs/architecture.md +0 -316
  25. package/docs/assets/architecture/Ember-CLI architecture.png +0 -0
  26. package/docs/assets/architecture/Ember-CLI architecture.xml +0 -1
  27. package/docs/assets/architecture/README.md +0 -5
  28. package/docs/brocfile-transition.md +0 -46
  29. package/docs/build/api.js +0 -44
  30. package/docs/build/assets/css/external-small.png +0 -0
  31. package/docs/build/assets/css/logo.png +0 -0
  32. package/docs/build/assets/css/main.css +0 -555
  33. package/docs/build/assets/favicon.ico +0 -0
  34. package/docs/build/assets/img/spinner.gif +0 -0
  35. package/docs/build/assets/index.html +0 -10
  36. package/docs/build/assets/js/api-filter.js +0 -56
  37. package/docs/build/assets/js/api-list.js +0 -255
  38. package/docs/build/assets/js/api-search.js +0 -98
  39. package/docs/build/assets/js/apidocs.js +0 -376
  40. package/docs/build/assets/js/yui-prettify.js +0 -17
  41. package/docs/build/assets/vendor/prettify/CHANGES.html +0 -130
  42. package/docs/build/assets/vendor/prettify/COPYING +0 -202
  43. package/docs/build/assets/vendor/prettify/README.html +0 -203
  44. package/docs/build/assets/vendor/prettify/prettify-min.css +0 -1
  45. package/docs/build/assets/vendor/prettify/prettify-min.js +0 -1
  46. package/docs/build/classes/Addon.html +0 -4318
  47. package/docs/build/classes/AmdTransformAddon.html +0 -202
  48. package/docs/build/classes/Blueprint.html +0 -4796
  49. package/docs/build/classes/Builder.html +0 -611
  50. package/docs/build/classes/CLI.html +0 -810
  51. package/docs/build/classes/Command.html +0 -1655
  52. package/docs/build/classes/DefaultPackager.html +0 -202
  53. package/docs/build/classes/EmberAddon.html +0 -2207
  54. package/docs/build/classes/EmberApp.html +0 -2225
  55. package/docs/build/classes/HardwareInfo.html +0 -620
  56. package/docs/build/classes/HistorySupportAddon.html +0 -203
  57. package/docs/build/classes/Instrumentation.html +0 -695
  58. package/docs/build/classes/NodeModulesList.html +0 -460
  59. package/docs/build/classes/NpmTask.html +0 -333
  60. package/docs/build/classes/PackageInfo.html +0 -1390
  61. package/docs/build/classes/PackageInfoCache.html +0 -963
  62. package/docs/build/classes/PerBundleAddonCache {.html +0 -1010
  63. package/docs/build/classes/Project.html +0 -2083
  64. package/docs/build/classes/ServeFilesAddon.html +0 -260
  65. package/docs/build/classes/TestsServerAddon.html +0 -203
  66. package/docs/build/classes/WatcherAddon.html +0 -204
  67. package/docs/build/classes/WindowsSymlinkChecker.html +0 -1505
  68. package/docs/build/files/lib_broccoli_default-packager.js.html +0 -1426
  69. package/docs/build/files/lib_broccoli_ember-addon.js.html +0 -159
  70. package/docs/build/files/lib_broccoli_ember-app.js.html +0 -1913
  71. package/docs/build/files/lib_cli_cli.js.html +0 -417
  72. package/docs/build/files/lib_models_addon-info.js.html +0 -112
  73. package/docs/build/files/lib_models_addon.js.html +0 -1866
  74. package/docs/build/files/lib_models_blueprint.js.html +0 -1678
  75. package/docs/build/files/lib_models_builder.js.html +0 -417
  76. package/docs/build/files/lib_models_command.js.html +0 -804
  77. package/docs/build/files/lib_models_hardware-info.js.html +0 -479
  78. package/docs/build/files/lib_models_host-info-cache.js.html +0 -428
  79. package/docs/build/files/lib_models_installation-checker.js.html +0 -181
  80. package/docs/build/files/lib_models_instantiate-addons.js.html +0 -191
  81. package/docs/build/files/lib_models_instrumentation.js.html +0 -433
  82. package/docs/build/files/lib_models_package-info-cache_index.js.html +0 -793
  83. package/docs/build/files/lib_models_package-info-cache_node-modules-list.js.html +0 -208
  84. package/docs/build/files/lib_models_package-info-cache_package-info.js.html +0 -661
  85. package/docs/build/files/lib_models_per-bundle-addon-cache_addon-proxy.js.html +0 -252
  86. package/docs/build/files/lib_models_per-bundle-addon-cache_index.js.html +0 -485
  87. package/docs/build/files/lib_models_per-bundle-addon-cache_target-instance.js.html +0 -108
  88. package/docs/build/files/lib_models_project.js.html +0 -913
  89. package/docs/build/files/lib_models_task.js.html +0 -117
  90. package/docs/build/files/lib_tasks_build-watch.js.html +0 -157
  91. package/docs/build/files/lib_tasks_npm-task.js.html +0 -463
  92. package/docs/build/files/lib_tasks_serve.js.html +0 -207
  93. package/docs/build/files/lib_tasks_server_middleware_broccoli-serve-files_index.js.html +0 -127
  94. package/docs/build/files/lib_tasks_server_middleware_broccoli-watcher_index.js.html +0 -158
  95. package/docs/build/files/lib_tasks_server_middleware_history-support_index.js.html +0 -181
  96. package/docs/build/files/lib_tasks_server_middleware_tests-server_index.js.html +0 -171
  97. package/docs/build/files/lib_tasks_test-server.js.html +0 -167
  98. package/docs/build/files/lib_tasks_transforms_amd_index.js.html +0 -143
  99. package/docs/build/files/lib_utilities_ember-app-utils.js.html +0 -292
  100. package/docs/build/files/lib_utilities_insert-into-file.js.html +0 -219
  101. package/docs/build/files/lib_utilities_is-lazy-engine.js.html +0 -125
  102. package/docs/build/files/lib_utilities_is-yarn-project.js.html +0 -120
  103. package/docs/build/files/lib_utilities_valid-project-name.js.html +0 -142
  104. package/docs/build/files/lib_utilities_will-interrupt-process.js.html +0 -290
  105. package/docs/build/files/lib_utilities_windows-admin.js.html +0 -230
  106. package/docs/build/index.html +0 -125
  107. package/docs/build/modules/ember-cli.html +0 -152
  108. package/docs/build/modules/is-lazy-engine.html +0 -106
  109. package/docs/build-concurrency.md +0 -15
  110. package/docs/build-pipeline-debugging.md +0 -33
  111. package/docs/code-coverage.md +0 -14
  112. package/docs/error-propagation.md +0 -136
  113. package/docs/experiments.md +0 -53
  114. package/docs/node-support.md +0 -43
  115. package/docs/perf-guide.md +0 -250
  116. package/docs/project_version_preprocessor.js +0 -8
  117. package/docs/sourcemaps.md +0 -60
  118. package/docs/yuidoc.json +0 -13
@@ -1,2225 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>EmberApp - ember-cli</title>
6
- <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
7
- <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
8
- <script src="https://cdnjs.cloudflare.com/ajax/libs/yui/3.18.0/yui/yui-min.js"></script>
9
- </head>
10
- <body class="yui3-skin-sam">
11
-
12
- <div id="doc">
13
- <div class="yui3-g">
14
- <div id="sidebar" class="yui3-u">
15
- <div class="logo">
16
- <a href="../index.html">
17
- <img src="https://ember-cli.com/assets/images/ember-cli-logo-small-dark.png">
18
- </a>
19
- </div>
20
-
21
- <div id="modules" class="sidebox">
22
- <div class="hd">
23
- <h2 class="no-toc">Modules</h2>
24
- </div>
25
- <div class="bd">
26
- <ul>
27
- <li><a href="../modules/ember-cli.html">ember-cli</a>
28
- </li>
29
- <li><a href="../modules/is-lazy-engine.html">is-lazy-engine</a>
30
- </li>
31
- </ul>
32
- </div>
33
- </div>
34
-
35
- <div id="classes" class="sidebox">
36
- <div class="hd">
37
- <h2 class="no-toc">Classes</h2>
38
- </div>
39
- <div class="bd">
40
- <ul>
41
- <li><a href="../classes/Addon.html">Addon</a></li>
42
- <li><a href="../classes/AmdTransformAddon.html">AmdTransformAddon</a></li>
43
- <li><a href="../classes/Blueprint.html">Blueprint</a></li>
44
- <li><a href="../classes/Builder.html">Builder</a></li>
45
- <li><a href="../classes/CLI.html">CLI</a></li>
46
- <li><a href="../classes/Command.html">Command</a></li>
47
- <li><a href="../classes/DefaultPackager.html">DefaultPackager</a></li>
48
- <li><a href="../classes/EmberAddon.html">EmberAddon</a></li>
49
- <li><a href="../classes/EmberApp.html">EmberApp</a></li>
50
- <li><a href="../classes/HardwareInfo.html">HardwareInfo</a></li>
51
- <li><a href="../classes/HistorySupportAddon.html">HistorySupportAddon</a></li>
52
- <li><a href="../classes/Instrumentation.html">Instrumentation</a></li>
53
- <li><a href="../classes/NodeModulesList.html">NodeModulesList</a></li>
54
- <li><a href="../classes/NpmTask.html">NpmTask</a></li>
55
- <li><a href="../classes/PackageInfo.html">PackageInfo</a></li>
56
- <li><a href="../classes/PackageInfoCache.html">PackageInfoCache</a></li>
57
- <li><a href="../classes/PerBundleAddonCache {.html">PerBundleAddonCache {</a></li>
58
- <li><a href="../classes/Project.html">Project</a></li>
59
- <li><a href="../classes/ServeFilesAddon.html">ServeFilesAddon</a></li>
60
- <li><a href="../classes/TestsServerAddon.html">TestsServerAddon</a></li>
61
- <li><a href="../classes/WatcherAddon.html">WatcherAddon</a></li>
62
- <li><a href="../classes/WindowsSymlinkChecker.html">WindowsSymlinkChecker</a></li>
63
- </ul>
64
- </div>
65
- </div>
66
-
67
-
68
- <div id="sections" class="sidebox">
69
- <div class="hd">
70
- <h2 class="no-toc">EmberApp</h2>
71
- </div>
72
- <div class="bd">
73
-
74
- <div><a href="#static-method-summary">Static Method Summary</a></div>
75
-
76
- <div><a href="#constructor-summary">Constructor Summary</a></div>
77
-
78
-
79
- <div><a href="#method-summary">Method Summary</a></div>
80
-
81
-
82
-
83
-
84
- <div><a href="#static-public-methods">Static Public Methods</a></div>
85
- <ul>
86
- <li><a href="#method_env">env</a></li>
87
- </ul>
88
-
89
-
90
-
91
- <div><a href="#public-constructors">Public Constructors</a></div>
92
- <ul>
93
- <li><a href="#method_EmberApp">EmberApp</a></li>
94
- </ul>
95
-
96
-
97
-
98
-
99
-
100
-
101
- <div><a href="#public-methods">Public Methods</a></div>
102
- <ul>
103
- <li><a href="#method_dependencies">dependencies</a></li>
104
- <li><a href="#method_import">import</a></li>
105
- <li><a href="#method_toTree">toTree</a></li>
106
- </ul>
107
-
108
-
109
- <div><a href="#private-methods">Private Methods</a></div>
110
- <ul>
111
- <li><a href="#method__addonDisabledByExclude">_addonDisabledByExclude</a></li>
112
- <li><a href="#method__addonDisabledByInclude">_addonDisabledByInclude</a></li>
113
- <li><a href="#method__addonEnabled">_addonEnabled</a></li>
114
- <li><a href="#method__addonInstalled">_addonInstalled</a></li>
115
- <li><a href="#method__checkEmberCliBabel">_checkEmberCliBabel</a></li>
116
- <li><a href="#method__concatFiles">_concatFiles</a></li>
117
- <li><a href="#method__getAssetPath">_getAssetPath</a></li>
118
- <li><a href="#method__import">_import</a></li>
119
- <li><a href="#method__importAddonTransforms">_importAddonTransforms</a></li>
120
- <li><a href="#method__initOptions">_initOptions</a></li>
121
- <li><a href="#method__initProject">_initProject</a></li>
122
- <li><a href="#method__initTestsAndHinting">_initTestsAndHinting</a></li>
123
- <li><a href="#method__initVendorFiles">_initVendorFiles</a></li>
124
- <li><a href="#method__notifyAddonIncluded">_notifyAddonIncluded</a></li>
125
- <li><a href="#method__podTemplatePatterns">_podTemplatePatterns</a></li>
126
- <li><a href="#method__resolveLocal">_resolveLocal</a></li>
127
- <li><a href="#method_addonLintTree">addonLintTree</a></li>
128
- <li><a href="#method_addonPostprocessTree">addonPostprocessTree</a></li>
129
- <li><a href="#method_addonPreprocessTree">addonPreprocessTree</a></li>
130
- <li><a href="#method_addonTreesFor">addonTreesFor</a></li>
131
- <li><a href="#method_getLintTests">getLintTests</a></li>
132
- <li><a href="#method_initializeAddons">initializeAddons</a></li>
133
- <li><a href="#method_populateLegacyFiles">populateLegacyFiles</a></li>
134
- <li><a href="#method_shouldIncludeAddon">shouldIncludeAddon</a></li>
135
- <li><a href="#method_toArray">toArray</a></li>
136
- </ul>
137
- </div>
138
- </div>
139
-
140
-
141
-
142
- <div class="version-info">
143
- Version: 4.0.0-beta.4-beta-724190cca6
144
- </div>
145
-
146
- </div>
147
-
148
- <div id="main" class="yui3-u">
149
- <div class="content"><div class="title">
150
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l72"><code>lib&#x2F;broccoli&#x2F;ember-app.js:72</code></a></span>
151
- <h1 class="class-name">EmberApp</h1>
152
- </div>
153
-
154
-
155
-
156
-
157
- <div class="class-description"><p>EmberApp is the main class Ember CLI uses to manage the Broccoli trees
158
- for your application. It is very tightly integrated with Broccoli and has
159
- a <code>toTree()</code> method you can use to get the entire tree for your application.</p>
160
- <p>Available init options:</p>
161
- <ul>
162
- <li>storeConfigInMeta, defaults to <code>true</code></li>
163
- <li>autoRun, defaults to <code>true</code></li>
164
- <li>outputPaths, defaults to <code>{}</code></li>
165
- <li>minifyCSS, defaults to `{enabled: !!isProduction,options: { relativeTo: 'assets' }}</li>
166
- <li>minifyJS, defaults to `{enabled: !!isProduction}</li>
167
- <li>sourcemaps, defaults to <code>{}</code></li>
168
- <li>trees, defaults to <code>{}</code></li>
169
- <li>jshintrc, defaults to <code>{}</code></li>
170
- <li>vendorFiles, defaults to <code>{}</code></li>
171
- <li>addons, defaults to <code>{ exclude: [], include: [] }</code></li>
172
- </ul>
173
- </div>
174
-
175
- <h2 id="static-method-summary">Static Method Summary</h2>
176
-
177
- <table class="summary">
178
- <thead>
179
- <tr>
180
- <th colspan="2">Static Public Methods</th>
181
- </tr>
182
- </thead>
183
- <tbody>
184
- <tr>
185
- <td>
186
- public
187
- static
188
-
189
- </td>
190
- <td>
191
- <div class="method-name ">
192
- <a href="#method_env">env</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
193
- </div>
194
- <div class="short-description">
195
- <p>Returns the environment name</p>
196
- </div>
197
- </td>
198
- </tr>
199
- </tbody>
200
- </table>
201
-
202
-
203
-
204
-
205
-
206
- <h2 id="constructor-summary">Constructor Summary</h2>
207
-
208
- <table class="summary">
209
- <thead>
210
- <tr>
211
- <th colspan="2">Public Constructors</th>
212
- </tr>
213
- </thead>
214
- <tbody>
215
- <tr>
216
- <td>
217
- public
218
-
219
-
220
- </td>
221
- <td>
222
- <div class="method-name ">
223
- <a href="#method_EmberApp">EmberApp</a>([defaults], [options={}])
224
- </div>
225
- <div class="short-description">
226
- <p>EmberApp is the main class Ember CLI uses to manage the Broccoli trees for your application. It is very tightly integrated with Broccoli and has a <code>toTree()</code> method you can use to get the entire tree for your application.</p>
227
- </div>
228
- </td>
229
- </tr>
230
- </tbody>
231
- </table>
232
-
233
-
234
-
235
-
236
-
237
-
238
- <h2 id="method-summary">Method Summary</h2>
239
-
240
- <table class="summary">
241
- <thead>
242
- <tr>
243
- <th colspan="2">Public Methods</th>
244
- </tr>
245
- </thead>
246
- <tbody>
247
- <tr>
248
- <td>
249
- public
250
-
251
-
252
- </td>
253
- <td>
254
- <div class="method-name ">
255
- <a href="#method_dependencies">dependencies</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
256
- </div>
257
- <div class="short-description">
258
-
259
- </div>
260
- </td>
261
- </tr>
262
- <tr>
263
- <td>
264
- public
265
-
266
-
267
- </td>
268
- <td>
269
- <div class="method-name ">
270
- <a href="#method_import">import</a>(asset, [options])
271
- </div>
272
- <div class="short-description">
273
- <p>Imports an asset into the application.</p>
274
- </div>
275
- </td>
276
- </tr>
277
- <tr>
278
- <td>
279
- public
280
-
281
-
282
- </td>
283
- <td>
284
- <div class="method-name ">
285
- <a href="#method_toTree">toTree</a>([additionalTrees]): Tree
286
- </div>
287
- <div class="short-description">
288
- <p>Returns the merged tree for this application</p>
289
- </div>
290
- </td>
291
- </tr>
292
- </tbody>
293
- </table>
294
-
295
-
296
- <table class="summary">
297
- <thead>
298
- <tr>
299
- <th colspan="2">Private Methods</th>
300
- </tr>
301
- </thead>
302
- <tbody>
303
- <tr>
304
- <td>
305
- private
306
-
307
-
308
- </td>
309
- <td>
310
- <div class="method-name ">
311
- <a href="#method__addonDisabledByExclude">_addonDisabledByExclude</a>(addon): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
312
- </div>
313
- <div class="short-description">
314
-
315
- </div>
316
- </td>
317
- </tr>
318
- <tr>
319
- <td>
320
- private
321
-
322
-
323
- </td>
324
- <td>
325
- <div class="method-name ">
326
- <a href="#method__addonDisabledByInclude">_addonDisabledByInclude</a>(addon): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
327
- </div>
328
- <div class="short-description">
329
-
330
- </div>
331
- </td>
332
- </tr>
333
- <tr>
334
- <td>
335
- private
336
-
337
-
338
- </td>
339
- <td>
340
- <div class="method-name ">
341
- <a href="#method__addonEnabled">_addonEnabled</a>(addon): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
342
- </div>
343
- <div class="short-description">
344
- <p>Checks the result of <code>addon.isEnabled()</code> if it exists, defaults to <code>true</code> otherwise.</p>
345
- </div>
346
- </td>
347
- </tr>
348
- <tr>
349
- <td>
350
- private
351
-
352
-
353
- </td>
354
- <td>
355
- <div class="method-name ">
356
- <a href="#method__addonInstalled">_addonInstalled</a>(addonName): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
357
- </div>
358
- <div class="short-description">
359
-
360
- </div>
361
- </td>
362
- </tr>
363
- <tr>
364
- <td>
365
- private
366
-
367
-
368
- </td>
369
- <td>
370
- <div class="method-name ">
371
- <a href="#method__checkEmberCliBabel">_checkEmberCliBabel</a>(addons): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
372
- </div>
373
- <div class="short-description">
374
-
375
- </div>
376
- </td>
377
- </tr>
378
- <tr>
379
- <td>
380
- private
381
-
382
-
383
- </td>
384
- <td>
385
- <div class="method-name ">
386
- <a href="#method__concatFiles">_concatFiles</a>(tree, options):
387
- </div>
388
- <div class="short-description">
389
- <p>Delegates to <code>broccoli-concat</code> with the <code>sourceMapConfig</code> option set to <code>options.sourcemaps</code>.</p>
390
- </div>
391
- </td>
392
- </tr>
393
- <tr>
394
- <td>
395
- private
396
-
397
-
398
- </td>
399
- <td>
400
- <div class="method-name ">
401
- <a href="#method__getAssetPath">_getAssetPath</a>(asset): (String | Undefined)
402
- </div>
403
- <div class="short-description">
404
-
405
- </div>
406
- </td>
407
- </tr>
408
- <tr>
409
- <td>
410
- private
411
-
412
-
413
- </td>
414
- <td>
415
- <div class="method-name ">
416
- <a href="#method__import">_import</a>(assetPath, options, directory, subdirectory, extension)
417
- </div>
418
- <div class="short-description">
419
-
420
- </div>
421
- </td>
422
- </tr>
423
- <tr>
424
- <td>
425
- private
426
-
427
-
428
- </td>
429
- <td>
430
- <div class="method-name ">
431
- <a href="#method__importAddonTransforms">_importAddonTransforms</a>( )
432
- </div>
433
- <div class="short-description">
434
- <p>Calls the importTransforms hook on addons.</p>
435
- </div>
436
- </td>
437
- </tr>
438
- <tr>
439
- <td>
440
- private
441
-
442
-
443
- </td>
444
- <td>
445
- <div class="method-name ">
446
- <a href="#method__initOptions">_initOptions</a>(options)
447
- </div>
448
- <div class="short-description">
449
- <p>Initializes the <code>options</code> property from the <code>options</code> parameter and a set of default values from Ember CLI.</p>
450
- </div>
451
- </td>
452
- </tr>
453
- <tr>
454
- <td>
455
- private
456
-
457
-
458
- </td>
459
- <td>
460
- <div class="method-name ">
461
- <a href="#method__initProject">_initProject</a>(options)
462
- </div>
463
- <div class="short-description">
464
- <p>Initializes the <code>project</code> property from <code>options.project</code> or the closest Ember CLI project from the current working directory.</p>
465
- </div>
466
- </td>
467
- </tr>
468
- <tr>
469
- <td>
470
- private
471
-
472
-
473
- </td>
474
- <td>
475
- <div class="method-name ">
476
- <a href="#method__initTestsAndHinting">_initTestsAndHinting</a>(options)
477
- </div>
478
- <div class="short-description">
479
- <p>Initializes the <code>tests</code> and <code>hinting</code> properties.</p>
480
- </div>
481
- </td>
482
- </tr>
483
- <tr>
484
- <td>
485
- private
486
-
487
-
488
- </td>
489
- <td>
490
- <div class="method-name ">
491
- <a href="#method__initVendorFiles">_initVendorFiles</a>( )
492
- </div>
493
- <div class="short-description">
494
-
495
- </div>
496
- </td>
497
- </tr>
498
- <tr>
499
- <td>
500
- private
501
-
502
-
503
- </td>
504
- <td>
505
- <div class="method-name ">
506
- <a href="#method__notifyAddonIncluded">_notifyAddonIncluded</a>( )
507
- </div>
508
- <div class="short-description">
509
- <p>Calls the included hook on addons.</p>
510
- </div>
511
- </td>
512
- </tr>
513
- <tr>
514
- <td>
515
- private
516
-
517
-
518
- </td>
519
- <td>
520
- <div class="method-name ">
521
- <a href="#method__podTemplatePatterns">_podTemplatePatterns</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
522
- </div>
523
- <div class="short-description">
524
-
525
- </div>
526
- </td>
527
- </tr>
528
- <tr>
529
- <td>
530
- private
531
-
532
-
533
- </td>
534
- <td>
535
- <div class="method-name ">
536
- <a href="#method__resolveLocal">_resolveLocal</a>( )
537
- </div>
538
- <div class="short-description">
539
- <p>Resolves a path relative to the project's root</p>
540
- </div>
541
- </td>
542
- </tr>
543
- <tr>
544
- <td>
545
- private
546
-
547
-
548
- </td>
549
- <td>
550
- <div class="method-name ">
551
- <a href="#method_addonLintTree">addonLintTree</a>(type, tree): Tree
552
- </div>
553
- <div class="short-description">
554
- <p>Runs addon lintTree hooks and returns a single tree containing all their output.</p>
555
- </div>
556
- </td>
557
- </tr>
558
- <tr>
559
- <td>
560
- private
561
-
562
-
563
- </td>
564
- <td>
565
- <div class="method-name ">
566
- <a href="#method_addonPostprocessTree">addonPostprocessTree</a>(type, tree): Tree
567
- </div>
568
- <div class="short-description">
569
- <p>Runs addon post-processing on a given tree and returns the processed tree.</p>
570
- </div>
571
- </td>
572
- </tr>
573
- <tr>
574
- <td>
575
- private
576
-
577
-
578
- </td>
579
- <td>
580
- <div class="method-name ">
581
- <a href="#method_addonPreprocessTree">addonPreprocessTree</a>(type, tree): Tree
582
- </div>
583
- <div class="short-description">
584
- <p>Runs addon pre-processing on a given tree and returns the processed tree.</p>
585
- </div>
586
- </td>
587
- </tr>
588
- <tr>
589
- <td>
590
- private
591
-
592
-
593
- </td>
594
- <td>
595
- <div class="method-name ">
596
- <a href="#method_addonTreesFor">addonTreesFor</a>(type): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
597
- </div>
598
- <div class="short-description">
599
- <p>Returns a list of trees for a given type, returned by all addons.</p>
600
- </div>
601
- </td>
602
- </tr>
603
- <tr>
604
- <td>
605
- private
606
-
607
-
608
- </td>
609
- <td>
610
- <div class="method-name ">
611
- <a href="#method_getLintTests">getLintTests</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
612
- </div>
613
- <div class="short-description">
614
- <p>Runs the <code>app</code>, <code>tests</code> and <code>templates</code> trees through the chain of addons that produces lint trees.</p>
615
- </div>
616
- </td>
617
- </tr>
618
- <tr>
619
- <td>
620
- private
621
-
622
-
623
- </td>
624
- <td>
625
- <div class="method-name ">
626
- <a href="#method_initializeAddons">initializeAddons</a>( )
627
- </div>
628
- <div class="short-description">
629
- <p>Loads and initializes addons for this project. Calls initializeAddons on the Project.</p>
630
- </div>
631
- </td>
632
- </tr>
633
- <tr>
634
- <td>
635
- private
636
-
637
-
638
- </td>
639
- <td>
640
- <div class="method-name ">
641
- <a href="#method_populateLegacyFiles">populateLegacyFiles</a>( )
642
- </div>
643
- <div class="short-description">
644
- <p>Imports legacy imports in this.vendorFiles</p>
645
- </div>
646
- </td>
647
- </tr>
648
- <tr>
649
- <td>
650
- private
651
-
652
-
653
- </td>
654
- <td>
655
- <div class="method-name ">
656
- <a href="#method_shouldIncludeAddon">shouldIncludeAddon</a>(addon): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
657
- </div>
658
- <div class="short-description">
659
- <p>Returns whether an addon should be added to the project</p>
660
- </div>
661
- </td>
662
- </tr>
663
- <tr>
664
- <td>
665
- private
666
-
667
-
668
- </td>
669
- <td>
670
- <div class="method-name ">
671
- <a href="#method_toArray">toArray</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
672
- </div>
673
- <div class="short-description">
674
- <p>Returns an array of trees for this application</p>
675
- </div>
676
- </td>
677
- </tr>
678
- </tbody>
679
- </table>
680
-
681
-
682
-
683
-
684
- <div id="methods public">
685
- <h2 id="static-public-methods">Static Public Methods</h2>
686
- <div class="method item public">
687
- <div id="method_env" class="title">
688
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l555"><code>lib&#x2F;broccoli&#x2F;ember-app.js:555</code></a></span>
689
- <h3 class="">
690
- public
691
- static
692
-
693
- env( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
694
- </h3>
695
- </div>
696
-
697
-
698
-
699
- <div class="method-description"><p>Returns the environment name</p>
700
- </div>
701
-
702
-
703
- <div class="return">
704
- <h4>Return:</h4>
705
- <div>
706
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
707
- <span class="return-description"><p>Environment name</p>
708
- </span>
709
- </div>
710
- </div>
711
-
712
-
713
- </div>
714
- </div>
715
-
716
-
717
-
718
- <div id="methods public">
719
- <h2 id="public-constructors">Public Constructors</h2>
720
- <div class="method item">
721
- <div id="method_EmberApp" class="title">
722
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l72"><code>lib&#x2F;broccoli&#x2F;ember-app.js:72</code></a></span>
723
- <h3 class="">
724
- public
725
-
726
-
727
- EmberApp([defaults], [options={}])
728
- </h3>
729
- </div>
730
-
731
-
732
-
733
- <div class="method-description"></div>
734
-
735
- <div class="params">
736
- <h4>Parameters:</h4>
737
- <table>
738
- <thead>
739
- <tr>
740
- <th>Name</th>
741
- <th>Type</th>
742
- <th>Attribute</th>
743
- <th>Description</th>
744
- </tr>
745
- </thead>
746
- <tbody>
747
- <tr>
748
- <td>defaults</td>
749
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
750
- <td>
751
- <ul>
752
- <li>optional</li>
753
-
754
-
755
- </ul>
756
- </td>
757
- <td> </td>
758
- </tr>
759
-
760
- <tr>
761
- <td>options</td>
762
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
763
- <td>
764
- <ul>
765
- <li>optional</li>
766
- <li>default: {}</li>
767
-
768
- </ul>
769
- </td>
770
- <td><p>Configuration options</p>
771
- </td>
772
- </tr>
773
-
774
- </tbody>
775
- </table>
776
- </div>
777
-
778
-
779
-
780
- </div>
781
- </div>
782
-
783
-
784
-
785
-
786
-
787
-
788
- <div id="methods public">
789
- <h2 id="public-methods">Public Methods</h2>
790
- <div class="method item public">
791
- <div id="method_dependencies" class="title">
792
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l1413"><code>lib&#x2F;broccoli&#x2F;ember-app.js:1413</code></a></span>
793
- <h3 class="">
794
- public
795
-
796
-
797
- dependencies( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
798
- </h3>
799
- </div>
800
-
801
-
802
-
803
- <div class="method-description"></div>
804
-
805
-
806
- <div class="return">
807
- <h4>Return:</h4>
808
- <div>
809
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
810
- <span class="return-description"><p>Alias to the project's dependencies function</p>
811
- </span>
812
- </div>
813
- </div>
814
-
815
-
816
- </div>
817
- <div class="method item public">
818
- <div id="method_import" class="title">
819
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l1422"><code>lib&#x2F;broccoli&#x2F;ember-app.js:1422</code></a></span>
820
- <h3 class="">
821
- public
822
-
823
-
824
- import(asset, [options])
825
- </h3>
826
- </div>
827
-
828
-
829
-
830
- <div class="method-description"><p>Imports an asset into the application.</p>
831
- </div>
832
-
833
- <div class="params">
834
- <h4>Parameters:</h4>
835
- <table>
836
- <thead>
837
- <tr>
838
- <th>Name</th>
839
- <th>Type</th>
840
- <th>Attribute</th>
841
- <th>Description</th>
842
- </tr>
843
- </thead>
844
- <tbody>
845
- <tr>
846
- <td>asset</td>
847
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
848
- <td>
849
- <ul>
850
-
851
-
852
-
853
- </ul>
854
- </td>
855
- <td><p>Either a path to the asset or an object with environment names and paths as key-value pairs.</p>
856
- </td>
857
- </tr>
858
-
859
- <tr>
860
- <td>options</td>
861
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
862
- <td>
863
- <ul>
864
- <li>optional</li>
865
-
866
-
867
- </ul>
868
- </td>
869
- <td><p>Options object</p>
870
- </td>
871
- </tr>
872
-
873
- <tr>
874
- <td>options.type</td>
875
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
876
- <td>
877
- <ul>
878
- <li>optional</li>
879
- <li>default: 'vendor'</li>
880
-
881
- </ul>
882
- </td>
883
- <td><p>Either 'vendor' or 'test'</p>
884
- </td>
885
- </tr>
886
- <tr>
887
- <td>options.prepend</td>
888
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></td>
889
- <td>
890
- <ul>
891
- <li>optional</li>
892
- <li>default: false</li>
893
-
894
- </ul>
895
- </td>
896
- <td><p>Whether or not this asset should be prepended</p>
897
- </td>
898
- </tr>
899
- <tr>
900
- <td>options.destDir</td>
901
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
902
- <td>
903
- <ul>
904
- <li>optional</li>
905
-
906
-
907
- </ul>
908
- </td>
909
- <td><p>Destination directory, defaults to the name of the directory the asset is in</p>
910
- </td>
911
- </tr>
912
- <tr>
913
- <td>options.outputFile</td>
914
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
915
- <td>
916
- <ul>
917
- <li>optional</li>
918
-
919
-
920
- </ul>
921
- </td>
922
- <td><p>Specifies the output file for given import. Defaults to assets/vendor.{js,css}</p>
923
- </td>
924
- </tr>
925
- <tr>
926
- <td>options.using</td>
927
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></td>
928
- <td>
929
- <ul>
930
- <li>optional</li>
931
-
932
-
933
- </ul>
934
- </td>
935
- <td><p>Specifies the array of transformations to be done on the asset. Can do an amd shim and/or custom transformation</p>
936
- </td>
937
- </tr>
938
- </tbody>
939
- </table>
940
- </div>
941
-
942
-
943
-
944
- </div>
945
- <div class="method item public">
946
- <div id="method_toTree" class="title">
947
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l1698"><code>lib&#x2F;broccoli&#x2F;ember-app.js:1698</code></a></span>
948
- <h3 class="">
949
- public
950
-
951
-
952
- toTree([additionalTrees]): Tree
953
- </h3>
954
- </div>
955
-
956
-
957
-
958
- <div class="method-description"><p>Returns the merged tree for this application</p>
959
- </div>
960
-
961
- <div class="params">
962
- <h4>Parameters:</h4>
963
- <table>
964
- <thead>
965
- <tr>
966
- <th>Name</th>
967
- <th>Type</th>
968
- <th>Attribute</th>
969
- <th>Description</th>
970
- </tr>
971
- </thead>
972
- <tbody>
973
- <tr>
974
- <td>additionalTrees</td>
975
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></td>
976
- <td>
977
- <ul>
978
- <li>optional</li>
979
-
980
-
981
- </ul>
982
- </td>
983
- <td><p>Array of additional trees to merge</p>
984
- </td>
985
- </tr>
986
-
987
- </tbody>
988
- </table>
989
- </div>
990
-
991
- <div class="return">
992
- <h4>Return:</h4>
993
- <div>
994
- <span class="return-type">Tree</span>
995
- <span class="return-description"><p>Merged tree for this application</p>
996
- </span>
997
- </div>
998
- </div>
999
-
1000
-
1001
- </div>
1002
- </div>
1003
-
1004
-
1005
- <div id="methods private">
1006
- <h2 id="private-methods">Private Methods</h2>
1007
- <div class="method item private">
1008
- <div id="method__addonDisabledByExclude" class="title">
1009
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l594"><code>lib&#x2F;broccoli&#x2F;ember-app.js:594</code></a></span>
1010
- <h3 class="">
1011
- private
1012
-
1013
-
1014
- _addonDisabledByExclude(addon): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
1015
- </h3>
1016
- </div>
1017
-
1018
-
1019
-
1020
- <div class="method-description"></div>
1021
-
1022
- <div class="params">
1023
- <h4>Parameters:</h4>
1024
- <table>
1025
- <thead>
1026
- <tr>
1027
- <th>Name</th>
1028
- <th>Type</th>
1029
- <th>Attribute</th>
1030
- <th>Description</th>
1031
- </tr>
1032
- </thead>
1033
- <tbody>
1034
- <tr>
1035
- <td>addon</td>
1036
- <td><a href="../classes/Addon.html" class="crosslink">Addon</a></td>
1037
- <td>
1038
- <ul>
1039
-
1040
-
1041
-
1042
- </ul>
1043
- </td>
1044
- <td></td>
1045
- </tr>
1046
-
1047
- </tbody>
1048
- </table>
1049
- </div>
1050
-
1051
- <div class="return">
1052
- <h4>Return:</h4>
1053
- <div>
1054
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1055
- <span class="return-description"></span>
1056
- </div>
1057
- </div>
1058
-
1059
-
1060
- </div>
1061
- <div class="method item private">
1062
- <div id="method__addonDisabledByInclude" class="title">
1063
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l605"><code>lib&#x2F;broccoli&#x2F;ember-app.js:605</code></a></span>
1064
- <h3 class="">
1065
- private
1066
-
1067
-
1068
- _addonDisabledByInclude(addon): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
1069
- </h3>
1070
- </div>
1071
-
1072
-
1073
-
1074
- <div class="method-description"></div>
1075
-
1076
- <div class="params">
1077
- <h4>Parameters:</h4>
1078
- <table>
1079
- <thead>
1080
- <tr>
1081
- <th>Name</th>
1082
- <th>Type</th>
1083
- <th>Attribute</th>
1084
- <th>Description</th>
1085
- </tr>
1086
- </thead>
1087
- <tbody>
1088
- <tr>
1089
- <td>addon</td>
1090
- <td><a href="../classes/Addon.html" class="crosslink">Addon</a></td>
1091
- <td>
1092
- <ul>
1093
-
1094
-
1095
-
1096
- </ul>
1097
- </td>
1098
- <td></td>
1099
- </tr>
1100
-
1101
- </tbody>
1102
- </table>
1103
- </div>
1104
-
1105
- <div class="return">
1106
- <h4>Return:</h4>
1107
- <div>
1108
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1109
- <span class="return-description"></span>
1110
- </div>
1111
- </div>
1112
-
1113
-
1114
- </div>
1115
- <div class="method item private">
1116
- <div id="method__addonEnabled" class="title">
1117
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l582"><code>lib&#x2F;broccoli&#x2F;ember-app.js:582</code></a></span>
1118
- <h3 class="">
1119
- private
1120
-
1121
-
1122
- _addonEnabled(addon): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
1123
- </h3>
1124
- </div>
1125
-
1126
-
1127
-
1128
- <div class="method-description"><p>Checks the result of <code>addon.isEnabled()</code> if it exists, defaults to <code>true</code> otherwise.</p>
1129
- </div>
1130
-
1131
- <div class="params">
1132
- <h4>Parameters:</h4>
1133
- <table>
1134
- <thead>
1135
- <tr>
1136
- <th>Name</th>
1137
- <th>Type</th>
1138
- <th>Attribute</th>
1139
- <th>Description</th>
1140
- </tr>
1141
- </thead>
1142
- <tbody>
1143
- <tr>
1144
- <td>addon</td>
1145
- <td><a href="../classes/Addon.html" class="crosslink">Addon</a></td>
1146
- <td>
1147
- <ul>
1148
-
1149
-
1150
-
1151
- </ul>
1152
- </td>
1153
- <td></td>
1154
- </tr>
1155
-
1156
- </tbody>
1157
- </table>
1158
- </div>
1159
-
1160
- <div class="return">
1161
- <h4>Return:</h4>
1162
- <div>
1163
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1164
- <span class="return-description"></span>
1165
- </div>
1166
- </div>
1167
-
1168
-
1169
- </div>
1170
- <div class="method item private">
1171
- <div id="method__addonInstalled" class="title">
1172
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l1403"><code>lib&#x2F;broccoli&#x2F;ember-app.js:1403</code></a></span>
1173
- <h3 class="">
1174
- private
1175
-
1176
-
1177
- _addonInstalled(addonName): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
1178
- </h3>
1179
- </div>
1180
-
1181
-
1182
-
1183
- <div class="method-description"></div>
1184
-
1185
- <div class="params">
1186
- <h4>Parameters:</h4>
1187
- <table>
1188
- <thead>
1189
- <tr>
1190
- <th>Name</th>
1191
- <th>Type</th>
1192
- <th>Attribute</th>
1193
- <th>Description</th>
1194
- </tr>
1195
- </thead>
1196
- <tbody>
1197
- <tr>
1198
- <td>addonName</td>
1199
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1200
- <td>
1201
- <ul>
1202
-
1203
-
1204
-
1205
- </ul>
1206
- </td>
1207
- <td><p>The name of the addon we are checking to see if it's installed</p>
1208
- </td>
1209
- </tr>
1210
-
1211
- </tbody>
1212
- </table>
1213
- </div>
1214
-
1215
- <div class="return">
1216
- <h4>Return:</h4>
1217
- <div>
1218
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1219
- <span class="return-description"></span>
1220
- </div>
1221
- </div>
1222
-
1223
-
1224
- </div>
1225
- <div class="method item private">
1226
- <div id="method__checkEmberCliBabel" class="title">
1227
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l616"><code>lib&#x2F;broccoli&#x2F;ember-app.js:616</code></a></span>
1228
- <h3 class="">
1229
- private
1230
-
1231
-
1232
- _checkEmberCliBabel(addons): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
1233
- </h3>
1234
- </div>
1235
-
1236
-
1237
-
1238
- <div class="method-description"></div>
1239
-
1240
- <div class="params">
1241
- <h4>Parameters:</h4>
1242
- <table>
1243
- <thead>
1244
- <tr>
1245
- <th>Name</th>
1246
- <th>Type</th>
1247
- <th>Attribute</th>
1248
- <th>Description</th>
1249
- </tr>
1250
- </thead>
1251
- <tbody>
1252
- <tr>
1253
- <td>addons</td>
1254
- <td>Addons</td>
1255
- <td>
1256
- <ul>
1257
-
1258
-
1259
-
1260
- </ul>
1261
- </td>
1262
- <td></td>
1263
- </tr>
1264
-
1265
- </tbody>
1266
- </table>
1267
- </div>
1268
-
1269
- <div class="return">
1270
- <h4>Return:</h4>
1271
- <div>
1272
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1273
- <span class="return-description"></span>
1274
- </div>
1275
- </div>
1276
-
1277
-
1278
- </div>
1279
- <div class="method item private">
1280
- <div id="method__concatFiles" class="title">
1281
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l567"><code>lib&#x2F;broccoli&#x2F;ember-app.js:567</code></a></span>
1282
- <h3 class="">
1283
- private
1284
-
1285
-
1286
- _concatFiles(tree, options):
1287
- </h3>
1288
- </div>
1289
-
1290
-
1291
-
1292
- <div class="method-description"><p>Delegates to <code>broccoli-concat</code> with the <code>sourceMapConfig</code> option set to <code>options.sourcemaps</code>.</p>
1293
- </div>
1294
-
1295
- <div class="params">
1296
- <h4>Parameters:</h4>
1297
- <table>
1298
- <thead>
1299
- <tr>
1300
- <th>Name</th>
1301
- <th>Type</th>
1302
- <th>Attribute</th>
1303
- <th>Description</th>
1304
- </tr>
1305
- </thead>
1306
- <tbody>
1307
- <tr>
1308
- <td>tree</td>
1309
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
1310
- <td>
1311
- <ul>
1312
-
1313
-
1314
-
1315
- </ul>
1316
- </td>
1317
- <td></td>
1318
- </tr>
1319
-
1320
- <tr>
1321
- <td>options</td>
1322
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
1323
- <td>
1324
- <ul>
1325
-
1326
-
1327
-
1328
- </ul>
1329
- </td>
1330
- <td></td>
1331
- </tr>
1332
-
1333
- </tbody>
1334
- </table>
1335
- </div>
1336
-
1337
- <div class="return">
1338
- <h4>Return:</h4>
1339
- <div>
1340
-
1341
- <span class="return-description"></span>
1342
- </div>
1343
- </div>
1344
-
1345
-
1346
- </div>
1347
- <div class="method item private">
1348
- <div id="method__getAssetPath" class="title">
1349
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l1553"><code>lib&#x2F;broccoli&#x2F;ember-app.js:1553</code></a></span>
1350
- <h3 class="">
1351
- private
1352
-
1353
-
1354
- _getAssetPath(asset): (String | Undefined)
1355
- </h3>
1356
- </div>
1357
-
1358
-
1359
-
1360
- <div class="method-description"></div>
1361
-
1362
- <div class="params">
1363
- <h4>Parameters:</h4>
1364
- <table>
1365
- <thead>
1366
- <tr>
1367
- <th>Name</th>
1368
- <th>Type</th>
1369
- <th>Attribute</th>
1370
- <th>Description</th>
1371
- </tr>
1372
- </thead>
1373
- <tbody>
1374
- <tr>
1375
- <td>asset</td>
1376
- <td>(Object | String)</td>
1377
- <td>
1378
- <ul>
1379
-
1380
-
1381
-
1382
- </ul>
1383
- </td>
1384
- <td></td>
1385
- </tr>
1386
-
1387
- </tbody>
1388
- </table>
1389
- </div>
1390
-
1391
- <div class="return">
1392
- <h4>Return:</h4>
1393
- <div>
1394
- <span class="return-type">(String | Undefined)</span>
1395
- <span class="return-description"><p>assetPath</p>
1396
- </span>
1397
- </div>
1398
- </div>
1399
-
1400
-
1401
- </div>
1402
- <div class="method item private">
1403
- <div id="method__import" class="title">
1404
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l1468"><code>lib&#x2F;broccoli&#x2F;ember-app.js:1468</code></a></span>
1405
- <h3 class="">
1406
- private
1407
-
1408
-
1409
- _import(assetPath, options, directory, subdirectory, extension)
1410
- </h3>
1411
- </div>
1412
-
1413
-
1414
-
1415
- <div class="method-description"></div>
1416
-
1417
- <div class="params">
1418
- <h4>Parameters:</h4>
1419
- <table>
1420
- <thead>
1421
- <tr>
1422
- <th>Name</th>
1423
- <th>Type</th>
1424
- <th>Attribute</th>
1425
- <th>Description</th>
1426
- </tr>
1427
- </thead>
1428
- <tbody>
1429
- <tr>
1430
- <td>assetPath</td>
1431
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1432
- <td>
1433
- <ul>
1434
-
1435
-
1436
-
1437
- </ul>
1438
- </td>
1439
- <td></td>
1440
- </tr>
1441
-
1442
- <tr>
1443
- <td>options</td>
1444
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
1445
- <td>
1446
- <ul>
1447
-
1448
-
1449
-
1450
- </ul>
1451
- </td>
1452
- <td></td>
1453
- </tr>
1454
-
1455
- <tr>
1456
- <td>directory</td>
1457
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1458
- <td>
1459
- <ul>
1460
-
1461
-
1462
-
1463
- </ul>
1464
- </td>
1465
- <td></td>
1466
- </tr>
1467
-
1468
- <tr>
1469
- <td>subdirectory</td>
1470
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1471
- <td>
1472
- <ul>
1473
-
1474
-
1475
-
1476
- </ul>
1477
- </td>
1478
- <td></td>
1479
- </tr>
1480
-
1481
- <tr>
1482
- <td>extension</td>
1483
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1484
- <td>
1485
- <ul>
1486
-
1487
-
1488
-
1489
- </ul>
1490
- </td>
1491
- <td></td>
1492
- </tr>
1493
-
1494
- </tbody>
1495
- </table>
1496
- </div>
1497
-
1498
-
1499
-
1500
- </div>
1501
- <div class="method item private">
1502
- <div id="method__importAddonTransforms" class="title">
1503
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l700"><code>lib&#x2F;broccoli&#x2F;ember-app.js:700</code></a></span>
1504
- <h3 class="">
1505
- private
1506
-
1507
-
1508
- _importAddonTransforms( )
1509
- </h3>
1510
- </div>
1511
-
1512
-
1513
-
1514
- <div class="method-description"><p>Calls the importTransforms hook on addons.</p>
1515
- </div>
1516
-
1517
-
1518
-
1519
-
1520
- </div>
1521
- <div class="method item private">
1522
- <div id="method__initOptions" class="title">
1523
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l238"><code>lib&#x2F;broccoli&#x2F;ember-app.js:238</code></a></span>
1524
- <h3 class="">
1525
- private
1526
-
1527
-
1528
- _initOptions(options)
1529
- </h3>
1530
- </div>
1531
-
1532
-
1533
-
1534
- <div class="method-description"><p>Initializes the <code>options</code> property from the <code>options</code> parameter and
1535
- a set of default values from Ember CLI.</p>
1536
- </div>
1537
-
1538
- <div class="params">
1539
- <h4>Parameters:</h4>
1540
- <table>
1541
- <thead>
1542
- <tr>
1543
- <th>Name</th>
1544
- <th>Type</th>
1545
- <th>Attribute</th>
1546
- <th>Description</th>
1547
- </tr>
1548
- </thead>
1549
- <tbody>
1550
- <tr>
1551
- <td>options</td>
1552
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
1553
- <td>
1554
- <ul>
1555
-
1556
-
1557
-
1558
- </ul>
1559
- </td>
1560
- <td></td>
1561
- </tr>
1562
-
1563
- </tbody>
1564
- </table>
1565
- </div>
1566
-
1567
-
1568
-
1569
- </div>
1570
- <div class="method item private">
1571
- <div id="method__initProject" class="title">
1572
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l217"><code>lib&#x2F;broccoli&#x2F;ember-app.js:217</code></a></span>
1573
- <h3 class="">
1574
- private
1575
-
1576
-
1577
- _initProject(options)
1578
- </h3>
1579
- </div>
1580
-
1581
-
1582
-
1583
- <div class="method-description"><p>Initializes the <code>project</code> property from <code>options.project</code> or the
1584
- closest Ember CLI project from the current working directory.</p>
1585
- </div>
1586
-
1587
- <div class="params">
1588
- <h4>Parameters:</h4>
1589
- <table>
1590
- <thead>
1591
- <tr>
1592
- <th>Name</th>
1593
- <th>Type</th>
1594
- <th>Attribute</th>
1595
- <th>Description</th>
1596
- </tr>
1597
- </thead>
1598
- <tbody>
1599
- <tr>
1600
- <td>options</td>
1601
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
1602
- <td>
1603
- <ul>
1604
-
1605
-
1606
-
1607
- </ul>
1608
- </td>
1609
- <td></td>
1610
- </tr>
1611
-
1612
- </tbody>
1613
- </table>
1614
- </div>
1615
-
1616
-
1617
-
1618
- </div>
1619
- <div class="method item private">
1620
- <div id="method__initTestsAndHinting" class="title">
1621
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l201"><code>lib&#x2F;broccoli&#x2F;ember-app.js:201</code></a></span>
1622
- <h3 class="">
1623
- private
1624
-
1625
-
1626
- _initTestsAndHinting(options)
1627
- </h3>
1628
- </div>
1629
-
1630
-
1631
-
1632
- <div class="method-description"><p>Initializes the <code>tests</code> and <code>hinting</code> properties.</p>
1633
- <p>Defaults to <code>false</code> unless <code>ember test</code> was used or this is <em>not</em> a production build.</p>
1634
- </div>
1635
-
1636
- <div class="params">
1637
- <h4>Parameters:</h4>
1638
- <table>
1639
- <thead>
1640
- <tr>
1641
- <th>Name</th>
1642
- <th>Type</th>
1643
- <th>Attribute</th>
1644
- <th>Description</th>
1645
- </tr>
1646
- </thead>
1647
- <tbody>
1648
- <tr>
1649
- <td>options</td>
1650
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
1651
- <td>
1652
- <ul>
1653
-
1654
-
1655
-
1656
- </ul>
1657
- </td>
1658
- <td></td>
1659
- </tr>
1660
-
1661
- </tbody>
1662
- </table>
1663
- </div>
1664
-
1665
-
1666
-
1667
- </div>
1668
- <div class="method item private">
1669
- <div id="method__initVendorFiles" class="title">
1670
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l436"><code>lib&#x2F;broccoli&#x2F;ember-app.js:436</code></a></span>
1671
- <h3 class="">
1672
- private
1673
-
1674
-
1675
- _initVendorFiles( )
1676
- </h3>
1677
- </div>
1678
-
1679
-
1680
-
1681
- <div class="method-description"></div>
1682
-
1683
-
1684
-
1685
-
1686
- </div>
1687
- <div class="method item private">
1688
- <div id="method__notifyAddonIncluded" class="title">
1689
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l660"><code>lib&#x2F;broccoli&#x2F;ember-app.js:660</code></a></span>
1690
- <h3 class="">
1691
- private
1692
-
1693
-
1694
- _notifyAddonIncluded( )
1695
- </h3>
1696
- </div>
1697
-
1698
-
1699
-
1700
- <div class="method-description"><p>Calls the included hook on addons.</p>
1701
- </div>
1702
-
1703
-
1704
-
1705
-
1706
- </div>
1707
- <div class="method item private">
1708
- <div id="method__podTemplatePatterns" class="title">
1709
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l1148"><code>lib&#x2F;broccoli&#x2F;ember-app.js:1148</code></a></span>
1710
- <h3 class="">
1711
- private
1712
-
1713
-
1714
- _podTemplatePatterns( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
1715
- </h3>
1716
- </div>
1717
-
1718
-
1719
-
1720
- <div class="method-description"></div>
1721
-
1722
-
1723
- <div class="return">
1724
- <h4>Return:</h4>
1725
- <div>
1726
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
1727
- <span class="return-description"><p>An array of regular expressions.</p>
1728
- </span>
1729
- </div>
1730
- </div>
1731
-
1732
-
1733
- </div>
1734
- <div class="method item private">
1735
- <div id="method__resolveLocal" class="title">
1736
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l426"><code>lib&#x2F;broccoli&#x2F;ember-app.js:426</code></a></span>
1737
- <h3 class="">
1738
- private
1739
-
1740
-
1741
- _resolveLocal( )
1742
- </h3>
1743
- </div>
1744
-
1745
-
1746
-
1747
- <div class="method-description"><p>Resolves a path relative to the project's root</p>
1748
- </div>
1749
-
1750
-
1751
-
1752
-
1753
- </div>
1754
- <div class="method item private">
1755
- <div id="method_addonLintTree" class="title">
1756
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l948"><code>lib&#x2F;broccoli&#x2F;ember-app.js:948</code></a></span>
1757
- <h3 class="">
1758
- private
1759
-
1760
-
1761
- addonLintTree(type, tree): Tree
1762
- </h3>
1763
- </div>
1764
-
1765
-
1766
-
1767
- <div class="method-description"><p>Runs addon lintTree hooks and returns a single tree containing all
1768
- their output.</p>
1769
- </div>
1770
-
1771
- <div class="params">
1772
- <h4>Parameters:</h4>
1773
- <table>
1774
- <thead>
1775
- <tr>
1776
- <th>Name</th>
1777
- <th>Type</th>
1778
- <th>Attribute</th>
1779
- <th>Description</th>
1780
- </tr>
1781
- </thead>
1782
- <tbody>
1783
- <tr>
1784
- <td>type</td>
1785
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1786
- <td>
1787
- <ul>
1788
-
1789
-
1790
-
1791
- </ul>
1792
- </td>
1793
- <td><p>Type of tree</p>
1794
- </td>
1795
- </tr>
1796
-
1797
- <tr>
1798
- <td>tree</td>
1799
- <td>Tree</td>
1800
- <td>
1801
- <ul>
1802
-
1803
-
1804
-
1805
- </ul>
1806
- </td>
1807
- <td><p>Tree to process</p>
1808
- </td>
1809
- </tr>
1810
-
1811
- </tbody>
1812
- </table>
1813
- </div>
1814
-
1815
- <div class="return">
1816
- <h4>Return:</h4>
1817
- <div>
1818
- <span class="return-type">Tree</span>
1819
- <span class="return-description"><p>Processed tree</p>
1820
- </span>
1821
- </div>
1822
- </div>
1823
-
1824
-
1825
- </div>
1826
- <div class="method item private">
1827
- <div id="method_addonPostprocessTree" class="title">
1828
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l875"><code>lib&#x2F;broccoli&#x2F;ember-app.js:875</code></a></span>
1829
- <h3 class="">
1830
- private
1831
-
1832
-
1833
- addonPostprocessTree(type, tree): Tree
1834
- </h3>
1835
- </div>
1836
-
1837
-
1838
-
1839
- <div class="method-description"><p>Runs addon post-processing on a given tree and returns the processed tree.</p>
1840
- <p>This enables addons to do process immediately <strong>after</strong> the preprocessor for a
1841
- given type is run, but before concatenation occurs. If an addon wishes to
1842
- apply a transform before the preprocessors run, they can instead implement the
1843
- preprocessTree hook.</p>
1844
- <p>To utilize this addons implement <code>postprocessTree</code> hook.</p>
1845
- <p>An example, would be to apply some broccoli transform on all JS files, but
1846
- only after the existing pre-processors have run.</p>
1847
- <pre class="code prettyprint"><code class="language-js">module.exports = {
1848
- name: 'my-cool-addon',
1849
- postprocessTree(type, tree) {
1850
- if (type === 'js') {
1851
- return someBroccoliTransform(tree);
1852
- }
1853
-
1854
- return tree;
1855
- }
1856
- }
1857
-
1858
- </code></pre>
1859
- </div>
1860
-
1861
- <div class="params">
1862
- <h4>Parameters:</h4>
1863
- <table>
1864
- <thead>
1865
- <tr>
1866
- <th>Name</th>
1867
- <th>Type</th>
1868
- <th>Attribute</th>
1869
- <th>Description</th>
1870
- </tr>
1871
- </thead>
1872
- <tbody>
1873
- <tr>
1874
- <td>type</td>
1875
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1876
- <td>
1877
- <ul>
1878
-
1879
-
1880
-
1881
- </ul>
1882
- </td>
1883
- <td><p>Type of tree</p>
1884
- </td>
1885
- </tr>
1886
-
1887
- <tr>
1888
- <td>tree</td>
1889
- <td>Tree</td>
1890
- <td>
1891
- <ul>
1892
-
1893
-
1894
-
1895
- </ul>
1896
- </td>
1897
- <td><p>Tree to process</p>
1898
- </td>
1899
- </tr>
1900
-
1901
- </tbody>
1902
- </table>
1903
- </div>
1904
-
1905
- <div class="return">
1906
- <h4>Return:</h4>
1907
- <div>
1908
- <span class="return-type">Tree</span>
1909
- <span class="return-description"><p>Processed tree</p>
1910
- </span>
1911
- </div>
1912
- </div>
1913
-
1914
-
1915
- </div>
1916
- <div class="method item private">
1917
- <div id="method_addonPreprocessTree" class="title">
1918
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l912"><code>lib&#x2F;broccoli&#x2F;ember-app.js:912</code></a></span>
1919
- <h3 class="">
1920
- private
1921
-
1922
-
1923
- addonPreprocessTree(type, tree): Tree
1924
- </h3>
1925
- </div>
1926
-
1927
-
1928
-
1929
- <div class="method-description"><p>Runs addon pre-processing on a given tree and returns the processed tree.</p>
1930
- <p>This enables addons to do process immediately <strong>before</strong> the preprocessor for a
1931
- given type is run. If an addon wishes to apply a transform after the
1932
- preprocessors run, they can instead implement the postprocessTree hook.</p>
1933
- <p>To utilize this addons implement <code>preprocessTree</code> hook.</p>
1934
- <p>An example, would be to remove some set of files before the preprocessors run.</p>
1935
- <pre class="code prettyprint"><code class="language-js">var stew = require('broccoli-stew');
1936
-
1937
- module.exports = {
1938
- name: 'my-cool-addon',
1939
- preprocessTree(type, tree) {
1940
- if (type === 'js' &amp;&amp; type === 'template') {
1941
- return stew.rm(tree, someGlobPattern);
1942
- }
1943
-
1944
- return tree;
1945
- }
1946
- }
1947
- </code></pre>
1948
- </div>
1949
-
1950
- <div class="params">
1951
- <h4>Parameters:</h4>
1952
- <table>
1953
- <thead>
1954
- <tr>
1955
- <th>Name</th>
1956
- <th>Type</th>
1957
- <th>Attribute</th>
1958
- <th>Description</th>
1959
- </tr>
1960
- </thead>
1961
- <tbody>
1962
- <tr>
1963
- <td>type</td>
1964
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1965
- <td>
1966
- <ul>
1967
-
1968
-
1969
-
1970
- </ul>
1971
- </td>
1972
- <td><p>Type of tree</p>
1973
- </td>
1974
- </tr>
1975
-
1976
- <tr>
1977
- <td>tree</td>
1978
- <td>Tree</td>
1979
- <td>
1980
- <ul>
1981
-
1982
-
1983
-
1984
- </ul>
1985
- </td>
1986
- <td><p>Tree to process</p>
1987
- </td>
1988
- </tr>
1989
-
1990
- </tbody>
1991
- </table>
1992
- </div>
1993
-
1994
- <div class="return">
1995
- <h4>Return:</h4>
1996
- <div>
1997
- <span class="return-type">Tree</span>
1998
- <span class="return-description"><p>Processed tree</p>
1999
- </span>
2000
- </div>
2001
- </div>
2002
-
2003
-
2004
- </div>
2005
- <div class="method item private">
2006
- <div id="method_addonTreesFor" class="title">
2007
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l776"><code>lib&#x2F;broccoli&#x2F;ember-app.js:776</code></a></span>
2008
- <h3 class="">
2009
- private
2010
-
2011
-
2012
- addonTreesFor(type): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
2013
- </h3>
2014
- </div>
2015
-
2016
-
2017
-
2018
- <div class="method-description"><p>Returns a list of trees for a given type, returned by all addons.</p>
2019
- </div>
2020
-
2021
- <div class="params">
2022
- <h4>Parameters:</h4>
2023
- <table>
2024
- <thead>
2025
- <tr>
2026
- <th>Name</th>
2027
- <th>Type</th>
2028
- <th>Attribute</th>
2029
- <th>Description</th>
2030
- </tr>
2031
- </thead>
2032
- <tbody>
2033
- <tr>
2034
- <td>type</td>
2035
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
2036
- <td>
2037
- <ul>
2038
-
2039
-
2040
-
2041
- </ul>
2042
- </td>
2043
- <td><p>Type of tree</p>
2044
- </td>
2045
- </tr>
2046
-
2047
- </tbody>
2048
- </table>
2049
- </div>
2050
-
2051
- <div class="return">
2052
- <h4>Return:</h4>
2053
- <div>
2054
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
2055
- <span class="return-description"><p>List of trees</p>
2056
- </span>
2057
- </div>
2058
- </div>
2059
-
2060
-
2061
- </div>
2062
- <div class="method item private">
2063
- <div id="method_getLintTests" class="title">
2064
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l1363"><code>lib&#x2F;broccoli&#x2F;ember-app.js:1363</code></a></span>
2065
- <h3 class="">
2066
- private
2067
-
2068
-
2069
- getLintTests( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
2070
- </h3>
2071
- </div>
2072
-
2073
-
2074
-
2075
- <div class="method-description"><p>Runs the <code>app</code>, <code>tests</code> and <code>templates</code> trees through the chain of addons that produces lint trees.</p>
2076
- <p>Those lint trees are afterwards funneled into the <code>tests</code> folder, babel-ified and returned as an array.</p>
2077
- </div>
2078
-
2079
-
2080
- <div class="return">
2081
- <h4>Return:</h4>
2082
- <div>
2083
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
2084
- <span class="return-description"></span>
2085
- </div>
2086
- </div>
2087
-
2088
-
2089
- </div>
2090
- <div class="method item private">
2091
- <div id="method_initializeAddons" class="title">
2092
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l749"><code>lib&#x2F;broccoli&#x2F;ember-app.js:749</code></a></span>
2093
- <h3 class="">
2094
- private
2095
-
2096
-
2097
- initializeAddons( )
2098
- </h3>
2099
- </div>
2100
-
2101
-
2102
-
2103
- <div class="method-description"><p>Loads and initializes addons for this project.
2104
- Calls initializeAddons on the Project.</p>
2105
- </div>
2106
-
2107
-
2108
-
2109
-
2110
- </div>
2111
- <div class="method item private">
2112
- <div id="method_populateLegacyFiles" class="title">
2113
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l967"><code>lib&#x2F;broccoli&#x2F;ember-app.js:967</code></a></span>
2114
- <h3 class="">
2115
- private
2116
-
2117
-
2118
- populateLegacyFiles( )
2119
- </h3>
2120
- </div>
2121
-
2122
-
2123
-
2124
- <div class="method-description"><p>Imports legacy imports in this.vendorFiles</p>
2125
- </div>
2126
-
2127
-
2128
-
2129
-
2130
- </div>
2131
- <div class="method item private">
2132
- <div id="method_shouldIncludeAddon" class="title">
2133
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l644"><code>lib&#x2F;broccoli&#x2F;ember-app.js:644</code></a></span>
2134
- <h3 class="">
2135
- private
2136
-
2137
-
2138
- shouldIncludeAddon(addon): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
2139
- </h3>
2140
- </div>
2141
-
2142
-
2143
-
2144
- <div class="method-description"><p>Returns whether an addon should be added to the project</p>
2145
- </div>
2146
-
2147
- <div class="params">
2148
- <h4>Parameters:</h4>
2149
- <table>
2150
- <thead>
2151
- <tr>
2152
- <th>Name</th>
2153
- <th>Type</th>
2154
- <th>Attribute</th>
2155
- <th>Description</th>
2156
- </tr>
2157
- </thead>
2158
- <tbody>
2159
- <tr>
2160
- <td>addon</td>
2161
- <td><a href="../classes/Addon.html" class="crosslink">Addon</a></td>
2162
- <td>
2163
- <ul>
2164
-
2165
-
2166
-
2167
- </ul>
2168
- </td>
2169
- <td></td>
2170
- </tr>
2171
-
2172
- </tbody>
2173
- </table>
2174
- </div>
2175
-
2176
- <div class="return">
2177
- <h4>Return:</h4>
2178
- <div>
2179
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2180
- <span class="return-description"></span>
2181
- </div>
2182
- </div>
2183
-
2184
-
2185
- </div>
2186
- <div class="method item private">
2187
- <div id="method_toArray" class="title">
2188
- <span class="source-link"><a href="../files/lib_broccoli_ember-app.js.html#l1594"><code>lib&#x2F;broccoli&#x2F;ember-app.js:1594</code></a></span>
2189
- <h3 class="">
2190
- private
2191
-
2192
-
2193
- toArray( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
2194
- </h3>
2195
- </div>
2196
-
2197
-
2198
-
2199
- <div class="method-description"><p>Returns an array of trees for this application</p>
2200
- </div>
2201
-
2202
-
2203
- <div class="return">
2204
- <h4>Return:</h4>
2205
- <div>
2206
- <span class="return-type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
2207
- <span class="return-description"><p>An array of trees</p>
2208
- </span>
2209
- </div>
2210
- </div>
2211
-
2212
-
2213
- </div>
2214
- </div>
2215
-
2216
-
2217
- </div>
2218
- </div>
2219
- </div>
2220
- </div>
2221
- <script src="../assets/vendor/prettify/prettify-min.js"></script>
2222
- <script>prettyPrint();</script>
2223
- <script src="../assets/js/yui-prettify.js"></script>
2224
- </body>
2225
- </html>