ember-cli 4.0.0-beta.2 → 4.1.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.
Files changed (114) hide show
  1. package/.github/workflows/ci.yml +5 -5
  2. package/CHANGELOG.md +48 -3
  3. package/blueprints/addon/additional-dev-dependencies.json +2 -2
  4. package/blueprints/addon/files/.github/workflows/ci.yml +5 -1
  5. package/blueprints/addon/files/.travis.yml +1 -1
  6. package/blueprints/addon/files/README.md +2 -2
  7. package/blueprints/addon/files/addon-config/ember-try.js +4 -4
  8. package/blueprints/app/files/.github/workflows/ci.yml +4 -0
  9. package/blueprints/app/files/package.json +17 -17
  10. package/docs/build/data.json +3 -3
  11. package/lib/commands/init.js +9 -1
  12. package/lib/models/host-info-cache.js +3 -5
  13. package/lib/models/per-bundle-addon-cache/index.js +2 -3
  14. package/lib/utilities/get-lang-arg.js +45 -45
  15. package/package.json +25 -25
  16. package/.github/ISSUE_TEMPLATE.md +0 -12
  17. package/.github/dependabot.yml +0 -15
  18. package/.github/workflows/coverage.yml +0 -31
  19. package/docs/analytics.md +0 -44
  20. package/docs/architecture.md +0 -316
  21. package/docs/assets/architecture/Ember-CLI architecture.png +0 -0
  22. package/docs/assets/architecture/Ember-CLI architecture.xml +0 -1
  23. package/docs/assets/architecture/README.md +0 -5
  24. package/docs/brocfile-transition.md +0 -46
  25. package/docs/build/api.js +0 -44
  26. package/docs/build/assets/css/external-small.png +0 -0
  27. package/docs/build/assets/css/logo.png +0 -0
  28. package/docs/build/assets/css/main.css +0 -555
  29. package/docs/build/assets/favicon.ico +0 -0
  30. package/docs/build/assets/img/spinner.gif +0 -0
  31. package/docs/build/assets/index.html +0 -10
  32. package/docs/build/assets/js/api-filter.js +0 -56
  33. package/docs/build/assets/js/api-list.js +0 -255
  34. package/docs/build/assets/js/api-search.js +0 -98
  35. package/docs/build/assets/js/apidocs.js +0 -376
  36. package/docs/build/assets/js/yui-prettify.js +0 -17
  37. package/docs/build/assets/vendor/prettify/CHANGES.html +0 -130
  38. package/docs/build/assets/vendor/prettify/COPYING +0 -202
  39. package/docs/build/assets/vendor/prettify/README.html +0 -203
  40. package/docs/build/assets/vendor/prettify/prettify-min.css +0 -1
  41. package/docs/build/assets/vendor/prettify/prettify-min.js +0 -1
  42. package/docs/build/classes/Addon.html +0 -4318
  43. package/docs/build/classes/AmdTransformAddon.html +0 -202
  44. package/docs/build/classes/Blueprint.html +0 -4796
  45. package/docs/build/classes/Builder.html +0 -611
  46. package/docs/build/classes/CLI.html +0 -810
  47. package/docs/build/classes/Command.html +0 -1655
  48. package/docs/build/classes/DefaultPackager.html +0 -202
  49. package/docs/build/classes/EmberAddon.html +0 -2207
  50. package/docs/build/classes/EmberApp.html +0 -2225
  51. package/docs/build/classes/HardwareInfo.html +0 -620
  52. package/docs/build/classes/HistorySupportAddon.html +0 -203
  53. package/docs/build/classes/Instrumentation.html +0 -695
  54. package/docs/build/classes/NodeModulesList.html +0 -460
  55. package/docs/build/classes/NpmTask.html +0 -333
  56. package/docs/build/classes/PackageInfo.html +0 -1390
  57. package/docs/build/classes/PackageInfoCache.html +0 -963
  58. package/docs/build/classes/PerBundleAddonCache {.html +0 -1010
  59. package/docs/build/classes/Project.html +0 -2083
  60. package/docs/build/classes/ServeFilesAddon.html +0 -260
  61. package/docs/build/classes/TestsServerAddon.html +0 -203
  62. package/docs/build/classes/WatcherAddon.html +0 -204
  63. package/docs/build/classes/WindowsSymlinkChecker.html +0 -1505
  64. package/docs/build/files/lib_broccoli_default-packager.js.html +0 -1426
  65. package/docs/build/files/lib_broccoli_ember-addon.js.html +0 -159
  66. package/docs/build/files/lib_broccoli_ember-app.js.html +0 -1913
  67. package/docs/build/files/lib_cli_cli.js.html +0 -417
  68. package/docs/build/files/lib_models_addon-info.js.html +0 -112
  69. package/docs/build/files/lib_models_addon.js.html +0 -1866
  70. package/docs/build/files/lib_models_blueprint.js.html +0 -1678
  71. package/docs/build/files/lib_models_builder.js.html +0 -417
  72. package/docs/build/files/lib_models_command.js.html +0 -804
  73. package/docs/build/files/lib_models_hardware-info.js.html +0 -479
  74. package/docs/build/files/lib_models_host-info-cache.js.html +0 -428
  75. package/docs/build/files/lib_models_installation-checker.js.html +0 -181
  76. package/docs/build/files/lib_models_instantiate-addons.js.html +0 -191
  77. package/docs/build/files/lib_models_instrumentation.js.html +0 -433
  78. package/docs/build/files/lib_models_package-info-cache_index.js.html +0 -793
  79. package/docs/build/files/lib_models_package-info-cache_node-modules-list.js.html +0 -208
  80. package/docs/build/files/lib_models_package-info-cache_package-info.js.html +0 -661
  81. package/docs/build/files/lib_models_per-bundle-addon-cache_addon-proxy.js.html +0 -252
  82. package/docs/build/files/lib_models_per-bundle-addon-cache_index.js.html +0 -485
  83. package/docs/build/files/lib_models_per-bundle-addon-cache_target-instance.js.html +0 -108
  84. package/docs/build/files/lib_models_project.js.html +0 -913
  85. package/docs/build/files/lib_models_task.js.html +0 -117
  86. package/docs/build/files/lib_tasks_build-watch.js.html +0 -157
  87. package/docs/build/files/lib_tasks_npm-task.js.html +0 -463
  88. package/docs/build/files/lib_tasks_serve.js.html +0 -207
  89. package/docs/build/files/lib_tasks_server_middleware_broccoli-serve-files_index.js.html +0 -127
  90. package/docs/build/files/lib_tasks_server_middleware_broccoli-watcher_index.js.html +0 -158
  91. package/docs/build/files/lib_tasks_server_middleware_history-support_index.js.html +0 -181
  92. package/docs/build/files/lib_tasks_server_middleware_tests-server_index.js.html +0 -171
  93. package/docs/build/files/lib_tasks_test-server.js.html +0 -167
  94. package/docs/build/files/lib_tasks_transforms_amd_index.js.html +0 -143
  95. package/docs/build/files/lib_utilities_ember-app-utils.js.html +0 -292
  96. package/docs/build/files/lib_utilities_insert-into-file.js.html +0 -219
  97. package/docs/build/files/lib_utilities_is-lazy-engine.js.html +0 -125
  98. package/docs/build/files/lib_utilities_is-yarn-project.js.html +0 -120
  99. package/docs/build/files/lib_utilities_valid-project-name.js.html +0 -142
  100. package/docs/build/files/lib_utilities_will-interrupt-process.js.html +0 -290
  101. package/docs/build/files/lib_utilities_windows-admin.js.html +0 -230
  102. package/docs/build/index.html +0 -125
  103. package/docs/build/modules/ember-cli.html +0 -152
  104. package/docs/build/modules/is-lazy-engine.html +0 -106
  105. package/docs/build-concurrency.md +0 -15
  106. package/docs/build-pipeline-debugging.md +0 -33
  107. package/docs/code-coverage.md +0 -14
  108. package/docs/error-propagation.md +0 -136
  109. package/docs/experiments.md +0 -53
  110. package/docs/node-support.md +0 -43
  111. package/docs/perf-guide.md +0 -250
  112. package/docs/project_version_preprocessor.js +0 -8
  113. package/docs/sourcemaps.md +0 -60
  114. package/docs/yuidoc.json +0 -13
@@ -1,2083 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>Project - 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">Project</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
- <div><a href="#property-summary">Property Summary</a></div>
79
-
80
- <div><a href="#method-summary">Method Summary</a></div>
81
-
82
-
83
-
84
-
85
- <div><a href="#static-public-methods">Static Public Methods</a></div>
86
- <ul>
87
- <li><a href="#method_getProjectRoot">getProjectRoot</a></li>
88
- </ul>
89
-
90
-
91
- <div><a href="#static-private-methods">Static Private Methods</a></div>
92
- <ul>
93
- <li><a href="#method_closestSync">closestSync</a></li>
94
- <li><a href="#method_projectOrnullProject">projectOrnullProject</a></li>
95
- </ul>
96
-
97
- <div><a href="#public-constructors">Public Constructors</a></div>
98
- <ul>
99
- <li><a href="#method_Project">Project</a></li>
100
- </ul>
101
-
102
-
103
-
104
- <div><a href="#public-properties">Public Properties</a></div>
105
- <ul>
106
- <li><a href="#props_targets">targets</a></li>
107
- </ul>
108
-
109
-
110
- <div><a href="#private-properties">Private Properties</a></div>
111
- <ul>
112
- <li><a href="#props__watchmanInfo">_watchmanInfo</a></li>
113
- </ul>
114
-
115
- <div><a href="#public-methods">Public Methods</a></div>
116
- <ul>
117
- <li><a href="#method_config">config</a></li>
118
- <li><a href="#method_findAddonByName">findAddonByName</a></li>
119
- <li><a href="#method_generateTestFile">generateTestFile</a></li>
120
- <li><a href="#method_isEmberCLIAddon">isEmberCLIAddon</a></li>
121
- <li><a href="#method_require">require</a></li>
122
- </ul>
123
-
124
-
125
- <div><a href="#private-methods">Private Methods</a></div>
126
- <ul>
127
- <li><a href="#method_addonBlueprintLookupPaths">addonBlueprintLookupPaths</a></li>
128
- <li><a href="#method_addonCommands">addonCommands</a></li>
129
- <li><a href="#method_blueprintLookupPaths">blueprintLookupPaths</a></li>
130
- <li><a href="#method_bowerDependencies">bowerDependencies</a></li>
131
- <li><a href="#method_configPath">configPath</a></li>
132
- <li><a href="#method_configWithoutCache">configWithoutCache</a></li>
133
- <li><a href="#method_dependencies">dependencies</a></li>
134
- <li><a href="#method_discoverAddons">discoverAddons</a></li>
135
- <li><a href="#method_eachAddonCommand">eachAddonCommand</a></li>
136
- <li><a href="#method_getAddonsConfig">getAddonsConfig</a></li>
137
- <li><a href="#method_has">has</a></li>
138
- <li><a href="#method_initializeAddons">initializeAddons</a></li>
139
- <li><a href="#method_isEmberCLIProject">isEmberCLIProject</a></li>
140
- <li><a href="#method_localBlueprintLookupPath">localBlueprintLookupPath</a></li>
141
- <li><a href="#method_name">name</a></li>
142
- <li><a href="#method_reloadAddons">reloadAddons</a></li>
143
- <li><a href="#method_reloadPkg">reloadPkg</a></li>
144
- <li><a href="#method_resolveSync">resolveSync</a></li>
145
- <li><a href="#method_setupBowerDirectory">setupBowerDirectory</a></li>
146
- <li><a href="#method_supportedInternalAddonPaths">supportedInternalAddonPaths</a></li>
147
- </ul>
148
- </div>
149
- </div>
150
-
151
-
152
-
153
- <div class="version-info">
154
- Version: 4.0.0-beta.2-beta-6d064ff49f
155
- </div>
156
-
157
- </div>
158
-
159
- <div id="main" class="yui3-u">
160
- <div class="content"><div class="title">
161
- <span class="source-link"><a href="../files/lib_models_project.js.html#l28"><code>lib&#x2F;models&#x2F;project.js:28</code></a></span>
162
- <h1 class="class-name">Project</h1>
163
- </div>
164
-
165
-
166
-
167
-
168
- <div class="class-description"><p>The Project model is tied to your package.json. It is instantiated
169
- by giving <a href="../classes/Project.html#method_closestSync" class="crosslink">closestSync</a>
170
- the path to your project.</p>
171
- </div>
172
-
173
- <h2 id="static-method-summary">Static Method Summary</h2>
174
-
175
- <table class="summary">
176
- <thead>
177
- <tr>
178
- <th colspan="2">Static Public Methods</th>
179
- </tr>
180
- </thead>
181
- <tbody>
182
- <tr>
183
- <td>
184
- public
185
- static
186
-
187
- </td>
188
- <td>
189
- <div class="method-name ">
190
- <a href="#method_getProjectRoot">getProjectRoot</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
191
- </div>
192
- <div class="short-description">
193
- <p>Returns the project root based on the first package.json that is found</p>
194
- </div>
195
- </td>
196
- </tr>
197
- </tbody>
198
- </table>
199
-
200
-
201
- <table class="summary">
202
- <thead>
203
- <tr>
204
- <th colspan="2">Static Private Methods</th>
205
- </tr>
206
- </thead>
207
- <tbody>
208
- <tr>
209
- <td>
210
- private
211
- static
212
-
213
- </td>
214
- <td>
215
- <div class="method-name ">
216
- <a href="#method_closestSync">closestSync</a>(pathName, _ui): <a href="../classes/Project.html" class="crosslink">Project</a>
217
- </div>
218
- <div class="short-description">
219
- <p>Returns a new project based on the first <code>package.json</code> that is found in <code>pathName</code>.</p>
220
- </div>
221
- </td>
222
- </tr>
223
- <tr>
224
- <td>
225
- private
226
- static
227
-
228
- </td>
229
- <td>
230
- <div class="method-name ">
231
- <a href="#method_projectOrnullProject">projectOrnullProject</a>(_ui): <a href="../classes/Project.html" class="crosslink">Project</a>
232
- </div>
233
- <div class="short-description">
234
- <p>Returns a new project based on the first package.json that is found in <code>pathName</code>, or the nullProject.</p>
235
- </div>
236
- </td>
237
- </tr>
238
- </tbody>
239
- </table>
240
-
241
-
242
-
243
- <h2 id="constructor-summary">Constructor Summary</h2>
244
-
245
- <table class="summary">
246
- <thead>
247
- <tr>
248
- <th colspan="2">Public Constructors</th>
249
- </tr>
250
- </thead>
251
- <tbody>
252
- <tr>
253
- <td>
254
- public
255
-
256
-
257
- </td>
258
- <td>
259
- <div class="method-name ">
260
- <a href="#method_Project">Project</a>(root, pkg, ui, cli)
261
- </div>
262
- <div class="short-description">
263
- <p>The Project model is tied to your package.json. It is instantiated by giving <a href="../classes/Project.html#method_closestSync" class="crosslink">closestSync</a> the path to your project.</p>
264
- </div>
265
- </td>
266
- </tr>
267
- </tbody>
268
- </table>
269
-
270
-
271
-
272
-
273
-
274
- <h2 id="property-summary">Property Summary</h2>
275
-
276
- <table class="summary">
277
- <thead>
278
- <tr>
279
- <th colspan="2">Public Properties</th>
280
- </tr>
281
- </thead>
282
- <tbody>
283
- <tr>
284
- <td>
285
- public
286
-
287
-
288
- </td>
289
- <td>
290
- <div class="property-name ">
291
- <a href="#props_targets">targets</a>: Unknown
292
- </div>
293
- <div class="short-description">
294
- <p>Returns the targets of this project, or the default targets if not present.</p>
295
- </div>
296
- </td>
297
- </tr>
298
- </tbody>
299
- </table>
300
-
301
-
302
- <table class="summary">
303
- <thead>
304
- <tr>
305
- <th colspan="2">Private Properties</th>
306
- </tr>
307
- </thead>
308
- <tbody>
309
- <tr>
310
- <td>
311
- private
312
-
313
-
314
- </td>
315
- <td>
316
- <div class="property-name ">
317
- <a href="#props__watchmanInfo">_watchmanInfo</a>: Unknown
318
- </div>
319
- <div class="short-description">
320
- <p>Set when the <code>Watcher.detectWatchman</code> helper method finishes running, so that other areas of the system can be aware that watchman is being used.</p>
321
- </div>
322
- </td>
323
- </tr>
324
- </tbody>
325
- </table>
326
-
327
- <h2 id="method-summary">Method Summary</h2>
328
-
329
- <table class="summary">
330
- <thead>
331
- <tr>
332
- <th colspan="2">Public Methods</th>
333
- </tr>
334
- </thead>
335
- <tbody>
336
- <tr>
337
- <td>
338
- public
339
-
340
-
341
- </td>
342
- <td>
343
- <div class="method-name ">
344
- <a href="#method_config">config</a>(env): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
345
- </div>
346
- <div class="short-description">
347
- <p>Loads the configuration for this project and its addons.</p>
348
- </div>
349
- </td>
350
- </tr>
351
- <tr>
352
- <td>
353
- public
354
-
355
-
356
- </td>
357
- <td>
358
- <div class="method-name ">
359
- <a href="#method_findAddonByName">findAddonByName</a>(name): <a href="../classes/Addon.html" class="crosslink">Addon</a>
360
- </div>
361
- <div class="short-description">
362
- <p>Find an addon by its name</p>
363
- </div>
364
- </td>
365
- </tr>
366
- <tr>
367
- <td>
368
- public
369
-
370
-
371
- </td>
372
- <td>
373
- <div class="method-name ">
374
- <a href="#method_generateTestFile">generateTestFile</a>(moduleName, tests): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
375
- </div>
376
- <div class="short-description">
377
- <p>Generate test file contents.</p>
378
- </div>
379
- </td>
380
- </tr>
381
- <tr>
382
- <td>
383
- public
384
-
385
-
386
- </td>
387
- <td>
388
- <div class="method-name ">
389
- <a href="#method_isEmberCLIAddon">isEmberCLIAddon</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
390
- </div>
391
- <div class="short-description">
392
- <p>Returns whether or not this is an Ember CLI addon.</p>
393
- </div>
394
- </td>
395
- </tr>
396
- <tr>
397
- <td>
398
- public
399
-
400
-
401
- </td>
402
- <td>
403
- <div class="method-name ">
404
- <a href="#method_require">require</a>(file): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
405
- </div>
406
- <div class="short-description">
407
- <p>Calls <code>require</code> on a given module from the context of the project. For instance, an addon may want to require a class from the root project's version of ember-cli.</p>
408
- </div>
409
- </td>
410
- </tr>
411
- </tbody>
412
- </table>
413
-
414
-
415
- <table class="summary">
416
- <thead>
417
- <tr>
418
- <th colspan="2">Private Methods</th>
419
- </tr>
420
- </thead>
421
- <tbody>
422
- <tr>
423
- <td>
424
- private
425
-
426
-
427
- </td>
428
- <td>
429
- <div class="method-name ">
430
- <a href="#method_addonBlueprintLookupPaths">addonBlueprintLookupPaths</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
431
- </div>
432
- <div class="short-description">
433
- <p>Returns a list of addon paths where blueprints will be looked up.</p>
434
- </div>
435
- </td>
436
- </tr>
437
- <tr>
438
- <td>
439
- private
440
-
441
-
442
- </td>
443
- <td>
444
- <div class="method-name ">
445
- <a href="#method_addonCommands">addonCommands</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
446
- </div>
447
- <div class="short-description">
448
- <p>Returns what commands are made available by addons by inspecting <code>includedCommands</code> for every addon.</p>
449
- </div>
450
- </td>
451
- </tr>
452
- <tr>
453
- <td>
454
- private
455
-
456
-
457
- </td>
458
- <td>
459
- <div class="method-name ">
460
- <a href="#method_blueprintLookupPaths">blueprintLookupPaths</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
461
- </div>
462
- <div class="short-description">
463
- <p>Returns a list of paths (including addon paths) where blueprints will be looked up.</p>
464
- </div>
465
- </td>
466
- </tr>
467
- <tr>
468
- <td>
469
- private
470
-
471
-
472
- </td>
473
- <td>
474
- <div class="method-name ">
475
- <a href="#method_bowerDependencies">bowerDependencies</a>(bower): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
476
- </div>
477
- <div class="short-description">
478
- <p>Returns the bower dependencies for this project.</p>
479
- </div>
480
- </td>
481
- </tr>
482
- <tr>
483
- <td>
484
- private
485
-
486
-
487
- </td>
488
- <td>
489
- <div class="method-name ">
490
- <a href="#method_configPath">configPath</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
491
- </div>
492
- <div class="short-description">
493
- <p>Returns the path to the configuration.</p>
494
- </div>
495
- </td>
496
- </tr>
497
- <tr>
498
- <td>
499
- private
500
-
501
-
502
- </td>
503
- <td>
504
- <div class="method-name ">
505
- <a href="#method_configWithoutCache">configWithoutCache</a>(env): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
506
- </div>
507
- <div class="short-description">
508
-
509
- </div>
510
- </td>
511
- </tr>
512
- <tr>
513
- <td>
514
- private
515
-
516
-
517
- </td>
518
- <td>
519
- <div class="method-name ">
520
- <a href="#method_dependencies">dependencies</a>([pkg=this.pkg], [excludeDevDeps=false]): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
521
- </div>
522
- <div class="short-description">
523
- <p>Returns the dependencies from a package.json</p>
524
- </div>
525
- </td>
526
- </tr>
527
- <tr>
528
- <td>
529
- private
530
-
531
-
532
- </td>
533
- <td>
534
- <div class="method-name ">
535
- <a href="#method_discoverAddons">discoverAddons</a>( )
536
- </div>
537
- <div class="short-description">
538
- <p>Discovers all addons for this project and stores their names and package.json contents in this.addonPackages as key-value pairs.</p>
539
- </div>
540
- </td>
541
- </tr>
542
- <tr>
543
- <td>
544
- private
545
-
546
-
547
- </td>
548
- <td>
549
- <div class="method-name ">
550
- <a href="#method_eachAddonCommand">eachAddonCommand</a>(callback)
551
- </div>
552
- <div class="short-description">
553
- <p>Execute a given callback for every addon command. Example:</p>
554
- </div>
555
- </td>
556
- </tr>
557
- <tr>
558
- <td>
559
- private
560
-
561
-
562
- </td>
563
- <td>
564
- <div class="method-name ">
565
- <a href="#method_getAddonsConfig">getAddonsConfig</a>(env, appConfig): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
566
- </div>
567
- <div class="short-description">
568
- <p>Returns the addons configuration.</p>
569
- </div>
570
- </td>
571
- </tr>
572
- <tr>
573
- <td>
574
- private
575
-
576
-
577
- </td>
578
- <td>
579
- <div class="method-name ">
580
- <a href="#method_has">has</a>(file): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
581
- </div>
582
- <div class="short-description">
583
- <p>Returns whether or not the given file name is present in this project.</p>
584
- </div>
585
- </td>
586
- </tr>
587
- <tr>
588
- <td>
589
- private
590
-
591
-
592
- </td>
593
- <td>
594
- <div class="method-name ">
595
- <a href="#method_initializeAddons">initializeAddons</a>( )
596
- </div>
597
- <div class="short-description">
598
- <p>Loads and initializes all addons for this project.</p>
599
- </div>
600
- </td>
601
- </tr>
602
- <tr>
603
- <td>
604
- private
605
-
606
-
607
- </td>
608
- <td>
609
- <div class="method-name ">
610
- <a href="#method_isEmberCLIProject">isEmberCLIProject</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
611
- </div>
612
- <div class="short-description">
613
- <p>Returns whether or not this is an Ember CLI project. This checks whether ember-cli is listed in devDependencies.</p>
614
- </div>
615
- </td>
616
- </tr>
617
- <tr>
618
- <td>
619
- private
620
-
621
-
622
- </td>
623
- <td>
624
- <div class="method-name ">
625
- <a href="#method_localBlueprintLookupPath">localBlueprintLookupPath</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
626
- </div>
627
- <div class="short-description">
628
- <p>Path to the blueprints for this project.</p>
629
- </div>
630
- </td>
631
- </tr>
632
- <tr>
633
- <td>
634
- private
635
-
636
-
637
- </td>
638
- <td>
639
- <div class="method-name ">
640
- <a href="#method_name">name</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
641
- </div>
642
- <div class="short-description">
643
- <p>Returns the name from package.json.</p>
644
- </div>
645
- </td>
646
- </tr>
647
- <tr>
648
- <td>
649
- private
650
-
651
-
652
- </td>
653
- <td>
654
- <div class="method-name ">
655
- <a href="#method_reloadAddons">reloadAddons</a>( )
656
- </div>
657
- <div class="short-description">
658
- <p>Re-initializes addons.</p>
659
- </div>
660
- </td>
661
- </tr>
662
- <tr>
663
- <td>
664
- private
665
-
666
-
667
- </td>
668
- <td>
669
- <div class="method-name ">
670
- <a href="#method_reloadPkg">reloadPkg</a>( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
671
- </div>
672
- <div class="short-description">
673
- <p>Reloads package.json of the project. Clears and reloads the packageInfo and per-bundle addon cache, too.</p>
674
- </div>
675
- </td>
676
- </tr>
677
- <tr>
678
- <td>
679
- private
680
-
681
-
682
- </td>
683
- <td>
684
- <div class="method-name ">
685
- <a href="#method_resolveSync">resolveSync</a>(file): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
686
- </div>
687
- <div class="short-description">
688
- <p>Resolves the absolute path to a file synchronously</p>
689
- </div>
690
- </td>
691
- </tr>
692
- <tr>
693
- <td>
694
- private
695
-
696
-
697
- </td>
698
- <td>
699
- <div class="method-name ">
700
- <a href="#method_setupBowerDirectory">setupBowerDirectory</a>( )
701
- </div>
702
- <div class="short-description">
703
- <p>Sets the name of the bower directory for this project</p>
704
- </div>
705
- </td>
706
- </tr>
707
- <tr>
708
- <td>
709
- private
710
-
711
-
712
- </td>
713
- <td>
714
- <div class="method-name ">
715
- <a href="#method_supportedInternalAddonPaths">supportedInternalAddonPaths</a>( )
716
- </div>
717
- <div class="short-description">
718
- <p>Provides the list of paths to consult for addons that may be provided internally to this project. Used for middleware addons with built-in support.</p>
719
- </div>
720
- </td>
721
- </tr>
722
- </tbody>
723
- </table>
724
-
725
-
726
-
727
-
728
- <div id="methods public">
729
- <h2 id="static-public-methods">Static Public Methods</h2>
730
- <div class="method item">
731
- <div id="method_getProjectRoot" class="title">
732
- <span class="source-link"><a href="../files/lib_models_project.js.html#l734"><code>lib&#x2F;models&#x2F;project.js:734</code></a></span>
733
- <h3 class="">
734
- public
735
- static
736
-
737
- getProjectRoot( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
738
- </h3>
739
- </div>
740
-
741
-
742
-
743
- <div class="method-description"><p>Returns the project root based on the first package.json that is found</p>
744
- </div>
745
-
746
-
747
- <div class="return">
748
- <h4>Return:</h4>
749
- <div>
750
- <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>
751
- <span class="return-description"><p>The project root directory</p>
752
- </span>
753
- </div>
754
- </div>
755
-
756
-
757
- </div>
758
- </div>
759
-
760
-
761
- <div id="methods private">
762
- <h2 id="static-private-methods">Static Private Methods</h2>
763
- <div class="method item private">
764
- <div id="method_closestSync" class="title">
765
- <span class="source-link"><a href="../files/lib_models_project.js.html#l659"><code>lib&#x2F;models&#x2F;project.js:659</code></a></span>
766
- <h3 class="">
767
- private
768
- static
769
-
770
- closestSync(pathName, _ui): <a href="../classes/Project.html" class="crosslink">Project</a>
771
- </h3>
772
- </div>
773
-
774
-
775
-
776
- <div class="method-description"><p>Returns a new project based on the first <code>package.json</code> that is found
777
- in <code>pathName</code>.</p>
778
- <p>If the above <code>package.json</code> specifies <code>ember-addon.projectRoot</code>, we load
779
- the project based on the relative path between this directory and the
780
- specified <code>projectRoot</code>.</p>
781
- </div>
782
-
783
- <div class="params">
784
- <h4>Parameters:</h4>
785
- <table>
786
- <thead>
787
- <tr>
788
- <th>Name</th>
789
- <th>Type</th>
790
- <th>Attribute</th>
791
- <th>Description</th>
792
- </tr>
793
- </thead>
794
- <tbody>
795
- <tr>
796
- <td>pathName</td>
797
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
798
- <td>
799
- <ul>
800
-
801
-
802
-
803
- </ul>
804
- </td>
805
- <td><p>Path to your project</p>
806
- </td>
807
- </tr>
808
-
809
- <tr>
810
- <td>_ui</td>
811
- <td>UI</td>
812
- <td>
813
- <ul>
814
-
815
-
816
-
817
- </ul>
818
- </td>
819
- <td><p>The UI instance to provide to the created Project.</p>
820
- </td>
821
- </tr>
822
-
823
- </tbody>
824
- </table>
825
- </div>
826
-
827
- <div class="return">
828
- <h4>Return:</h4>
829
- <div>
830
- <span class="return-type"><a href="../classes/Project.html" class="crosslink">Project</a></span>
831
- <span class="return-description"><p>Project instance</p>
832
- </span>
833
- </div>
834
- </div>
835
-
836
-
837
- </div>
838
- <div class="method item private">
839
- <div id="method_projectOrnullProject" class="title">
840
- <span class="source-link"><a href="../files/lib_models_project.js.html#l710"><code>lib&#x2F;models&#x2F;project.js:710</code></a></span>
841
- <h3 class="">
842
- private
843
- static
844
-
845
- projectOrnullProject(_ui): <a href="../classes/Project.html" class="crosslink">Project</a>
846
- </h3>
847
- </div>
848
-
849
-
850
-
851
- <div class="method-description"><p>Returns a new project based on the first package.json that is found
852
- in <code>pathName</code>, or the nullProject.</p>
853
- <p>The nullProject signifies no-project, but abides by the null object pattern</p>
854
- </div>
855
-
856
- <div class="params">
857
- <h4>Parameters:</h4>
858
- <table>
859
- <thead>
860
- <tr>
861
- <th>Name</th>
862
- <th>Type</th>
863
- <th>Attribute</th>
864
- <th>Description</th>
865
- </tr>
866
- </thead>
867
- <tbody>
868
- <tr>
869
- <td>_ui</td>
870
- <td>UI</td>
871
- <td>
872
- <ul>
873
-
874
-
875
-
876
- </ul>
877
- </td>
878
- <td><p>The UI instance to provide to the created Project.</p>
879
- </td>
880
- </tr>
881
-
882
- </tbody>
883
- </table>
884
- </div>
885
-
886
- <div class="return">
887
- <h4>Return:</h4>
888
- <div>
889
- <span class="return-type"><a href="../classes/Project.html" class="crosslink">Project</a></span>
890
- <span class="return-description"><p>Project instance</p>
891
- </span>
892
- </div>
893
- </div>
894
-
895
-
896
- </div>
897
- </div>
898
-
899
- <div id="methods public">
900
- <h2 id="public-constructors">Public Constructors</h2>
901
- <div class="method item">
902
- <div id="method_Project" class="title">
903
- <span class="source-link"><a href="../files/lib_models_project.js.html#l28"><code>lib&#x2F;models&#x2F;project.js:28</code></a></span>
904
- <h3 class="">
905
- public
906
-
907
-
908
- Project(root, pkg, ui, cli)
909
- </h3>
910
- </div>
911
-
912
-
913
-
914
- <div class="method-description"></div>
915
-
916
- <div class="params">
917
- <h4>Parameters:</h4>
918
- <table>
919
- <thead>
920
- <tr>
921
- <th>Name</th>
922
- <th>Type</th>
923
- <th>Attribute</th>
924
- <th>Description</th>
925
- </tr>
926
- </thead>
927
- <tbody>
928
- <tr>
929
- <td>root</td>
930
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
931
- <td>
932
- <ul>
933
-
934
-
935
-
936
- </ul>
937
- </td>
938
- <td><p>Root directory for the project</p>
939
- </td>
940
- </tr>
941
-
942
- <tr>
943
- <td>pkg</td>
944
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
945
- <td>
946
- <ul>
947
-
948
-
949
-
950
- </ul>
951
- </td>
952
- <td><p>Contents of package.json</p>
953
- </td>
954
- </tr>
955
-
956
- <tr>
957
- <td>ui</td>
958
- <td>UI</td>
959
- <td>
960
- <ul>
961
-
962
-
963
-
964
- </ul>
965
- </td>
966
- <td> </td>
967
- </tr>
968
-
969
- <tr>
970
- <td>cli</td>
971
- <td><a href="../classes/CLI.html" class="crosslink">CLI</a></td>
972
- <td>
973
- <ul>
974
-
975
-
976
-
977
- </ul>
978
- </td>
979
- <td> </td>
980
- </tr>
981
-
982
- </tbody>
983
- </table>
984
- </div>
985
-
986
-
987
-
988
- </div>
989
- </div>
990
-
991
-
992
-
993
- <div id="properties public">
994
- <h2 id="public-properties">Public Properties</h2>
995
- <div class="property item public">
996
- <div id="props_targets" class="title">
997
- <span class="source-link"><a href="../files/lib_models_project.js.html#l270"><code>lib&#x2F;models&#x2F;project.js:270</code></a></span>
998
- <h3 class="">
999
- public
1000
-
1001
-
1002
- targets: Unknown
1003
- </h3>
1004
- </div>
1005
-
1006
-
1007
- <div class="property-description"><p>Returns the targets of this project, or the default targets if not present.</p>
1008
- </div>
1009
-
1010
- </div>
1011
- </div>
1012
-
1013
-
1014
- <div id="properties private">
1015
- <h2 id="private-properties">Private Properties</h2>
1016
- <div class="property item private">
1017
- <div id="props__watchmanInfo" class="title">
1018
- <span class="source-link"><a href="../files/lib_models_project.js.html#l54"><code>lib&#x2F;models&#x2F;project.js:54</code></a></span>
1019
- <h3 class="">
1020
- private
1021
-
1022
-
1023
- _watchmanInfo: Unknown
1024
- </h3>
1025
- </div>
1026
-
1027
-
1028
- <div class="property-description"><p>Set when the <code>Watcher.detectWatchman</code> helper method finishes running,
1029
- so that other areas of the system can be aware that watchman is being used.</p>
1030
- <p>For example, this information is used in the broccoli build pipeline to know
1031
- if we can watch additional directories (like bower_components) "cheaply".</p>
1032
- <p>Contains <code>enabled</code> and <code>version</code>.</p>
1033
- </div>
1034
-
1035
- </div>
1036
- </div>
1037
-
1038
- <div id="methods public">
1039
- <h2 id="public-methods">Public Methods</h2>
1040
- <div class="method item public">
1041
- <div id="method_config" class="title">
1042
- <span class="source-link"><a href="../files/lib_models_project.js.html#l232"><code>lib&#x2F;models&#x2F;project.js:232</code></a></span>
1043
- <h3 class="">
1044
- public
1045
-
1046
-
1047
- config(env): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
1048
- </h3>
1049
- </div>
1050
-
1051
-
1052
-
1053
- <div class="method-description"><p>Loads the configuration for this project and its addons.</p>
1054
- </div>
1055
-
1056
- <div class="params">
1057
- <h4>Parameters:</h4>
1058
- <table>
1059
- <thead>
1060
- <tr>
1061
- <th>Name</th>
1062
- <th>Type</th>
1063
- <th>Attribute</th>
1064
- <th>Description</th>
1065
- </tr>
1066
- </thead>
1067
- <tbody>
1068
- <tr>
1069
- <td>env</td>
1070
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1071
- <td>
1072
- <ul>
1073
-
1074
-
1075
-
1076
- </ul>
1077
- </td>
1078
- <td><p>Environment name</p>
1079
- </td>
1080
- </tr>
1081
-
1082
- </tbody>
1083
- </table>
1084
- </div>
1085
-
1086
- <div class="return">
1087
- <h4>Return:</h4>
1088
- <div>
1089
- <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>
1090
- <span class="return-description"><p>Merged configuration object</p>
1091
- </span>
1092
- </div>
1093
- </div>
1094
-
1095
-
1096
- </div>
1097
- <div class="method item public">
1098
- <div id="method_findAddonByName" class="title">
1099
- <span class="source-link"><a href="../files/lib_models_project.js.html#l621"><code>lib&#x2F;models&#x2F;project.js:621</code></a></span>
1100
- <h3 class="">
1101
- public
1102
-
1103
-
1104
- findAddonByName(name): <a href="../classes/Addon.html" class="crosslink">Addon</a>
1105
- </h3>
1106
- </div>
1107
-
1108
-
1109
-
1110
- <div class="method-description"><p>Find an addon by its name</p>
1111
- </div>
1112
-
1113
- <div class="params">
1114
- <h4>Parameters:</h4>
1115
- <table>
1116
- <thead>
1117
- <tr>
1118
- <th>Name</th>
1119
- <th>Type</th>
1120
- <th>Attribute</th>
1121
- <th>Description</th>
1122
- </tr>
1123
- </thead>
1124
- <tbody>
1125
- <tr>
1126
- <td>name</td>
1127
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1128
- <td>
1129
- <ul>
1130
-
1131
-
1132
-
1133
- </ul>
1134
- </td>
1135
- <td><p>Addon name as specified in package.json</p>
1136
- </td>
1137
- </tr>
1138
-
1139
- </tbody>
1140
- </table>
1141
- </div>
1142
-
1143
- <div class="return">
1144
- <h4>Return:</h4>
1145
- <div>
1146
- <span class="return-type"><a href="../classes/Addon.html" class="crosslink">Addon</a></span>
1147
- <span class="return-description"><p>Addon instance</p>
1148
- </span>
1149
- </div>
1150
- </div>
1151
-
1152
-
1153
- </div>
1154
- <div class="method item public">
1155
- <div id="method_generateTestFile" class="title">
1156
- <span class="source-link"><a href="../files/lib_models_project.js.html#l635"><code>lib&#x2F;models&#x2F;project.js:635</code></a></span>
1157
- <h3 class="">
1158
- public
1159
-
1160
-
1161
- generateTestFile(moduleName, tests): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
1162
- </h3>
1163
- </div>
1164
-
1165
-
1166
-
1167
- <div class="method-description"><p>Generate test file contents.</p>
1168
- <p>This method is supposed to be overwritten by test framework addons
1169
- like <code>ember-qunit</code> and <code>ember-mocha</code>.</p>
1170
- </div>
1171
-
1172
- <div class="params">
1173
- <h4>Parameters:</h4>
1174
- <table>
1175
- <thead>
1176
- <tr>
1177
- <th>Name</th>
1178
- <th>Type</th>
1179
- <th>Attribute</th>
1180
- <th>Description</th>
1181
- </tr>
1182
- </thead>
1183
- <tbody>
1184
- <tr>
1185
- <td>moduleName</td>
1186
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1187
- <td>
1188
- <ul>
1189
-
1190
-
1191
-
1192
- </ul>
1193
- </td>
1194
- <td><p>Name of the test module (e.g. <code>JSHint</code>)</p>
1195
- </td>
1196
- </tr>
1197
-
1198
- <tr>
1199
- <td>tests</td>
1200
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object[]</a></td>
1201
- <td>
1202
- <ul>
1203
-
1204
-
1205
-
1206
- </ul>
1207
- </td>
1208
- <td><p>Array of tests with <code>name</code>, <code>passed</code> and <code>errorMessage</code> properties</p>
1209
- </td>
1210
- </tr>
1211
-
1212
- </tbody>
1213
- </table>
1214
- </div>
1215
-
1216
- <div class="return">
1217
- <h4>Return:</h4>
1218
- <div>
1219
- <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>
1220
- <span class="return-description"><p>The test file content</p>
1221
- </span>
1222
- </div>
1223
- </div>
1224
-
1225
-
1226
- </div>
1227
- <div class="method item">
1228
- <div id="method_isEmberCLIAddon" class="title">
1229
- <span class="source-link"><a href="../files/lib_models_project.js.html#l205"><code>lib&#x2F;models&#x2F;project.js:205</code></a></span>
1230
- <h3 class="">
1231
- public
1232
-
1233
-
1234
- isEmberCLIAddon( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
1235
- </h3>
1236
- </div>
1237
-
1238
-
1239
-
1240
- <div class="method-description"><p>Returns whether or not this is an Ember CLI addon.</p>
1241
- </div>
1242
-
1243
-
1244
- <div class="return">
1245
- <h4>Return:</h4>
1246
- <div>
1247
- <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>
1248
- <span class="return-description"><p>Whether or not this is an Ember CLI Addon.</p>
1249
- </span>
1250
- </div>
1251
- </div>
1252
-
1253
-
1254
- </div>
1255
- <div class="method item public">
1256
- <div id="method_require" class="title">
1257
- <span class="source-link"><a href="../files/lib_models_project.js.html#l346"><code>lib&#x2F;models&#x2F;project.js:346</code></a></span>
1258
- <h3 class="">
1259
- public
1260
-
1261
-
1262
- require(file): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
1263
- </h3>
1264
- </div>
1265
-
1266
-
1267
-
1268
- <div class="method-description"><p>Calls <code>require</code> on a given module from the context of the project. For
1269
- instance, an addon may want to require a class from the root project's
1270
- version of ember-cli.</p>
1271
- </div>
1272
-
1273
- <div class="params">
1274
- <h4>Parameters:</h4>
1275
- <table>
1276
- <thead>
1277
- <tr>
1278
- <th>Name</th>
1279
- <th>Type</th>
1280
- <th>Attribute</th>
1281
- <th>Description</th>
1282
- </tr>
1283
- </thead>
1284
- <tbody>
1285
- <tr>
1286
- <td>file</td>
1287
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1288
- <td>
1289
- <ul>
1290
-
1291
-
1292
-
1293
- </ul>
1294
- </td>
1295
- <td><p>File path or module name</p>
1296
- </td>
1297
- </tr>
1298
-
1299
- </tbody>
1300
- </table>
1301
- </div>
1302
-
1303
- <div class="return">
1304
- <h4>Return:</h4>
1305
- <div>
1306
- <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>
1307
- <span class="return-description"><p>Imported module</p>
1308
- </span>
1309
- </div>
1310
- </div>
1311
-
1312
-
1313
- </div>
1314
- </div>
1315
-
1316
-
1317
- <div id="methods private">
1318
- <h2 id="private-methods">Private Methods</h2>
1319
- <div class="method item private">
1320
- <div id="method_addonBlueprintLookupPaths" class="title">
1321
- <span class="source-link"><a href="../files/lib_models_project.js.html#l558"><code>lib&#x2F;models&#x2F;project.js:558</code></a></span>
1322
- <h3 class="">
1323
- private
1324
-
1325
-
1326
- addonBlueprintLookupPaths( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
1327
- </h3>
1328
- </div>
1329
-
1330
-
1331
-
1332
- <div class="method-description"><p>Returns a list of addon paths where blueprints will be looked up.</p>
1333
- </div>
1334
-
1335
-
1336
- <div class="return">
1337
- <h4>Return:</h4>
1338
- <div>
1339
- <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>
1340
- <span class="return-description"><p>List of paths</p>
1341
- </span>
1342
- </div>
1343
- </div>
1344
-
1345
-
1346
- </div>
1347
- <div class="method item private">
1348
- <div id="method_addonCommands" class="title">
1349
- <span class="source-link"><a href="../files/lib_models_project.js.html#l465"><code>lib&#x2F;models&#x2F;project.js:465</code></a></span>
1350
- <h3 class="">
1351
- private
1352
-
1353
-
1354
- addonCommands( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
1355
- </h3>
1356
- </div>
1357
-
1358
-
1359
-
1360
- <div class="method-description"><p>Returns what commands are made available by addons by inspecting
1361
- <code>includedCommands</code> for every addon.</p>
1362
- </div>
1363
-
1364
-
1365
- <div class="return">
1366
- <h4>Return:</h4>
1367
- <div>
1368
- <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>
1369
- <span class="return-description"><p>Addon names and command maps as key-value pairs</p>
1370
- </span>
1371
- </div>
1372
- </div>
1373
-
1374
-
1375
- </div>
1376
- <div class="method item private">
1377
- <div id="method_blueprintLookupPaths" class="title">
1378
- <span class="source-link"><a href="../files/lib_models_project.js.html#l540"><code>lib&#x2F;models&#x2F;project.js:540</code></a></span>
1379
- <h3 class="">
1380
- private
1381
-
1382
-
1383
- blueprintLookupPaths( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a>
1384
- </h3>
1385
- </div>
1386
-
1387
-
1388
-
1389
- <div class="method-description"><p>Returns a list of paths (including addon paths) where blueprints will be looked up.</p>
1390
- </div>
1391
-
1392
-
1393
- <div class="return">
1394
- <h4>Return:</h4>
1395
- <div>
1396
- <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>
1397
- <span class="return-description"><p>List of paths</p>
1398
- </span>
1399
- </div>
1400
- </div>
1401
-
1402
-
1403
- </div>
1404
- <div class="method item private">
1405
- <div id="method_bowerDependencies" class="title">
1406
- <span class="source-link"><a href="../files/lib_models_project.js.html#l381"><code>lib&#x2F;models&#x2F;project.js:381</code></a></span>
1407
- <h3 class="">
1408
- private
1409
-
1410
-
1411
- bowerDependencies(bower): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
1412
- </h3>
1413
- </div>
1414
-
1415
-
1416
-
1417
- <div class="method-description"><p>Returns the bower dependencies for this project.</p>
1418
- </div>
1419
-
1420
- <div class="params">
1421
- <h4>Parameters:</h4>
1422
- <table>
1423
- <thead>
1424
- <tr>
1425
- <th>Name</th>
1426
- <th>Type</th>
1427
- <th>Attribute</th>
1428
- <th>Description</th>
1429
- </tr>
1430
- </thead>
1431
- <tbody>
1432
- <tr>
1433
- <td>bower</td>
1434
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1435
- <td>
1436
- <ul>
1437
-
1438
-
1439
-
1440
- </ul>
1441
- </td>
1442
- <td><p>Path to bower.json</p>
1443
- </td>
1444
- </tr>
1445
-
1446
- </tbody>
1447
- </table>
1448
- </div>
1449
-
1450
- <div class="return">
1451
- <h4>Return:</h4>
1452
- <div>
1453
- <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>
1454
- <span class="return-description"><p>Bower dependencies</p>
1455
- </span>
1456
- </div>
1457
- </div>
1458
-
1459
-
1460
- </div>
1461
- <div class="method item private">
1462
- <div id="method_configPath" class="title">
1463
- <span class="source-link"><a href="../files/lib_models_project.js.html#l215"><code>lib&#x2F;models&#x2F;project.js:215</code></a></span>
1464
- <h3 class="">
1465
- private
1466
-
1467
-
1468
- configPath( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
1469
- </h3>
1470
- </div>
1471
-
1472
-
1473
-
1474
- <div class="method-description"><p>Returns the path to the configuration.</p>
1475
- </div>
1476
-
1477
-
1478
- <div class="return">
1479
- <h4>Return:</h4>
1480
- <div>
1481
- <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>
1482
- <span class="return-description"><p>Configuration path</p>
1483
- </span>
1484
- </div>
1485
- </div>
1486
-
1487
-
1488
- </div>
1489
- <div class="method item private">
1490
- <div id="method_configWithoutCache" class="title">
1491
- <span class="source-link"><a href="../files/lib_models_project.js.html#l251"><code>lib&#x2F;models&#x2F;project.js:251</code></a></span>
1492
- <h3 class="">
1493
- private
1494
-
1495
-
1496
- configWithoutCache(env): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
1497
- </h3>
1498
- </div>
1499
-
1500
-
1501
-
1502
- <div class="method-description"></div>
1503
-
1504
- <div class="params">
1505
- <h4>Parameters:</h4>
1506
- <table>
1507
- <thead>
1508
- <tr>
1509
- <th>Name</th>
1510
- <th>Type</th>
1511
- <th>Attribute</th>
1512
- <th>Description</th>
1513
- </tr>
1514
- </thead>
1515
- <tbody>
1516
- <tr>
1517
- <td>env</td>
1518
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1519
- <td>
1520
- <ul>
1521
-
1522
-
1523
-
1524
- </ul>
1525
- </td>
1526
- <td><p>Environment name</p>
1527
- </td>
1528
- </tr>
1529
-
1530
- </tbody>
1531
- </table>
1532
- </div>
1533
-
1534
- <div class="return">
1535
- <h4>Return:</h4>
1536
- <div>
1537
- <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>
1538
- <span class="return-description"><p>Merged configuration object</p>
1539
- </span>
1540
- </div>
1541
- </div>
1542
-
1543
-
1544
- </div>
1545
- <div class="method item private">
1546
- <div id="method_dependencies" class="title">
1547
- <span class="source-link"><a href="../files/lib_models_project.js.html#l361"><code>lib&#x2F;models&#x2F;project.js:361</code></a></span>
1548
- <h3 class="">
1549
- private
1550
-
1551
-
1552
- dependencies([pkg=this.pkg], [excludeDevDeps=false]): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
1553
- </h3>
1554
- </div>
1555
-
1556
-
1557
-
1558
- <div class="method-description"><p>Returns the dependencies from a package.json</p>
1559
- </div>
1560
-
1561
- <div class="params">
1562
- <h4>Parameters:</h4>
1563
- <table>
1564
- <thead>
1565
- <tr>
1566
- <th>Name</th>
1567
- <th>Type</th>
1568
- <th>Attribute</th>
1569
- <th>Description</th>
1570
- </tr>
1571
- </thead>
1572
- <tbody>
1573
- <tr>
1574
- <td>pkg</td>
1575
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
1576
- <td>
1577
- <ul>
1578
- <li>optional</li>
1579
- <li>default: this.pkg</li>
1580
-
1581
- </ul>
1582
- </td>
1583
- <td><p>Package object</p>
1584
- </td>
1585
- </tr>
1586
-
1587
- <tr>
1588
- <td>excludeDevDeps</td>
1589
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></td>
1590
- <td>
1591
- <ul>
1592
- <li>optional</li>
1593
- <li>default: false</li>
1594
-
1595
- </ul>
1596
- </td>
1597
- <td><p>Whether or not development dependencies should be excluded</p>
1598
- </td>
1599
- </tr>
1600
-
1601
- </tbody>
1602
- </table>
1603
- </div>
1604
-
1605
- <div class="return">
1606
- <h4>Return:</h4>
1607
- <div>
1608
- <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>
1609
- <span class="return-description"><p>Dependencies</p>
1610
- </span>
1611
- </div>
1612
- </div>
1613
-
1614
-
1615
- </div>
1616
- <div class="method item private">
1617
- <div id="method_discoverAddons" class="title">
1618
- <span class="source-link"><a href="../files/lib_models_project.js.html#l423"><code>lib&#x2F;models&#x2F;project.js:423</code></a></span>
1619
- <h3 class="">
1620
- private
1621
-
1622
-
1623
- discoverAddons( )
1624
- </h3>
1625
- </div>
1626
-
1627
-
1628
-
1629
- <div class="method-description"><p>Discovers all addons for this project and stores their names and
1630
- package.json contents in this.addonPackages as key-value pairs.</p>
1631
- <p>Any packageInfos that we find that are marked as not valid are excluded.</p>
1632
- </div>
1633
-
1634
-
1635
-
1636
-
1637
- </div>
1638
- <div class="method item private">
1639
- <div id="method_eachAddonCommand" class="title">
1640
- <span class="source-link"><a href="../files/lib_models_project.js.html#l506"><code>lib&#x2F;models&#x2F;project.js:506</code></a></span>
1641
- <h3 class="">
1642
- private
1643
-
1644
-
1645
- eachAddonCommand(callback)
1646
- </h3>
1647
- </div>
1648
-
1649
-
1650
-
1651
- <div class="method-description"><p>Execute a given callback for every addon command.
1652
- Example:</p>
1653
- <pre class="code prettyprint"><code>project.eachAddonCommand(function(addonName, commands) {
1654
- console.log('Addon ' + addonName + ' exported the following commands:' + commands.keys().join(', '));
1655
- });
1656
- </code></pre>
1657
- </div>
1658
-
1659
- <div class="params">
1660
- <h4>Parameters:</h4>
1661
- <table>
1662
- <thead>
1663
- <tr>
1664
- <th>Name</th>
1665
- <th>Type</th>
1666
- <th>Attribute</th>
1667
- <th>Description</th>
1668
- </tr>
1669
- </thead>
1670
- <tbody>
1671
- <tr>
1672
- <td>callback</td>
1673
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></td>
1674
- <td>
1675
- <ul>
1676
-
1677
-
1678
-
1679
- </ul>
1680
- </td>
1681
- <td><p>[description]</p>
1682
- </td>
1683
- </tr>
1684
-
1685
- </tbody>
1686
- </table>
1687
- </div>
1688
-
1689
-
1690
-
1691
- </div>
1692
- <div class="method item private">
1693
- <div id="method_getAddonsConfig" class="title">
1694
- <span class="source-link"><a href="../files/lib_models_project.js.html#l297"><code>lib&#x2F;models&#x2F;project.js:297</code></a></span>
1695
- <h3 class="">
1696
- private
1697
-
1698
-
1699
- getAddonsConfig(env, appConfig): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
1700
- </h3>
1701
- </div>
1702
-
1703
-
1704
-
1705
- <div class="method-description"><p>Returns the addons configuration.</p>
1706
- </div>
1707
-
1708
- <div class="params">
1709
- <h4>Parameters:</h4>
1710
- <table>
1711
- <thead>
1712
- <tr>
1713
- <th>Name</th>
1714
- <th>Type</th>
1715
- <th>Attribute</th>
1716
- <th>Description</th>
1717
- </tr>
1718
- </thead>
1719
- <tbody>
1720
- <tr>
1721
- <td>env</td>
1722
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1723
- <td>
1724
- <ul>
1725
-
1726
-
1727
-
1728
- </ul>
1729
- </td>
1730
- <td><p>Environment name</p>
1731
- </td>
1732
- </tr>
1733
-
1734
- <tr>
1735
- <td>appConfig</td>
1736
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></td>
1737
- <td>
1738
- <ul>
1739
-
1740
-
1741
-
1742
- </ul>
1743
- </td>
1744
- <td><p>Application configuration</p>
1745
- </td>
1746
- </tr>
1747
-
1748
- </tbody>
1749
- </table>
1750
- </div>
1751
-
1752
- <div class="return">
1753
- <h4>Return:</h4>
1754
- <div>
1755
- <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>
1756
- <span class="return-description"><p>Merged configuration of all addons</p>
1757
- </span>
1758
- </div>
1759
- </div>
1760
-
1761
-
1762
- </div>
1763
- <div class="method item private">
1764
- <div id="method_has" class="title">
1765
- <span class="source-link"><a href="../files/lib_models_project.js.html#l320"><code>lib&#x2F;models&#x2F;project.js:320</code></a></span>
1766
- <h3 class="">
1767
- private
1768
-
1769
-
1770
- has(file): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
1771
- </h3>
1772
- </div>
1773
-
1774
-
1775
-
1776
- <div class="method-description"><p>Returns whether or not the given file name is present in this project.</p>
1777
- </div>
1778
-
1779
- <div class="params">
1780
- <h4>Parameters:</h4>
1781
- <table>
1782
- <thead>
1783
- <tr>
1784
- <th>Name</th>
1785
- <th>Type</th>
1786
- <th>Attribute</th>
1787
- <th>Description</th>
1788
- </tr>
1789
- </thead>
1790
- <tbody>
1791
- <tr>
1792
- <td>file</td>
1793
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
1794
- <td>
1795
- <ul>
1796
-
1797
-
1798
-
1799
- </ul>
1800
- </td>
1801
- <td><p>File name</p>
1802
- </td>
1803
- </tr>
1804
-
1805
- </tbody>
1806
- </table>
1807
- </div>
1808
-
1809
- <div class="return">
1810
- <h4>Return:</h4>
1811
- <div>
1812
- <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>
1813
- <span class="return-description"><p>Whether or not the file is present</p>
1814
- </span>
1815
- </div>
1816
- </div>
1817
-
1818
-
1819
- </div>
1820
- <div class="method item private">
1821
- <div id="method_initializeAddons" class="title">
1822
- <span class="source-link"><a href="../files/lib_models_project.js.html#l445"><code>lib&#x2F;models&#x2F;project.js:445</code></a></span>
1823
- <h3 class="">
1824
- private
1825
-
1826
-
1827
- initializeAddons( )
1828
- </h3>
1829
- </div>
1830
-
1831
-
1832
-
1833
- <div class="method-description"><p>Loads and initializes all addons for this project.</p>
1834
- </div>
1835
-
1836
-
1837
-
1838
-
1839
- </div>
1840
- <div class="method item private">
1841
- <div id="method_isEmberCLIProject" class="title">
1842
- <span class="source-link"><a href="../files/lib_models_project.js.html#l193"><code>lib&#x2F;models&#x2F;project.js:193</code></a></span>
1843
- <h3 class="">
1844
- private
1845
-
1846
-
1847
- isEmberCLIProject( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a>
1848
- </h3>
1849
- </div>
1850
-
1851
-
1852
-
1853
- <div class="method-description"><p>Returns whether or not this is an Ember CLI project.
1854
- This checks whether ember-cli is listed in devDependencies.</p>
1855
- </div>
1856
-
1857
-
1858
- <div class="return">
1859
- <h4>Return:</h4>
1860
- <div>
1861
- <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>
1862
- <span class="return-description"><p>Whether this is an Ember CLI project</p>
1863
- </span>
1864
- </div>
1865
- </div>
1866
-
1867
-
1868
- </div>
1869
- <div class="method item private">
1870
- <div id="method_localBlueprintLookupPath" class="title">
1871
- <span class="source-link"><a href="../files/lib_models_project.js.html#l529"><code>lib&#x2F;models&#x2F;project.js:529</code></a></span>
1872
- <h3 class="">
1873
- private
1874
-
1875
-
1876
- localBlueprintLookupPath( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
1877
- </h3>
1878
- </div>
1879
-
1880
-
1881
-
1882
- <div class="method-description"><p>Path to the blueprints for this project.</p>
1883
- </div>
1884
-
1885
-
1886
- <div class="return">
1887
- <h4>Return:</h4>
1888
- <div>
1889
- <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>
1890
- <span class="return-description"><p>Path to blueprints</p>
1891
- </span>
1892
- </div>
1893
- </div>
1894
-
1895
-
1896
- </div>
1897
- <div class="method item private">
1898
- <div id="method_name" class="title">
1899
- <span class="source-link"><a href="../files/lib_models_project.js.html#l180"><code>lib&#x2F;models&#x2F;project.js:180</code></a></span>
1900
- <h3 class="">
1901
- private
1902
-
1903
-
1904
- name( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
1905
- </h3>
1906
- </div>
1907
-
1908
-
1909
-
1910
- <div class="method-description"><p>Returns the name from package.json.</p>
1911
- </div>
1912
-
1913
-
1914
- <div class="return">
1915
- <h4>Return:</h4>
1916
- <div>
1917
- <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>
1918
- <span class="return-description"><p>Package name</p>
1919
- </span>
1920
- </div>
1921
- </div>
1922
-
1923
-
1924
- </div>
1925
- <div class="method item private">
1926
- <div id="method_reloadAddons" class="title">
1927
- <span class="source-link"><a href="../files/lib_models_project.js.html#l609"><code>lib&#x2F;models&#x2F;project.js:609</code></a></span>
1928
- <h3 class="">
1929
- private
1930
-
1931
-
1932
- reloadAddons( )
1933
- </h3>
1934
- </div>
1935
-
1936
-
1937
-
1938
- <div class="method-description"><p>Re-initializes addons.</p>
1939
- </div>
1940
-
1941
-
1942
-
1943
-
1944
- </div>
1945
- <div class="method item private">
1946
- <div id="method_reloadPkg" class="title">
1947
- <span class="source-link"><a href="../files/lib_models_project.js.html#l581"><code>lib&#x2F;models&#x2F;project.js:581</code></a></span>
1948
- <h3 class="">
1949
- private
1950
-
1951
-
1952
- reloadPkg( ): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a>
1953
- </h3>
1954
- </div>
1955
-
1956
-
1957
-
1958
- <div class="method-description"><p>Reloads package.json of the project. Clears and reloads the packageInfo and
1959
- per-bundle addon cache, too.</p>
1960
- </div>
1961
-
1962
-
1963
- <div class="return">
1964
- <h4>Return:</h4>
1965
- <div>
1966
- <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>
1967
- <span class="return-description"><p>Package content</p>
1968
- </span>
1969
- </div>
1970
- </div>
1971
-
1972
-
1973
- </div>
1974
- <div class="method item private">
1975
- <div id="method_resolveSync" class="title">
1976
- <span class="source-link"><a href="../files/lib_models_project.js.html#l332"><code>lib&#x2F;models&#x2F;project.js:332</code></a></span>
1977
- <h3 class="">
1978
- private
1979
-
1980
-
1981
- resolveSync(file): <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a>
1982
- </h3>
1983
- </div>
1984
-
1985
-
1986
-
1987
- <div class="method-description"><p>Resolves the absolute path to a file synchronously</p>
1988
- </div>
1989
-
1990
- <div class="params">
1991
- <h4>Parameters:</h4>
1992
- <table>
1993
- <thead>
1994
- <tr>
1995
- <th>Name</th>
1996
- <th>Type</th>
1997
- <th>Attribute</th>
1998
- <th>Description</th>
1999
- </tr>
2000
- </thead>
2001
- <tbody>
2002
- <tr>
2003
- <td>file</td>
2004
- <td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
2005
- <td>
2006
- <ul>
2007
-
2008
-
2009
-
2010
- </ul>
2011
- </td>
2012
- <td><p>File to resolve</p>
2013
- </td>
2014
- </tr>
2015
-
2016
- </tbody>
2017
- </table>
2018
- </div>
2019
-
2020
- <div class="return">
2021
- <h4>Return:</h4>
2022
- <div>
2023
- <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>
2024
- <span class="return-description"><p>Absolute path to file</p>
2025
- </span>
2026
- </div>
2027
- </div>
2028
-
2029
-
2030
- </div>
2031
- <div class="method item private">
2032
- <div id="method_setupBowerDirectory" class="title">
2033
- <span class="source-link"><a href="../files/lib_models_project.js.html#l107"><code>lib&#x2F;models&#x2F;project.js:107</code></a></span>
2034
- <h3 class="">
2035
- private
2036
-
2037
-
2038
- setupBowerDirectory( )
2039
- </h3>
2040
- </div>
2041
-
2042
-
2043
-
2044
- <div class="method-description"><p>Sets the name of the bower directory for this project</p>
2045
- </div>
2046
-
2047
-
2048
-
2049
-
2050
- </div>
2051
- <div class="method item private">
2052
- <div id="method_supportedInternalAddonPaths" class="title">
2053
- <span class="source-link"><a href="../files/lib_models_project.js.html#l397"><code>lib&#x2F;models&#x2F;project.js:397</code></a></span>
2054
- <h3 class="">
2055
- private
2056
-
2057
-
2058
- supportedInternalAddonPaths( )
2059
- </h3>
2060
- </div>
2061
-
2062
-
2063
-
2064
- <div class="method-description"><p>Provides the list of paths to consult for addons that may be provided
2065
- internally to this project. Used for middleware addons with built-in support.</p>
2066
- </div>
2067
-
2068
-
2069
-
2070
-
2071
- </div>
2072
- </div>
2073
-
2074
-
2075
- </div>
2076
- </div>
2077
- </div>
2078
- </div>
2079
- <script src="../assets/vendor/prettify/prettify-min.js"></script>
2080
- <script>prettyPrint();</script>
2081
- <script src="../assets/js/yui-prettify.js"></script>
2082
- </body>
2083
- </html>