ember-cli 4.0.0 → 4.2.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 (115) hide show
  1. package/.github/workflows/ci.yml +8 -4
  2. package/CHANGELOG.md +43 -2
  3. package/README.md +1 -1
  4. package/blueprints/addon/additional-dev-dependencies.json +1 -1
  5. package/blueprints/addon/files/CONTRIBUTING.md +1 -1
  6. package/blueprints/app/files/README.md +2 -2
  7. package/blueprints/app/files/package.json +8 -8
  8. package/docs/build/data.json +64 -3
  9. package/lib/debug/assert.js +37 -0
  10. package/lib/debug/deprecate.js +111 -0
  11. package/lib/debug/index.js +6 -0
  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/tasks/npm-task.js +1 -1
  15. package/lib/utilities/get-lang-arg.js +45 -45
  16. package/package.json +31 -31
  17. package/.github/ISSUE_TEMPLATE.md +0 -12
  18. package/.github/dependabot.yml +0 -15
  19. package/.github/workflows/coverage.yml +0 -31
  20. package/docs/analytics.md +0 -44
  21. package/docs/architecture.md +0 -316
  22. package/docs/assets/architecture/Ember-CLI architecture.png +0 -0
  23. package/docs/assets/architecture/Ember-CLI architecture.xml +0 -1
  24. package/docs/assets/architecture/README.md +0 -5
  25. package/docs/brocfile-transition.md +0 -46
  26. package/docs/build/api.js +0 -44
  27. package/docs/build/assets/css/external-small.png +0 -0
  28. package/docs/build/assets/css/logo.png +0 -0
  29. package/docs/build/assets/css/main.css +0 -555
  30. package/docs/build/assets/favicon.ico +0 -0
  31. package/docs/build/assets/img/spinner.gif +0 -0
  32. package/docs/build/assets/index.html +0 -10
  33. package/docs/build/assets/js/api-filter.js +0 -56
  34. package/docs/build/assets/js/api-list.js +0 -255
  35. package/docs/build/assets/js/api-search.js +0 -98
  36. package/docs/build/assets/js/apidocs.js +0 -376
  37. package/docs/build/assets/js/yui-prettify.js +0 -17
  38. package/docs/build/assets/vendor/prettify/CHANGES.html +0 -130
  39. package/docs/build/assets/vendor/prettify/COPYING +0 -202
  40. package/docs/build/assets/vendor/prettify/README.html +0 -203
  41. package/docs/build/assets/vendor/prettify/prettify-min.css +0 -1
  42. package/docs/build/assets/vendor/prettify/prettify-min.js +0 -1
  43. package/docs/build/classes/Addon.html +0 -4318
  44. package/docs/build/classes/AmdTransformAddon.html +0 -202
  45. package/docs/build/classes/Blueprint.html +0 -4796
  46. package/docs/build/classes/Builder.html +0 -611
  47. package/docs/build/classes/CLI.html +0 -810
  48. package/docs/build/classes/Command.html +0 -1655
  49. package/docs/build/classes/DefaultPackager.html +0 -202
  50. package/docs/build/classes/EmberAddon.html +0 -2207
  51. package/docs/build/classes/EmberApp.html +0 -2225
  52. package/docs/build/classes/HardwareInfo.html +0 -620
  53. package/docs/build/classes/HistorySupportAddon.html +0 -203
  54. package/docs/build/classes/Instrumentation.html +0 -695
  55. package/docs/build/classes/NodeModulesList.html +0 -460
  56. package/docs/build/classes/NpmTask.html +0 -333
  57. package/docs/build/classes/PackageInfo.html +0 -1390
  58. package/docs/build/classes/PackageInfoCache.html +0 -963
  59. package/docs/build/classes/PerBundleAddonCache {.html +0 -1010
  60. package/docs/build/classes/Project.html +0 -2083
  61. package/docs/build/classes/ServeFilesAddon.html +0 -260
  62. package/docs/build/classes/TestsServerAddon.html +0 -203
  63. package/docs/build/classes/WatcherAddon.html +0 -204
  64. package/docs/build/classes/WindowsSymlinkChecker.html +0 -1505
  65. package/docs/build/files/lib_broccoli_default-packager.js.html +0 -1426
  66. package/docs/build/files/lib_broccoli_ember-addon.js.html +0 -159
  67. package/docs/build/files/lib_broccoli_ember-app.js.html +0 -1913
  68. package/docs/build/files/lib_cli_cli.js.html +0 -417
  69. package/docs/build/files/lib_models_addon-info.js.html +0 -112
  70. package/docs/build/files/lib_models_addon.js.html +0 -1866
  71. package/docs/build/files/lib_models_blueprint.js.html +0 -1678
  72. package/docs/build/files/lib_models_builder.js.html +0 -417
  73. package/docs/build/files/lib_models_command.js.html +0 -804
  74. package/docs/build/files/lib_models_hardware-info.js.html +0 -479
  75. package/docs/build/files/lib_models_host-info-cache.js.html +0 -428
  76. package/docs/build/files/lib_models_installation-checker.js.html +0 -181
  77. package/docs/build/files/lib_models_instantiate-addons.js.html +0 -191
  78. package/docs/build/files/lib_models_instrumentation.js.html +0 -433
  79. package/docs/build/files/lib_models_package-info-cache_index.js.html +0 -793
  80. package/docs/build/files/lib_models_package-info-cache_node-modules-list.js.html +0 -208
  81. package/docs/build/files/lib_models_package-info-cache_package-info.js.html +0 -661
  82. package/docs/build/files/lib_models_per-bundle-addon-cache_addon-proxy.js.html +0 -252
  83. package/docs/build/files/lib_models_per-bundle-addon-cache_index.js.html +0 -485
  84. package/docs/build/files/lib_models_per-bundle-addon-cache_target-instance.js.html +0 -108
  85. package/docs/build/files/lib_models_project.js.html +0 -913
  86. package/docs/build/files/lib_models_task.js.html +0 -117
  87. package/docs/build/files/lib_tasks_build-watch.js.html +0 -157
  88. package/docs/build/files/lib_tasks_npm-task.js.html +0 -463
  89. package/docs/build/files/lib_tasks_serve.js.html +0 -207
  90. package/docs/build/files/lib_tasks_server_middleware_broccoli-serve-files_index.js.html +0 -127
  91. package/docs/build/files/lib_tasks_server_middleware_broccoli-watcher_index.js.html +0 -158
  92. package/docs/build/files/lib_tasks_server_middleware_history-support_index.js.html +0 -181
  93. package/docs/build/files/lib_tasks_server_middleware_tests-server_index.js.html +0 -171
  94. package/docs/build/files/lib_tasks_test-server.js.html +0 -167
  95. package/docs/build/files/lib_tasks_transforms_amd_index.js.html +0 -143
  96. package/docs/build/files/lib_utilities_ember-app-utils.js.html +0 -292
  97. package/docs/build/files/lib_utilities_insert-into-file.js.html +0 -219
  98. package/docs/build/files/lib_utilities_is-lazy-engine.js.html +0 -125
  99. package/docs/build/files/lib_utilities_is-yarn-project.js.html +0 -120
  100. package/docs/build/files/lib_utilities_valid-project-name.js.html +0 -142
  101. package/docs/build/files/lib_utilities_will-interrupt-process.js.html +0 -290
  102. package/docs/build/files/lib_utilities_windows-admin.js.html +0 -230
  103. package/docs/build/index.html +0 -125
  104. package/docs/build/modules/ember-cli.html +0 -152
  105. package/docs/build/modules/is-lazy-engine.html +0 -106
  106. package/docs/build-concurrency.md +0 -15
  107. package/docs/build-pipeline-debugging.md +0 -33
  108. package/docs/code-coverage.md +0 -14
  109. package/docs/error-propagation.md +0 -136
  110. package/docs/experiments.md +0 -53
  111. package/docs/node-support.md +0 -43
  112. package/docs/perf-guide.md +0 -250
  113. package/docs/project_version_preprocessor.js +0 -8
  114. package/docs/sourcemaps.md +0 -60
  115. package/docs/yuidoc.json +0 -13
@@ -1,417 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>lib/cli/cli.js - 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
-
69
-
70
-
71
- <div class="version-info">
72
- Version: 4.0.0-release-b4cbb1029f
73
- </div>
74
-
75
- </div>
76
-
77
- <div id="main" class="yui3-u">
78
- <div class="content"><div class="title">
79
- <h1 class="file-name">lib/cli/cli.js</h1>
80
- </div>
81
-
82
- <pre class="code prettyprint linenums">
83
- &#x27;use strict&#x27;;
84
-
85
- const lookupCommand = require(&#x27;./lookup-command&#x27;);
86
- const getOptionArgs = require(&#x27;../utilities/get-option-args&#x27;);
87
- const hash = require(&#x27;promise.hash.helper&#x27;);
88
- const logger = require(&#x27;heimdalljs-logger&#x27;)(&#x27;ember-cli:cli&#x27;);
89
- const loggerTesting = require(&#x27;heimdalljs-logger&#x27;)(&#x27;ember-cli:testing&#x27;);
90
- const Instrumentation = require(&#x27;../models/instrumentation&#x27;);
91
- const PackageInfoCache = require(&#x27;../models/package-info-cache&#x27;);
92
- const heimdall = require(&#x27;heimdalljs&#x27;);
93
-
94
- const onProcessInterrupt = require(&#x27;../utilities/will-interrupt-process&#x27;);
95
-
96
- class CLI {
97
- /**
98
- * @private
99
- * @class CLI
100
- * @constructor
101
- * @param options
102
- */
103
- constructor(options) {
104
- /**
105
- * @private
106
- * @property name
107
- */
108
- this.name = options.name;
109
-
110
- /**
111
- * @private
112
- * @property ui
113
- * @type UI
114
- */
115
- this.ui = options.ui;
116
-
117
- /**
118
- * @private
119
- * @property analytics
120
- */
121
- this.analytics = options.analytics;
122
-
123
- /**
124
- * @private
125
- * @property testing
126
- * @type Boolean
127
- */
128
- this.testing = options.testing;
129
-
130
- /**
131
- * @private
132
- * @property disableDependencyChecker
133
- * @type Boolean
134
- */
135
- this.disableDependencyChecker = options.disableDependencyChecker;
136
-
137
- /**
138
- * @private
139
- * @property root
140
- */
141
- this.root = options.root;
142
-
143
- /**
144
- * @private
145
- * @property npmPackage
146
- */
147
- this.npmPackage = options.npmPackage;
148
-
149
- /**
150
- * @private
151
- * @property instrumentation
152
- */
153
- this.instrumentation =
154
- options.instrumentation ||
155
- new Instrumentation({
156
- ui: options.ui,
157
- initInstrumentation: options.initInstrumentation,
158
- });
159
-
160
- this.packageInfoCache = new PackageInfoCache(this.ui);
161
-
162
- logger.info(&#x27;testing %o&#x27;, !!this.testing);
163
- }
164
-
165
- /**
166
- * @private
167
- * @method maybeMakeCommand
168
- * @param commandName
169
- * @param commandArgs
170
- * @return {null|CurrentCommand}
171
- */
172
- maybeMakeCommand(commandName, commandArgs) {
173
- if (this._environment === undefined) {
174
- throw new Error(&#x27;Unable to make command without environment, you have to execute &quot;run&quot; method first.&#x27;);
175
- }
176
- let CurrentCommand = lookupCommand(this._environment.commands, commandName, commandArgs, {
177
- project: this._environment.project,
178
- ui: this.ui,
179
- });
180
-
181
- /*
182
- * XXX Need to decide what to do here about showing errors. For
183
- * a non-CLI project the cache is local and probably should. For
184
- * a CLI project the cache is there, but not sure when we&#x27;ll know
185
- * about all the errors, because there may be multiple projects.
186
- * if (this.packageInfoCache.hasErrors()) {
187
- * this.packageInfoCache.showErrors();
188
- * }
189
- */
190
- let command = new CurrentCommand({
191
- ui: this.ui,
192
- analytics: this.analytics,
193
- commands: this._environment.commands,
194
- tasks: this._environment.tasks,
195
- project: this._environment.project,
196
- settings: this._environment.settings,
197
- testing: this.testing,
198
- cli: this,
199
- });
200
-
201
- return command;
202
- }
203
-
204
- /**
205
- * @private
206
- * @method run
207
- * @param {Promise&lt;object&gt;} environmentPromiseHash
208
- * @return {Promise}
209
- */
210
- async run(environmentPromiseHash) {
211
- if (environmentPromiseHash === undefined) {
212
- return Promise.reject(new Error(&#x27;Unable to execute &quot;run&quot; command without environment argument&#x27;));
213
- }
214
- let shutdownOnExit = null;
215
-
216
- let environment = (this._environment = await hash(environmentPromiseHash));
217
-
218
- try {
219
- let args = environment.cliArgs.slice();
220
- let commandName = args.shift();
221
- let commandArgs = args;
222
- let helpOptions;
223
-
224
- let commandLookupCreationToken = heimdall.start(&#x27;lookup-command&#x27;);
225
-
226
- let command = this.maybeMakeCommand(commandName, commandArgs);
227
-
228
- commandLookupCreationToken.stop();
229
-
230
- getOptionArgs(&#x27;--verbose&#x27;, commandArgs).forEach((arg) =&gt; {
231
- process.env[&#x60;EMBER_VERBOSE_${arg.toUpperCase()}&#x60;] = &#x27;true&#x27;;
232
- });
233
-
234
- let platformCheckerToken = heimdall.start(&#x27;platform-checker&#x27;);
235
-
236
- const PlatformChecker = require(&#x27;../utilities/platform-checker&#x27;);
237
- let platform = new PlatformChecker(process.version);
238
- let recommendation =
239
- &#x27; We recommend that you use the most-recent &quot;Active LTS&quot; version of Node.js.&#x27; +
240
- &#x27; See https://git.io/v7S5n for details.&#x27;;
241
-
242
- if (!this.testing) {
243
- if (platform.isDeprecated) {
244
- this.ui.writeDeprecateLine(&#x60;Node ${process.version} is no longer supported by Ember CLI.${recommendation}&#x60;);
245
- }
246
-
247
- if (!platform.isTested) {
248
- this.ui.writeWarnLine(
249
- &#x60;Node ${process.version} is not tested against Ember CLI on your platform.${recommendation}&#x60;
250
- );
251
- }
252
- }
253
-
254
- platformCheckerToken.stop();
255
-
256
- logger.info(&#x27;command: %s&#x27;, commandName);
257
-
258
- if (!this.testing) {
259
- process.chdir(environment.project.root);
260
- let skipInstallationCheck = commandArgs.indexOf(&#x27;--skip-installation-check&#x27;) !== -1;
261
- if (environment.project.isEmberCLIProject() &amp;&amp; !skipInstallationCheck) {
262
- const InstallationChecker = require(&#x27;../models/installation-checker&#x27;);
263
- new InstallationChecker({ project: environment.project }).checkInstallations();
264
- }
265
- }
266
-
267
- let instrumentation = this.instrumentation;
268
- let onCommandInterrupt;
269
-
270
- let runPromise = Promise.resolve().then(async () =&gt; {
271
- let resultOrExitCode;
272
-
273
- try {
274
- instrumentation.stopAndReport(&#x27;init&#x27;);
275
-
276
- try {
277
- instrumentation.start(&#x27;command&#x27;);
278
-
279
- loggerTesting.info(&#x27;cli: command.beforeRun&#x27;);
280
- onProcessInterrupt.addHandler(onCommandInterrupt);
281
-
282
- await command.beforeRun(commandArgs);
283
-
284
- loggerTesting.info(&#x27;cli: command.validateAndRun&#x27;);
285
-
286
- resultOrExitCode = await command.validateAndRun(commandArgs);
287
- } finally {
288
- instrumentation.stopAndReport(&#x27;command&#x27;, commandName, commandArgs);
289
-
290
- onProcessInterrupt.removeHandler(onCommandInterrupt);
291
- }
292
- } finally {
293
- instrumentation.start(&#x27;shutdown&#x27;);
294
- shutdownOnExit = function () {
295
- instrumentation.stopAndReport(&#x27;shutdown&#x27;);
296
- };
297
- }
298
-
299
- // if the help option was passed, call the help command
300
- if (resultOrExitCode === &#x27;callHelp&#x27;) {
301
- helpOptions = {
302
- environment,
303
- commandName,
304
- commandArgs,
305
- };
306
-
307
- resultOrExitCode = await this.callHelp(helpOptions);
308
- }
309
-
310
- let exitCode = resultOrExitCode;
311
-
312
- loggerTesting.info(&#x60;cli: command run complete. exitCode: ${exitCode}&#x60;);
313
- // TODO: fix this
314
- // Possibly this issue: https://github.com/joyent/node/issues/8329
315
- // Wait to resolve promise when running on windows.
316
- // This ensures that stdout is flushed so acceptance tests get full output
317
-
318
- if (process.platform === &#x27;win32&#x27;) {
319
- return new Promise((resolve) =&gt; {
320
- setTimeout(resolve, 250, exitCode);
321
- });
322
- } else {
323
- return exitCode;
324
- }
325
- });
326
-
327
- onCommandInterrupt = async () =&gt; {
328
- await command.onInterrupt();
329
-
330
- return await runPromise;
331
- };
332
-
333
- return await runPromise;
334
- } catch (error) {
335
- this.logError(error);
336
- return 1;
337
- } finally {
338
- if (shutdownOnExit) {
339
- shutdownOnExit();
340
- }
341
- }
342
- }
343
-
344
- /**
345
- * @private
346
- * @method callHelp
347
- * @param options
348
- * @return {Promise}
349
- */
350
- callHelp(options) {
351
- let environment = options.environment;
352
- let commandName = options.commandName;
353
- let commandArgs = options.commandArgs;
354
- let helpIndex = commandArgs.indexOf(&#x27;--help&#x27;);
355
- let hIndex = commandArgs.indexOf(&#x27;-h&#x27;);
356
-
357
- let HelpCommand = lookupCommand(environment.commands, &#x27;help&#x27;, commandArgs, {
358
- project: environment.project,
359
- ui: this.ui,
360
- });
361
-
362
- let help = new HelpCommand({
363
- ui: this.ui,
364
- analytics: this.analytics,
365
- commands: environment.commands,
366
- tasks: environment.tasks,
367
- project: environment.project,
368
- settings: environment.settings,
369
- testing: this.testing,
370
- });
371
-
372
- if (helpIndex &gt; -1) {
373
- commandArgs.splice(helpIndex, 1);
374
- }
375
-
376
- if (hIndex &gt; -1) {
377
- commandArgs.splice(hIndex, 1);
378
- }
379
-
380
- commandArgs.unshift(commandName);
381
-
382
- return help.validateAndRun(commandArgs);
383
- }
384
-
385
- /**
386
- * @private
387
- * @method logError
388
- * @param error
389
- * @return {number}
390
- */
391
- logError(error) {
392
- if (this.testing &amp;&amp; error) {
393
- console.error(error.message);
394
- if (error.stack) {
395
- console.error(error.stack);
396
- }
397
- throw error;
398
- }
399
- this.ui.errorLog.push(error);
400
- this.ui.writeError(error);
401
- return 1;
402
- }
403
- }
404
-
405
- module.exports = CLI;
406
-
407
- </pre>
408
-
409
- </div>
410
- </div>
411
- </div>
412
- </div>
413
- <script src="../assets/vendor/prettify/prettify-min.js"></script>
414
- <script>prettyPrint();</script>
415
- <script src="../assets/js/yui-prettify.js"></script>
416
- </body>
417
- </html>
@@ -1,112 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>lib/models/addon-info.js - 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
-
69
-
70
-
71
- <div class="version-info">
72
- Version: 4.0.0-release-b4cbb1029f
73
- </div>
74
-
75
- </div>
76
-
77
- <div id="main" class="yui3-u">
78
- <div class="content"><div class="title">
79
- <h1 class="file-name">lib/models/addon-info.js</h1>
80
- </div>
81
-
82
- <pre class="code prettyprint linenums">
83
- &#x27;use strict&#x27;;
84
-
85
- /**
86
- * A simple class to store metadata info about an addon. This replaces a plain JS object
87
- * that used to be created with the same fields.
88
- *
89
- * @module ember-cli
90
- */
91
-
92
- class AddonInfo {
93
- constructor(name, path, pkg) {
94
- this.name = name;
95
- this.path = path;
96
- this.pkg = pkg;
97
- }
98
- }
99
-
100
- module.exports = AddonInfo;
101
-
102
- </pre>
103
-
104
- </div>
105
- </div>
106
- </div>
107
- </div>
108
- <script src="../assets/vendor/prettify/prettify-min.js"></script>
109
- <script>prettyPrint();</script>
110
- <script src="../assets/js/yui-prettify.js"></script>
111
- </body>
112
- </html>