ember-cli 4.0.0 → 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 (107) hide show
  1. package/.github/workflows/ci.yml +4 -4
  2. package/CHANGELOG.md +17 -2
  3. package/blueprints/app/files/package.json +2 -2
  4. package/docs/build/data.json +3 -3
  5. package/lib/models/host-info-cache.js +3 -5
  6. package/lib/models/per-bundle-addon-cache/index.js +2 -3
  7. package/lib/utilities/get-lang-arg.js +45 -45
  8. package/package.json +25 -25
  9. package/.github/ISSUE_TEMPLATE.md +0 -12
  10. package/.github/dependabot.yml +0 -15
  11. package/.github/workflows/coverage.yml +0 -31
  12. package/docs/analytics.md +0 -44
  13. package/docs/architecture.md +0 -316
  14. package/docs/assets/architecture/Ember-CLI architecture.png +0 -0
  15. package/docs/assets/architecture/Ember-CLI architecture.xml +0 -1
  16. package/docs/assets/architecture/README.md +0 -5
  17. package/docs/brocfile-transition.md +0 -46
  18. package/docs/build/api.js +0 -44
  19. package/docs/build/assets/css/external-small.png +0 -0
  20. package/docs/build/assets/css/logo.png +0 -0
  21. package/docs/build/assets/css/main.css +0 -555
  22. package/docs/build/assets/favicon.ico +0 -0
  23. package/docs/build/assets/img/spinner.gif +0 -0
  24. package/docs/build/assets/index.html +0 -10
  25. package/docs/build/assets/js/api-filter.js +0 -56
  26. package/docs/build/assets/js/api-list.js +0 -255
  27. package/docs/build/assets/js/api-search.js +0 -98
  28. package/docs/build/assets/js/apidocs.js +0 -376
  29. package/docs/build/assets/js/yui-prettify.js +0 -17
  30. package/docs/build/assets/vendor/prettify/CHANGES.html +0 -130
  31. package/docs/build/assets/vendor/prettify/COPYING +0 -202
  32. package/docs/build/assets/vendor/prettify/README.html +0 -203
  33. package/docs/build/assets/vendor/prettify/prettify-min.css +0 -1
  34. package/docs/build/assets/vendor/prettify/prettify-min.js +0 -1
  35. package/docs/build/classes/Addon.html +0 -4318
  36. package/docs/build/classes/AmdTransformAddon.html +0 -202
  37. package/docs/build/classes/Blueprint.html +0 -4796
  38. package/docs/build/classes/Builder.html +0 -611
  39. package/docs/build/classes/CLI.html +0 -810
  40. package/docs/build/classes/Command.html +0 -1655
  41. package/docs/build/classes/DefaultPackager.html +0 -202
  42. package/docs/build/classes/EmberAddon.html +0 -2207
  43. package/docs/build/classes/EmberApp.html +0 -2225
  44. package/docs/build/classes/HardwareInfo.html +0 -620
  45. package/docs/build/classes/HistorySupportAddon.html +0 -203
  46. package/docs/build/classes/Instrumentation.html +0 -695
  47. package/docs/build/classes/NodeModulesList.html +0 -460
  48. package/docs/build/classes/NpmTask.html +0 -333
  49. package/docs/build/classes/PackageInfo.html +0 -1390
  50. package/docs/build/classes/PackageInfoCache.html +0 -963
  51. package/docs/build/classes/PerBundleAddonCache {.html +0 -1010
  52. package/docs/build/classes/Project.html +0 -2083
  53. package/docs/build/classes/ServeFilesAddon.html +0 -260
  54. package/docs/build/classes/TestsServerAddon.html +0 -203
  55. package/docs/build/classes/WatcherAddon.html +0 -204
  56. package/docs/build/classes/WindowsSymlinkChecker.html +0 -1505
  57. package/docs/build/files/lib_broccoli_default-packager.js.html +0 -1426
  58. package/docs/build/files/lib_broccoli_ember-addon.js.html +0 -159
  59. package/docs/build/files/lib_broccoli_ember-app.js.html +0 -1913
  60. package/docs/build/files/lib_cli_cli.js.html +0 -417
  61. package/docs/build/files/lib_models_addon-info.js.html +0 -112
  62. package/docs/build/files/lib_models_addon.js.html +0 -1866
  63. package/docs/build/files/lib_models_blueprint.js.html +0 -1678
  64. package/docs/build/files/lib_models_builder.js.html +0 -417
  65. package/docs/build/files/lib_models_command.js.html +0 -804
  66. package/docs/build/files/lib_models_hardware-info.js.html +0 -479
  67. package/docs/build/files/lib_models_host-info-cache.js.html +0 -428
  68. package/docs/build/files/lib_models_installation-checker.js.html +0 -181
  69. package/docs/build/files/lib_models_instantiate-addons.js.html +0 -191
  70. package/docs/build/files/lib_models_instrumentation.js.html +0 -433
  71. package/docs/build/files/lib_models_package-info-cache_index.js.html +0 -793
  72. package/docs/build/files/lib_models_package-info-cache_node-modules-list.js.html +0 -208
  73. package/docs/build/files/lib_models_package-info-cache_package-info.js.html +0 -661
  74. package/docs/build/files/lib_models_per-bundle-addon-cache_addon-proxy.js.html +0 -252
  75. package/docs/build/files/lib_models_per-bundle-addon-cache_index.js.html +0 -485
  76. package/docs/build/files/lib_models_per-bundle-addon-cache_target-instance.js.html +0 -108
  77. package/docs/build/files/lib_models_project.js.html +0 -913
  78. package/docs/build/files/lib_models_task.js.html +0 -117
  79. package/docs/build/files/lib_tasks_build-watch.js.html +0 -157
  80. package/docs/build/files/lib_tasks_npm-task.js.html +0 -463
  81. package/docs/build/files/lib_tasks_serve.js.html +0 -207
  82. package/docs/build/files/lib_tasks_server_middleware_broccoli-serve-files_index.js.html +0 -127
  83. package/docs/build/files/lib_tasks_server_middleware_broccoli-watcher_index.js.html +0 -158
  84. package/docs/build/files/lib_tasks_server_middleware_history-support_index.js.html +0 -181
  85. package/docs/build/files/lib_tasks_server_middleware_tests-server_index.js.html +0 -171
  86. package/docs/build/files/lib_tasks_test-server.js.html +0 -167
  87. package/docs/build/files/lib_tasks_transforms_amd_index.js.html +0 -143
  88. package/docs/build/files/lib_utilities_ember-app-utils.js.html +0 -292
  89. package/docs/build/files/lib_utilities_insert-into-file.js.html +0 -219
  90. package/docs/build/files/lib_utilities_is-lazy-engine.js.html +0 -125
  91. package/docs/build/files/lib_utilities_is-yarn-project.js.html +0 -120
  92. package/docs/build/files/lib_utilities_valid-project-name.js.html +0 -142
  93. package/docs/build/files/lib_utilities_will-interrupt-process.js.html +0 -290
  94. package/docs/build/files/lib_utilities_windows-admin.js.html +0 -230
  95. package/docs/build/index.html +0 -125
  96. package/docs/build/modules/ember-cli.html +0 -152
  97. package/docs/build/modules/is-lazy-engine.html +0 -106
  98. package/docs/build-concurrency.md +0 -15
  99. package/docs/build-pipeline-debugging.md +0 -33
  100. package/docs/code-coverage.md +0 -14
  101. package/docs/error-propagation.md +0 -136
  102. package/docs/experiments.md +0 -53
  103. package/docs/node-support.md +0 -43
  104. package/docs/perf-guide.md +0 -250
  105. package/docs/project_version_preprocessor.js +0 -8
  106. package/docs/sourcemaps.md +0 -60
  107. package/docs/yuidoc.json +0 -13
@@ -21,7 +21,7 @@ jobs:
21
21
 
22
22
  steps:
23
23
  - uses: actions/checkout@v2
24
- - uses: actions/setup-node@v2.1.5
24
+ - uses: actions/setup-node@v2.5.0
25
25
  with:
26
26
  node-version: 12.x
27
27
  cache: 'yarn'
@@ -39,7 +39,7 @@ jobs:
39
39
 
40
40
  steps:
41
41
  - uses: actions/checkout@v2
42
- - uses: actions/setup-node@v2.1.5
42
+ - uses: actions/setup-node@v2.5.0
43
43
  with:
44
44
  node-version: 12.x
45
45
  cache: 'yarn'
@@ -61,7 +61,7 @@ jobs:
61
61
 
62
62
  steps:
63
63
  - uses: actions/checkout@v2
64
- - uses: actions/setup-node@v2.1.5
64
+ - uses: actions/setup-node@v2.5.0
65
65
  with:
66
66
  node-version: ${{ matrix.node-version }}
67
67
  cache: 'yarn'
@@ -86,7 +86,7 @@ jobs:
86
86
 
87
87
  steps:
88
88
  - uses: actions/checkout@v2
89
- - uses: actions/setup-node@v2.1.5
89
+ - uses: actions/setup-node@v2.5.0
90
90
  with:
91
91
  node-version: 12.x
92
92
  cache: 'yarn'
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # ember-cli Changelog
2
2
 
3
+ ## v4.1.0-beta.1
4
+
5
+ #### Blueprint Changes
6
+
7
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.0.0...v4.1.0-beta.1)
8
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.0.0...v4.1.0-beta.1)
9
+
10
+ #### Changelog
11
+
12
+ - [#9431](https://github.com/ember-cli/ember-cli/pull/9431) replace fixtures with jest-like snapshots [@lifeart](https://github.com/lifeart)
13
+ - [#9607](https://github.com/ember-cli/ember-cli/pull/9607) Add online editor files to update-output-repos script [@NullVoxPopuli](https://github.com/NullVoxPopuli)
14
+ - [#9700](https://github.com/ember-cli/ember-cli/pull/9700) [Chore] Update .npmignore to ignore .github and docs folders [@SergeAstapov](https://github.com/SergeAstapov)
15
+ - [#9728](https://github.com/ember-cli/ember-cli/pull/9728) eslint-plugin-mocha@^9.0.0 [@kellyselden](https://github.com/kellyselden)
16
+ - [#9729](https://github.com/ember-cli/ember-cli/pull/9729) is-language-code@^3.1.0 [@kellyselden](https://github.com/kellyselden)
17
+
18
+ Thank you to all who took the time to contribute!
19
+
3
20
  ## v4.0.0
4
21
 
5
22
  #### Blueprint Changes
@@ -12,13 +29,11 @@
12
29
  - [#9679](https://github.com/ember-cli/ember-cli/pull/9679) Bump ember-page-title from v6.2.2 to v7.0.0 [@raido](https://github.com/raido)
13
30
  - [#9694](https://github.com/ember-cli/ember-cli/pull/9694) test in node 16 LTS [@kellyselden](https://github.com/kellyselden)
14
31
  - [#9696](https://github.com/ember-cli/ember-cli/pull/9696) commands/init: Fix `--yarn` usage [@Turbo87](https://github.com/Turbo87)
15
-
16
32
  - [#9659](https://github.com/ember-cli/ember-cli/pull/9659) Ensure `ember-classic` ember-try scenario uses Ember 3.x [@rwjblue](https://github.com/rwjblue)
17
33
  - [#9661](https://github.com/ember-cli/ember-cli/pull/9661) Set default CI config blueprints to run all builds [@elwayman02](https://github.com/elwayman02)
18
34
  - [#9666](https://github.com/ember-cli/ember-cli/pull/9666) Remove IE11 comments from `config/target.js` in app blueprint [@bertdeblock](https://github.com/bertdeblock)
19
35
  - [#9667](https://github.com/ember-cli/ember-cli/pull/9667) Update eslint-plugin-qunit to v7 in blueprint [@bmish](https://github.com/bmish)
20
36
  - [#9670](https://github.com/ember-cli/ember-cli/pull/9670) Don't emit an error when the `lint:fix` script fails post blueprint generation [@bertdeblock](https://github.com/bertdeblock)
21
-
22
37
  - [#9574](https://github.com/ember-cli/ember-cli/pull/9574) Update link to Discord in README.md [@MelSumner](https://github.com/MelSumner)
23
38
  - [#9613](https://github.com/ember-cli/ember-cli/pull/9613) Fix test that started failing with v2.17.0 of qunit [@kategengler](https://github.com/kategengler)
24
39
  - [#9579](https://github.com/ember-cli/ember-cli/pull/9579) Add `--ci-provider` option to `ember new` and `ember addon` [@snewcomer](https://github.com/snewcomer)
@@ -41,14 +41,14 @@
41
41
  "ember-cli-inject-live-reload": "^2.1.0",
42
42
  "ember-cli-sri": "^2.1.1",
43
43
  "ember-cli-terser": "^4.0.2",
44
- "ember-data": "~4.0.2",
44
+ "ember-data": "~4.1.0-beta.0",
45
45
  "ember-export-application-global": "^2.0.1",
46
46
  "ember-fetch": "^8.1.1",
47
47
  "ember-load-initializers": "^2.1.2",
48
48
  "ember-page-title": "^7.0.0",
49
49
  "ember-qunit": "^5.1.5",
50
50
  "ember-resolver": "^8.0.3",
51
- "ember-source": "~4.0.1",
51
+ "ember-source": "~4.1.0-beta.1",
52
52
  "ember-template-lint": "^3.15.0<% if (welcome) { %>",
53
53
  "ember-welcome-page": "^6.0.0<% } %>",
54
54
  "eslint": "^7.32.0",
@@ -3,7 +3,7 @@
3
3
  "logo": "https://ember-cli.com/assets/images/ember-cli-logo-small-dark.png",
4
4
  "name": "ember-cli",
5
5
  "description": "Command line tool for developing ambitious ember.js apps",
6
- "version": "4.0.0-release-b4cbb1029f"
6
+ "version": "4.1.0-beta.1-beta-d79fe1e1b3"
7
7
  },
8
8
  "files": {
9
9
  "lib/broccoli/default-packager.js": {
@@ -2378,7 +2378,7 @@
2378
2378
  },
2379
2379
  {
2380
2380
  "file": "lib/models/per-bundle-addon-cache/index.js",
2381
- "line": 248,
2381
+ "line": 247,
2382
2382
  "description": "Called from PackageInfo.getAddonInstance(), return an instance of the requested\naddon or a Proxy, based on the type of addon and its bundle host.",
2383
2383
  "itemtype": "method",
2384
2384
  "name": "getAddonInstance",
@@ -5651,7 +5651,7 @@
5651
5651
  },
5652
5652
  {
5653
5653
  "file": "lib/models/host-info-cache.js",
5654
- "line": 272,
5654
+ "line": 270,
5655
5655
  "description": "This returns the LCA host for a given engine; we use the associated package info\nto compute this (see `getHostAddonInfo` above); this finds the lowest common ancestor\nthat is considered a host amongst _all_ engines by the same name in the project. This\nfunction is intended to replace the original behavior in `ember-engines`.\n\nFor more info, see the original implementation here:\n\nhttps://github.com/ember-engines/ember-engines/blob/master/packages/ember-engines/lib/utils/find-lca-host.js",
5656
5656
  "itemtype": "method",
5657
5657
  "name": "findLCAHost",
@@ -242,11 +242,9 @@ class HostInfoCache {
242
242
  path.push(currentPackageInfo);
243
243
 
244
244
  queue.push(
245
- ...[
246
- ...inRepoAddons,
247
- ...Object.values(dependencyPackages),
248
- ...Object.values(devDependencyPackages),
249
- ].map((pkgInfo) => ({ pkgInfo, path: [...path] }))
245
+ ...[...inRepoAddons, ...Object.values(dependencyPackages), ...Object.values(devDependencyPackages)].map(
246
+ (pkgInfo) => ({ pkgInfo, path: [...path] })
247
+ )
250
248
  );
251
249
  }
252
250
  }
@@ -234,9 +234,8 @@ class PerBundleAddonCache {
234
234
  return bundleHost;
235
235
  }
236
236
 
237
- let { hostPackageInfo, hostAndAncestorBundledPackageInfos } = this.project.hostInfoCache.getHostAddonInfo(
238
- bundleHost
239
- );
237
+ let { hostPackageInfo, hostAndAncestorBundledPackageInfos } =
238
+ this.project.hostInfoCache.getHostAddonInfo(bundleHost);
240
239
 
241
240
  if (!hostAndAncestorBundledPackageInfos.has(addonPkgInfo)) {
242
241
  return bundleHost;
@@ -1,6 +1,6 @@
1
- /*
1
+ /*
2
2
 
3
- This utility processes the argument passed with the `lang` option
3
+ This utility processes the argument passed with the `lang` option
4
4
  in ember-cli, i.e. `ember (new||init||addon) app-name --lang=langArg`
5
5
 
6
6
  Execution Context (usage, input, output, error handling, etc.):
@@ -35,11 +35,11 @@ Warning Messages (if necessary):
35
35
 
36
36
  'use strict';
37
37
 
38
- const getLangCodeInfo = require('is-language-code');
38
+ const { isLangCode } = require('is-language-code');
39
39
 
40
40
  // Primary language code validation function (boolean)
41
41
  function isValidLangCode(langArg) {
42
- return getLangCodeInfo(langArg).res;
42
+ return isLangCode(langArg).res;
43
43
  }
44
44
 
45
45
  // Generates the result to pass back to `init`
@@ -48,29 +48,29 @@ function getResult(langArg) {
48
48
  }
49
49
 
50
50
  /*
51
- Misuse case: attempt to set application programming language via `lang`
51
+ Misuse case: attempt to set application programming language via `lang`
52
52
  AND
53
53
  Edge case: valid language code AND a common programming language abbreviation
54
54
  -------------------------------------------------------------------------------
55
- It is possible that a user might mis-interpret the type of `language` that is
56
- specified by the `--lang` flag. One notable potential `misuse case` is one in
57
- which the user thinks `--lang` specifies the application's programming
58
- language. For example, the user might call `ember new my-app --lang=typescript`
59
- expecting to achieve an effect similar to the one provided by the
55
+ It is possible that a user might mis-interpret the type of `language` that is
56
+ specified by the `--lang` flag. One notable potential `misuse case` is one in
57
+ which the user thinks `--lang` specifies the application's programming
58
+ language. For example, the user might call `ember new my-app --lang=typescript`
59
+ expecting to achieve an effect similar to the one provided by the
60
60
  `ember-cli-typescript` addon.
61
61
 
62
- This misuse case is handled by checking the input `langArg` against an Array
63
- containing notable programming language-related values: language names
64
- (e.g. `JavaScript`), abbreviations (e.g. `js`), file extensions (e.g. `.js`),
65
- or versions (e.g. `ES6`), etc. Specifically, if `langArg` is found within this
66
- reference list, a WARNING message that describes correct `--lang` usage will
67
- be emitted. The `lang` attribute will not be assigned in `index.html`, and the
62
+ This misuse case is handled by checking the input `langArg` against an Array
63
+ containing notable programming language-related values: language names
64
+ (e.g. `JavaScript`), abbreviations (e.g. `js`), file extensions (e.g. `.js`),
65
+ or versions (e.g. `ES6`), etc. Specifically, if `langArg` is found within this
66
+ reference list, a WARNING message that describes correct `--lang` usage will
67
+ be emitted. The `lang` attribute will not be assigned in `index.html`, and the
68
68
  user will be notified with a corresponding STATUS message.
69
69
 
70
70
  There are several edge cases (marked) where `langArg` is both a commonly-used
71
- abbreviation for a programming language AND a valid language code. The behavior
72
- for these cases is to assume the user has used `--lang` correctly and set the
73
- `lang` attribute to the valid code in `index.html`. To cover for potential
71
+ abbreviation for a programming language AND a valid language code. The behavior
72
+ for these cases is to assume the user has used `--lang` correctly and set the
73
+ `lang` attribute to the valid code in `index.html`. To cover for potential
74
74
  misuage, several helpful messages will also be emitted:
75
75
  - `ts` is a valid language code AND a common programming language abbreviation
76
76
  - the `lang` attribute will be set to `ts` in the application
@@ -141,44 +141,44 @@ function isValidCodeAndProg(langArg) {
141
141
  return isValidLangCode(langArg) && isProgLang(langArg);
142
142
  }
143
143
 
144
- /*
144
+ /*
145
145
  Misuse case: `--lang` called without `langArg` (NB: parser bug workaround)
146
146
  -------------------------------------------------------------------------------
147
- This is a workaround for handling an existing bug in the ember-cli parser
148
- where the `--lang` option is specified in the command without a corresponding
149
- value for `langArg`.
147
+ This is a workaround for handling an existing bug in the ember-cli parser
148
+ where the `--lang` option is specified in the command without a corresponding
149
+ value for `langArg`.
150
150
 
151
- As examples, the parser behavior would likely affect the following usages:
151
+ As examples, the parser behavior would likely affect the following usages:
152
152
  1. `ember new app-name --lang --skip-npm
153
153
  2. `ember new app-name --lang`
154
154
 
155
- In this context, the unintended parser behavior is that `langArg` will be
156
- assingned to the String that immediately follows `--lang` in the command. If
157
- `--lang` is the last explicitly defined part of the command (as in the second
158
- example above), the first of any any `hidden` options pushed onto the command
159
- after the initial parse (e.g. `--disable-analytics`, `--no-watcher`) will be
160
- used when assigning `langArg`.
155
+ In this context, the unintended parser behavior is that `langArg` will be
156
+ assingned to the String that immediately follows `--lang` in the command. If
157
+ `--lang` is the last explicitly defined part of the command (as in the second
158
+ example above), the first of any any `hidden` options pushed onto the command
159
+ after the initial parse (e.g. `--disable-analytics`, `--no-watcher`) will be
160
+ used when assigning `langArg`.
161
161
 
162
162
  In the above examples, `langArg` would likely be assigned as follows:
163
163
  1. `ember new app-name --lang --skip-npm => `langArg='--skip-npm'`
164
164
  2. `ember new app-name --lang` => `langArg='--disable-analytics'`
165
165
 
166
- The workaround impelemented herein is to check whether or not the value of
167
- `langArg` starts with a hyphen. The rationale for this approach is based on
166
+ The workaround impelemented herein is to check whether or not the value of
167
+ `langArg` starts with a hyphen. The rationale for this approach is based on
168
168
  the following underlying assumptions:
169
169
  - ALL CLI options start with (at least one) hyphen
170
170
  - NO valid language codes start with a hyphen
171
171
 
172
- If the leading hyphen is detected, the current behavior is to assume `--lang`
173
- was declared without a corresponding specification. A WARNING message that
174
- describes correct `--lang` usage will be emitted. The `lang` attribute will not
175
- be assigned in `index.html`, and the user will be notified with a corresponding
172
+ If the leading hyphen is detected, the current behavior is to assume `--lang`
173
+ was declared without a corresponding specification. A WARNING message that
174
+ describes correct `--lang` usage will be emitted. The `lang` attribute will not
175
+ be assigned in `index.html`, and the user will be notified with a corresponding
176
176
  STATUS message. Execution will not be halted.
177
177
 
178
- Other complications related to this parser behavior are considered out-of-scope
179
- and not handled here. In the first example above, this workaround would ensure
180
- that `lang` is not assigned to `--skip-npm`, but it would not guarantee that
181
- `--skip-npm` is correctly processed as a command option. That is, `npm` may or
178
+ Other complications related to this parser behavior are considered out-of-scope
179
+ and not handled here. In the first example above, this workaround would ensure
180
+ that `lang` is not assigned to `--skip-npm`, but it would not guarantee that
181
+ `--skip-npm` is correctly processed as a command option. That is, `npm` may or
182
182
  may not get skipped during execution.
183
183
  */
184
184
 
@@ -194,12 +194,12 @@ const MSG_HEAD = `An issue with the \`--lang\` flag returned the following messa
194
194
 
195
195
  // Message context from language code validation (valid: null, invalid: reason)
196
196
  function getLangCodeMsg(langArg) {
197
- return getLangCodeInfo(langArg).message;
197
+ return isLangCode(langArg).message;
198
198
  }
199
199
 
200
200
  // Edge case: valid language code AND a common programming language abbreviation
201
201
  function getValidAndProgMsg(langArg) {
202
- return `The \`--lang\` flag has been used with argument \`${langArg}\`,
202
+ return `The \`--lang\` flag has been used with argument \`${langArg}\`,
203
203
  which is BOTH a valid language code AND an abbreviation for a programming language.
204
204
  ${getProgLangMsg(langArg)}`;
205
205
  }
@@ -218,15 +218,15 @@ function getCliMsg() {
218
218
 
219
219
  // 3. `STATUS` message: report if `lang` will be set in `index.html`
220
220
  function getStatusMsg(langArg, willSet) {
221
- return `The human language of the application will ${willSet ? `be set to ${langArg}` : `NOT be set`} in
221
+ return `The human language of the application will ${willSet ? `be set to ${langArg}` : `NOT be set`} in
222
222
  the \`<html>\` element's \`lang\` attribute in \`index.html\`.`;
223
223
  }
224
224
 
225
225
  // 4. `HELP` message: template for all `--lang`-related warnings emitted
226
- const MSG_HELP = `If this was not your intention, you may edit the \`<html>\` element's
226
+ const MSG_HELP = `If this was not your intention, you may edit the \`<html>\` element's
227
227
  \`lang\` attribute in \`index.html\` manually after the process is complete.
228
228
  Information about using the \`--lang\` flag:
229
- The \`--lang\` flag sets the base human language of an app or test app:
229
+ The \`--lang\` flag sets the base human language of an app or test app:
230
230
  - \`app/index.html\` (app)
231
231
  - \`tests/dummy/app/index.html\` (addon test app)
232
232
  If used, the lang option must specfify a valid language code.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-cli",
3
- "version": "4.0.0",
3
+ "version": "4.1.0-beta.1",
4
4
  "description": "Command line tool for developing ambitious ember.js apps",
5
5
  "keywords": [
6
6
  "app",
@@ -37,13 +37,13 @@
37
37
  "test:slow": "node --unhandled-rejections=strict tests/runner slow"
38
38
  },
39
39
  "dependencies": {
40
- "@babel/core": "^7.13.8",
40
+ "@babel/core": "^7.16.0",
41
41
  "@babel/plugin-transform-modules-amd": "^7.12.1",
42
42
  "amd-name-resolver": "^1.3.1",
43
43
  "babel-plugin-module-resolver": "^4.1.0",
44
44
  "bower-config": "^1.4.3",
45
45
  "bower-endpoint-parser": "0.2.2",
46
- "broccoli": "^3.5.1",
46
+ "broccoli": "^3.5.2",
47
47
  "broccoli-amd-funnel": "^2.0.1",
48
48
  "broccoli-babel-transpiler": "^7.8.0",
49
49
  "broccoli-builder": "^0.18.14",
@@ -51,17 +51,17 @@
51
51
  "broccoli-config-loader": "^1.0.1",
52
52
  "broccoli-config-replace": "^1.1.2",
53
53
  "broccoli-debug": "^0.6.5",
54
- "broccoli-funnel": "^3.0.5",
54
+ "broccoli-funnel": "^3.0.8",
55
55
  "broccoli-funnel-reducer": "^1.0.0",
56
56
  "broccoli-merge-trees": "^3.0.2",
57
57
  "broccoli-middleware": "^2.1.1",
58
58
  "broccoli-slow-trees": "^3.1.0",
59
- "broccoli-source": "^3.0.0",
59
+ "broccoli-source": "^3.0.1",
60
60
  "broccoli-stew": "^3.0.0",
61
61
  "calculate-cache-key-for-tree": "^2.0.0",
62
62
  "capture-exit": "^2.0.0",
63
63
  "chalk": "^4.1.0",
64
- "ci-info": "^2.0.0",
64
+ "ci-info": "^3.3.0",
65
65
  "clean-base-url": "^1.0.0",
66
66
  "compression": "^1.7.4",
67
67
  "configstore": "^5.0.1",
@@ -76,10 +76,10 @@
76
76
  "ember-cli-string-utils": "^1.1.0",
77
77
  "ember-source-channel-url": "^3.0.0",
78
78
  "ensure-posix-path": "^1.1.1",
79
- "execa": "^5.0.0",
79
+ "execa": "^5.1.1",
80
80
  "exit": "^0.1.2",
81
81
  "express": "^4.17.1",
82
- "filesize": "^6.1.0",
82
+ "filesize": "^8.0.6",
83
83
  "find-up": "^5.0.0",
84
84
  "find-yarn-workspace-root": "^2.0.0",
85
85
  "fixturify-project": "^2.1.1",
@@ -87,16 +87,16 @@
87
87
  "fs-tree-diff": "^2.0.1",
88
88
  "get-caller-file": "^2.0.5",
89
89
  "git-repo-info": "^2.1.1",
90
- "glob": "^7.1.6",
90
+ "glob": "^7.2.0",
91
91
  "heimdalljs": "^0.2.6",
92
- "heimdalljs-fs-monitor": "^1.1.0",
92
+ "heimdalljs-fs-monitor": "^1.1.1",
93
93
  "heimdalljs-graph": "^1.0.0",
94
94
  "heimdalljs-logger": "^0.1.10",
95
95
  "http-proxy": "^1.18.1",
96
- "inflection": "^1.12.0",
96
+ "inflection": "^1.13.1",
97
97
  "is-git-url": "^1.0.0",
98
- "is-language-code": "^2.0.0",
99
- "isbinaryfile": "^4.0.6",
98
+ "is-language-code": "^3.1.0",
99
+ "isbinaryfile": "^4.0.8",
100
100
  "js-yaml": "^3.14.0",
101
101
  "json-stable-stringify": "^1.0.1",
102
102
  "leek": "0.0.24",
@@ -106,7 +106,7 @@
106
106
  "minimatch": "^3.0.4",
107
107
  "morgan": "^1.10.0",
108
108
  "nopt": "^3.0.6",
109
- "npm-package-arg": "^8.1.1",
109
+ "npm-package-arg": "^8.1.5",
110
110
  "p-defer": "^3.0.0",
111
111
  "portfinder": "^1.0.28",
112
112
  "promise-map-series": "^0.3.0",
@@ -114,7 +114,7 @@
114
114
  "quick-temp": "^0.1.8",
115
115
  "resolve": "^1.20.0",
116
116
  "resolve-package-path": "^3.1.0",
117
- "sane": "^4.1.0",
117
+ "sane": "^5.0.1",
118
118
  "semver": "^7.3.4",
119
119
  "silent-error": "^1.1.1",
120
120
  "sort-package-json": "^1.49.0",
@@ -131,33 +131,33 @@
131
131
  },
132
132
  "devDependencies": {
133
133
  "@ember/edition-utils": "^1.2.0",
134
- "@octokit/rest": "^18.0.15",
134
+ "@octokit/rest": "^18.12.0",
135
135
  "broccoli-plugin": "^4.0.3",
136
136
  "broccoli-test-helper": "^2.0.0",
137
137
  "chai": "^4.3.4",
138
138
  "chai-as-promised": "^7.1.1",
139
139
  "chai-files": "^1.4.0",
140
+ "chai-jest-snapshot": "^2.0.0",
140
141
  "ember-cli-blueprint-test-helpers": "^0.19.2",
141
142
  "ember-cli-internal-test-helpers": "^0.9.1",
142
143
  "eslint": "^7.11.0",
143
144
  "eslint-config-prettier": "^7.2.0",
144
- "eslint-plugin-chai-expect": "^2.2.0",
145
- "eslint-plugin-mocha": "^8.1.0",
145
+ "eslint-plugin-chai-expect": "^3.0.0",
146
+ "eslint-plugin-mocha": "^9.0.0",
146
147
  "eslint-plugin-node": "^11.1.0",
147
148
  "eslint-plugin-prettier": "^3.3.1",
148
149
  "fixturify": "^2.1.0",
149
- "is-language-code": "^2.0.0",
150
- "jsdom": "^16.4.0",
150
+ "jsdom": "^19.0.0",
151
151
  "latest-version": "^5.1.0",
152
152
  "mocha": "^8.3.2",
153
- "nock": "^13.0.5",
153
+ "nock": "^13.2.1",
154
154
  "nyc": "^15.1.0",
155
- "prettier": "2.2.1",
156
- "release-it": "^14.4.1",
155
+ "prettier": "2.5.1",
156
+ "release-it": "^14.11.6",
157
157
  "rimraf": "^3.0.2",
158
158
  "strip-ansi": "^6.0.0",
159
- "supertest": "^6.1.3",
160
- "testdouble": "^3.16.1",
159
+ "supertest": "^6.1.6",
160
+ "testdouble": "^3.16.3",
161
161
  "tmp": "^0.2.1",
162
162
  "websocket": "^1.0.32",
163
163
  "which": "2.0.2",
@@ -1,12 +0,0 @@
1
- Thank you for taking the time to open an issue!
2
-
3
- For bug reports please include the following section in your issue details.
4
- If you include instructions on how to reproduce the bug or a failing test case
5
- it will make it easier for us to track down the issue you're having.
6
-
7
- ---
8
-
9
- Output from `ember version --verbose && npm --version && yarn --version`:
10
- ```
11
- [Replace this line with the output.]
12
- ```
@@ -1,15 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: npm
4
- directory: "/"
5
- schedule:
6
- interval: monthly
7
- time: "03:00"
8
- open-pull-requests-limit: 10
9
- versioning-strategy: increase
10
- - package-ecosystem: github-actions
11
- directory: "/"
12
- schedule:
13
- interval: monthly
14
- time: "03:00"
15
- open-pull-requests-limit: 10
@@ -1,31 +0,0 @@
1
- name: Code Coverage
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
-
8
- jobs:
9
- coverage:
10
- runs-on: ubuntu-latest
11
-
12
- steps:
13
- - uses: actions/checkout@v1
14
- - uses: actions/setup-node@v2.1.5
15
- with:
16
- node-version: 12.x
17
-
18
- - run: yarn install --frozen-lockfile --non-interactive
19
-
20
- - name: Test && Report to Code Climate
21
- uses: paambaati/codeclimate-action@v2.7.5
22
- env:
23
- CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
24
- with:
25
- coverageCommand: yarn test:cover
26
- coverageLocations: "coverage/lcov.info:lcov"
27
-
28
- - name: Coveralls
29
- uses: coverallsapp/github-action@master
30
- with:
31
- github-token: ${{ secrets.GITHUB_TOKEN }}
package/docs/analytics.md DELETED
@@ -1,44 +0,0 @@
1
- # Analytics:
2
-
3
- Ember-cli tracks (only) the following data points:
4
-
5
- * ember-cli version
6
- * build/rebuild/live-reload times
7
- * how many errors occurred
8
-
9
- ** note: no personally identifying information is tracked, if something is
10
- being leaked please [disclose responsibly](https://emberjs.com/security) **
11
-
12
- This information is used to:
13
-
14
- * See if there are upgrade blockers (users stuck on old version)
15
- * Have a broad idea for build performance (to make sure we don't regress, and how to prioritize)
16
- * See which high-level features are used (serve/test/build/generate etc.)
17
- * See an increase/decrease in error rates
18
-
19
- ## Still Not comfortable?
20
-
21
- We understand! To permanently disable any analytics gathering you can update your project's `.ember-cli` file (or `$HOME/.ember-cli` for user-wide):
22
-
23
- ```json
24
- {
25
- "disableAnalytics": true
26
- }
27
- ```
28
-
29
- ## Who has access
30
-
31
- The ember and ember-cli core teams.
32
-
33
- ## Links to each code-point where ember-cli emits tracking information
34
-
35
- * command name (ember server, ember exam, etc.): to understand what high-level features are used
36
- * https://github.com/ember-cli/ember-cli/blob/2da9de596370c0e78ea0c0c3ffcd6a551d2863a9/lib/models/command.js#L277
37
- * build error: the name of the error
38
- * https://github.com/ember-cli/ember-cli/blob/6ec50a1fd21d961f0b0e2ca4daf66a8e7dea6417/lib/models/watcher.js#L32-L34
39
- * build/rebuild time
40
- * https://github.com/ember-cli/ember-cli/blob/503ede1fcb5224d54dc36f82af84550a91d90f26/lib/tasks/build.js#L33
41
- * https://github.com/ember-cli/ember-cli/blob/503ede1fcb5224d54dc36f82af84550a91d90f26/lib/tasks/build.js#L44
42
- * live reload
43
- * https://github.com/ember-cli/ember-cli/blob/503ede1fcb5224d54dc36f82af84550a91d90f26/lib/tasks/server/livereload-server.js#L167
44
- * https://github.com/ember-cli/ember-cli/blob/503ede1fcb5224d54dc36f82af84550a91d90f26/lib/tasks/server/livereload-server.js#L181