ember-cli 4.3.0 → 4.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/.github/workflows/ci.yml +8 -8
  2. package/CHANGELOG.md +51 -0
  3. package/blueprints/addon/additional-dev-dependencies.json +1 -1
  4. package/blueprints/addon/files/.github/workflows/ci.yml +9 -6
  5. package/blueprints/addon/files/.travis.yml +1 -1
  6. package/blueprints/addon/files/CONTRIBUTING.md +1 -1
  7. package/blueprints/addon/files/README.md +6 -12
  8. package/blueprints/addon/index.js +3 -4
  9. package/blueprints/app/files/.github/workflows/ci.yml +6 -4
  10. package/blueprints/app/files/.travis.yml +1 -1
  11. package/blueprints/app/files/README.md +1 -1
  12. package/blueprints/app/files/config/environment.js +0 -4
  13. package/blueprints/app/files/package.json +15 -16
  14. package/blueprints/app/index.js +2 -0
  15. package/docs/build/data.json +95 -68
  16. package/lib/broccoli/default-packager.js +2 -2
  17. package/lib/broccoli/ember-addon.js +1 -1
  18. package/lib/broccoli/ember-app.js +30 -4
  19. package/lib/broccoli/vendor-prefix.js +7 -0
  20. package/lib/cli/cli.js +1 -1
  21. package/lib/cli/index.js +1 -1
  22. package/lib/commands/destroy.js +1 -1
  23. package/lib/commands/generate.js +3 -3
  24. package/lib/commands/init.js +1 -2
  25. package/lib/models/addon.js +1 -1
  26. package/lib/models/blueprint.js +23 -15
  27. package/lib/models/command.js +10 -15
  28. package/lib/models/project.js +10 -10
  29. package/lib/tasks/addon-install.js +1 -1
  30. package/lib/tasks/create-and-step-into-directory.js +2 -26
  31. package/lib/tasks/generate-from-blueprint.js +1 -1
  32. package/lib/tasks/install-blueprint.js +1 -1
  33. package/lib/tasks/server/express-server.js +1 -1
  34. package/lib/tasks/server/livereload-server.js +1 -1
  35. package/lib/utilities/directory-for-package-name.js +31 -0
  36. package/lib/utilities/markdown-color.js +1 -1
  37. package/package.json +14 -14
  38. package/tests/helpers/default-packager.js +0 -1
  39. package/tests/helpers/fixturify-project.js +1 -1
  40. package/tests/helpers/run-command.js +1 -1
  41. package/blueprints/addon/files/gitignore +0 -2
@@ -24,8 +24,8 @@ jobs:
24
24
  runs-on: ubuntu-latest
25
25
 
26
26
  steps:
27
- - uses: actions/checkout@v2
28
- - uses: actions/setup-node@v2.5.1
27
+ - uses: actions/checkout@v3
28
+ - uses: actions/setup-node@v3
29
29
  with:
30
30
  node-version: 12.x
31
31
  cache: 'yarn'
@@ -42,8 +42,8 @@ jobs:
42
42
  os: [ubuntu, macOS, windows]
43
43
 
44
44
  steps:
45
- - uses: actions/checkout@v2
46
- - uses: actions/setup-node@v2.5.1
45
+ - uses: actions/checkout@v3
46
+ - uses: actions/setup-node@v3
47
47
  with:
48
48
  node-version: 12.x
49
49
  cache: 'yarn'
@@ -64,8 +64,8 @@ jobs:
64
64
  os: [ubuntu, windows]
65
65
 
66
66
  steps:
67
- - uses: actions/checkout@v2
68
- - uses: actions/setup-node@v2.5.1
67
+ - uses: actions/checkout@v3
68
+ - uses: actions/setup-node@v3
69
69
  with:
70
70
  node-version: ${{ matrix.node-version }}
71
71
  cache: 'yarn'
@@ -89,8 +89,8 @@ jobs:
89
89
  - CLASSIC
90
90
 
91
91
  steps:
92
- - uses: actions/checkout@v2
93
- - uses: actions/setup-node@v2.5.1
92
+ - uses: actions/checkout@v3
93
+ - uses: actions/setup-node@v3
94
94
  with:
95
95
  node-version: 12.x
96
96
  cache: 'yarn'
package/CHANGELOG.md CHANGED
@@ -1,5 +1,56 @@
1
1
  # ember-cli Changelog
2
2
 
3
+ ## v4.5.0-beta.1
4
+
5
+ #### Blueprint Changes
6
+
7
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.4.0...v4.5.0-beta.1)
8
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.4.0...v4.5.0-beta.1)
9
+
10
+ #### Changelog
11
+
12
+ - [#9760](https://github.com/ember-cli/ember-cli/pull/9760) Add `timeout-minutes` to GitHub CI jobs in `app` and `addon` blueprints [@mansona](https://github.com/mansona)
13
+ - [#9777](https://github.com/ember-cli/ember-cli/pull/9777) [DOC] Add bower note [@jenweber](https://github.com/jenweber)
14
+ - [#9778](https://github.com/ember-cli/ember-cli/pull/9778) Prune lodash dependencies [@locks](https://github.com/locks)
15
+ - [#9785](https://github.com/ember-cli/ember-cli/pull/9785) Generate correct directory name in `README.md` and `CONTRIBUTING.md` files [@bertdeblock](https://github.com/bertdeblock)
16
+ - [#9805](https://github.com/ember-cli/ember-cli/pull/9805) Add Node v16 to `Node Support` docs [@bertdeblock](https://github.com/bertdeblock)
17
+ - [#9823](https://github.com/ember-cli/ember-cli/pull/9823) [RFC 801] Deprecate `blacklist` and `whitelist` build options [@bertdeblock](https://github.com/bertdeblock)
18
+ - [#9825](https://github.com/ember-cli/ember-cli/pull/9825) Remove `ember-export-application-global` addon from `app` blueprint [@bertdeblock](https://github.com/bertdeblock)
19
+ - [#9848](https://github.com/ember-cli/ember-cli/pull/9848) Update `ember-cli-dependency-checker` to v3.3.1 [@gnclmorais](https://github.com/gnclmorais)
20
+ - [#9857](https://github.com/ember-cli/ember-cli/pull/9857) Use `createBuilder` instead of deprecated `buildOutput` in test suite [@geneukum](https://github.com/geneukum)
21
+ - [#9858](https://github.com/ember-cli/ember-cli/pull/9858) Remove `EXTEND_PROTOTYPES` object in the app's `config/environment.js` file [@bertdeblock](https://github.com/bertdeblock)
22
+ - [#9859](https://github.com/ember-cli/ember-cli/pull/9859) Update `git.io` URLs [@bertdeblock](https://github.com/bertdeblock)
23
+ - [#9860](https://github.com/ember-cli/ember-cli/pull/9860) Add inline comment RE: `runningTests` variable [@bertdeblock](https://github.com/bertdeblock)
24
+ - [#9886](https://github.com/ember-cli/ember-cli/pull/9886) Remove deletion of `@ember/jquery` in addon blueprint [@bertdeblock](https://github.com/bertdeblock)
25
+ - [#9906](https://github.com/ember-cli/ember-cli/pull/9906) Drop support for Node v12 [@bertdeblock](https://github.com/bertdeblock)
26
+ - [#9909](https://github.com/ember-cli/ember-cli/pull/9909) Deprecate support for `ember-cli-jshint` [@bertdeblock](https://github.com/bertdeblock)
27
+ - [#9914](https://github.com/ember-cli/ember-cli/pull/9914) Temporarily skip failing ember new test for npm versions <= v6.0.0 [@bertdeblock](https://github.com/bertdeblock)
28
+ - [#9770](https://github.com/ember-cli/ember-cli/pull/9770) Include the addon’s name in the warning when a core command is overridden [@davecombs](https://github.com/davecombs)
29
+ - [#9890](https://github.com/ember-cli/ember-cli/pull/9890) Make sure addons are discovered only once [@wagenet](https://github.com/wagenet)
30
+ - [#9898](https://github.com/ember-cli/ember-cli/pull/9898) Remove deprecated `addonJsFiles` method on `addon` model [@bertdeblock](https://github.com/bertdeblock)
31
+ - [#9900](https://github.com/ember-cli/ember-cli/pull/9900) Remove unused CLI error class [@bertdeblock](https://github.com/bertdeblock)
32
+ - [#9917](https://github.com/ember-cli/ember-cli/pull/9917) update beta deps [@kellyselden](https://github.com/kellyselden)
33
+ - [#9919](https://github.com/ember-cli/ember-cli/pull/9919) Clean up `ember-addon` object in package file when destroying an in-repo addon [@bertdeblock](https://github.com/bertdeblock)
34
+
35
+ Thank you to all who took the time to contribute!
36
+
37
+ ## v4.4.0
38
+
39
+ #### Blueprint Changes
40
+
41
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.3.0...v4.4.0)
42
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.3.0...v4.4.0)
43
+
44
+ #### Changelog
45
+
46
+ - [#9611](https://github.com/ember-cli/ember-cli/pull/9611) use more standard markdown for addon readme [@mansona](https://github.com/mansona)
47
+ - [#9818](https://github.com/ember-cli/ember-cli/pull/9818) Update actions/checkout action to v3 [@SergeAstapov](https://github.com/SergeAstapov)
48
+ - [#9819](https://github.com/ember-cli/ember-cli/pull/9819) Update actions/setup-node action to v3 [@SergeAstapov](https://github.com/SergeAstapov)
49
+ - [#9822](https://github.com/ember-cli/ember-cli/pull/9822) Update `since.available` and `since.enabled` versions for Bower deprecations [@bertdeblock](https://github.com/bertdeblock)
50
+ - [#9850](https://github.com/ember-cli/ember-cli/pull/9850) Fix contents of addon `.gitignore` file [@bertdeblock](https://github.com/bertdeblock)
51
+
52
+ Thank you to all who took the time to contribute!
53
+
3
54
  ## v4.3.0
4
55
 
5
56
  #### Blueprint Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@embroider/test-setup": "^1.5.0",
3
+ "@embroider/test-setup": "^1.7.1",
4
4
  "ember-disable-prototype-extensions": "^1.1.3",
5
5
  "ember-try": "^2.0.0",
6
6
  "ember-source-channel-url": "^3.0.0"
@@ -15,11 +15,12 @@ jobs:
15
15
  test:
16
16
  name: "Tests"
17
17
  runs-on: ubuntu-latest
18
+ timeout-minutes: 10
18
19
 
19
20
  steps:
20
- - uses: actions/checkout@v2
21
+ - uses: actions/checkout@v3
21
22
  - name: Install Node
22
- uses: actions/setup-node@v2
23
+ uses: actions/setup-node@v3
23
24
  with:
24
25
  node-version: 12.x
25
26
  cache: <%= yarn ? 'yarn' : 'npm' %>
@@ -33,10 +34,11 @@ jobs:
33
34
  floating:
34
35
  name: "Floating Dependencies"
35
36
  runs-on: ubuntu-latest
37
+ timeout-minutes: 10
36
38
 
37
39
  steps:
38
- - uses: actions/checkout@v2
39
- - uses: actions/setup-node@v2
40
+ - uses: actions/checkout@v3
41
+ - uses: actions/setup-node@v3
40
42
  with:
41
43
  node-version: 12.x
42
44
  cache: <%= yarn ? 'yarn' : 'npm' %>
@@ -49,6 +51,7 @@ jobs:
49
51
  name: ${{ matrix.try-scenario }}
50
52
  runs-on: ubuntu-latest
51
53
  needs: "test"
54
+ timeout-minutes: 10
52
55
 
53
56
  strategy:
54
57
  fail-fast: false
@@ -64,9 +67,9 @@ jobs:
64
67
  - embroider-optimized
65
68
 
66
69
  steps:
67
- - uses: actions/checkout@v2
70
+ - uses: actions/checkout@v3
68
71
  - name: Install Node
69
- uses: actions/setup-node@v2
72
+ uses: actions/setup-node@v3
70
73
  with:
71
74
  node-version: 12.x
72
75
  cache: <%= yarn ? 'yarn' : 'npm' %>
@@ -19,7 +19,7 @@ cache:
19
19
  <% } %>
20
20
  env:
21
21
  global:
22
- # See https://git.io/vdao3 for details.
22
+ # See https://github.com/ember-cli/ember-cli/blob/master/docs/build-concurrency.md for details.
23
23
  - JOBS=1
24
24
 
25
25
  branches:
@@ -3,7 +3,7 @@
3
3
  ## Installation
4
4
 
5
5
  * `git clone <repository-url>`
6
- * `cd <%= addonName %>`
6
+ * `cd <%= addonDirectory %>`
7
7
  * `<% if (yarn) { %>yarn<% } else { %>npm<% } %> install`
8
8
 
9
9
  ## Linting
@@ -1,38 +1,32 @@
1
- <%= addonName %>
2
- ==============================================================================
1
+ # <%= addonName %>
3
2
 
4
3
  [Short description of the addon.]
5
4
 
6
5
 
7
- Compatibility
8
- ------------------------------------------------------------------------------
6
+ ## Compatibility
9
7
 
10
8
  * Ember.js v3.24 or above
11
9
  * Ember CLI v3.24 or above
12
10
  * Node.js v12 or above
13
11
 
14
12
 
15
- Installation
16
- ------------------------------------------------------------------------------
13
+ ## Installation
17
14
 
18
15
  ```
19
16
  ember install <%= addonName %>
20
17
  ```
21
18
 
22
19
 
23
- Usage
24
- ------------------------------------------------------------------------------
20
+ ## Usage
25
21
 
26
22
  [Longer description of how to use the addon in apps.]
27
23
 
28
24
 
29
- Contributing
30
- ------------------------------------------------------------------------------
25
+ ## Contributing
31
26
 
32
27
  See the [Contributing](CONTRIBUTING.md) guide for details.
33
28
 
34
29
 
35
- License
36
- ------------------------------------------------------------------------------
30
+ ## License
37
31
 
38
32
  This project is licensed under the [MIT License](LICENSE.md).
@@ -5,7 +5,7 @@ const path = require('path');
5
5
  const walkSync = require('walk-sync');
6
6
  const chalk = require('chalk');
7
7
  const stringUtil = require('ember-cli-string-utils');
8
- const uniq = require('ember-cli-lodash-subset').uniq;
8
+ const { uniq } = require('ember-cli-lodash-subset');
9
9
  const SilentError = require('silent-error');
10
10
  const sortPackageJson = require('sort-package-json');
11
11
 
@@ -13,6 +13,7 @@ let date = new Date();
13
13
 
14
14
  const normalizeEntityName = require('ember-cli-normalize-entity-name');
15
15
  const stringifyAndNormalize = require('../../lib/utilities/stringify-and-normalize');
16
+ const directoryForPackageName = require('../../lib/utilities/directory-for-package-name');
16
17
  const FileInfo = require('../../lib/models/file-info');
17
18
 
18
19
  const replacers = {
@@ -66,9 +67,6 @@ module.exports = {
66
67
  // 100% of addons don't need ember-cli-app-version, make it opt-in instead
67
68
  delete contents.devDependencies['ember-cli-app-version'];
68
69
 
69
- // addons should test _without_ jquery by default
70
- delete contents.devDependencies['@ember/jquery'];
71
-
72
70
  if (contents.keywords.indexOf('ember-addon') === -1) {
73
71
  contents.keywords.push('ember-addon');
74
72
  }
@@ -151,6 +149,7 @@ module.exports = {
151
149
  }
152
150
 
153
151
  return {
152
+ addonDirectory: directoryForPackageName(addonName),
154
153
  name,
155
154
  modulePrefix: name,
156
155
  namespace,
@@ -15,11 +15,12 @@ jobs:
15
15
  lint:
16
16
  name: "Lint"
17
17
  runs-on: ubuntu-latest
18
+ timeout-minutes: 10
18
19
 
19
20
  steps:
20
- - uses: actions/checkout@v2
21
+ - uses: actions/checkout@v3
21
22
  - name: Install Node
22
- uses: actions/setup-node@v2
23
+ uses: actions/setup-node@v3
23
24
  with:
24
25
  node-version: 12.x
25
26
  cache: <%= yarn ? 'yarn' : 'npm' %>
@@ -31,11 +32,12 @@ jobs:
31
32
  test:
32
33
  name: "Test"
33
34
  runs-on: ubuntu-latest
35
+ timeout-minutes: 10
34
36
 
35
37
  steps:
36
- - uses: actions/checkout@v2
38
+ - uses: actions/checkout@v3
37
39
  - name: Install Node
38
- uses: actions/setup-node@v2
40
+ uses: actions/setup-node@v3
39
41
  with:
40
42
  node-version: 12.x
41
43
  cache: <%= yarn ? 'yarn' : 'npm' %>
@@ -17,7 +17,7 @@ cache:
17
17
  <% } %>
18
18
  env:
19
19
  global:
20
- # See https://git.io/vdao3 for details.
20
+ # See https://github.com/ember-cli/ember-cli/blob/master/docs/build-concurrency.md for details.
21
21
  - JOBS=1
22
22
 
23
23
  branches:
@@ -16,7 +16,7 @@ You will need the following things properly installed on your computer.
16
16
  ## Installation
17
17
 
18
18
  * `git clone <repository-url>` this repository
19
- * `cd <%= name %>`
19
+ * `cd <%= appDirectory %>`
20
20
  * `<% if (yarn) { %>yarn<% } else { %>npm<% } %> install`
21
21
 
22
22
  ## Running / Development
@@ -11,10 +11,6 @@ module.exports = function (environment) {
11
11
  // Here you can enable experimental features on an ember canary build
12
12
  // e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
13
13
  },
14
- EXTEND_PROTOTYPES: {
15
- // Prevent Ember Data from overriding Date.parse.
16
- Date: false,
17
- },
18
14
  },
19
15
 
20
16
  APP: {
@@ -24,45 +24,44 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@ember/optional-features": "^2.0.0",
27
- "@ember/test-helpers": "^2.6.0<% if (embroider) { %>",
28
- "@embroider/compat": "^1.5.0",
29
- "@embroider/core": "^1.5.0",
30
- "@embroider/webpack": "^1.5.0<% } %>",
31
- "@glimmer/component": "^1.0.4",
32
- "@glimmer/tracking": "^1.0.4",
27
+ "@ember/test-helpers": "^2.8.1<% if (embroider) { %>",
28
+ "@embroider/compat": "^1.7.1",
29
+ "@embroider/core": "^1.7.1",
30
+ "@embroider/webpack": "^1.7.1<% } %>",
31
+ "@glimmer/component": "^1.1.2",
32
+ "@glimmer/tracking": "^1.1.2",
33
33
  "babel-eslint": "^10.1.0",
34
34
  "broccoli-asset-rev": "^3.0.0",
35
- "ember-auto-import": "^2.4.1",
35
+ "ember-auto-import": "^2.4.2",
36
36
  "ember-cli": "~<%= emberCLIVersion %>",
37
37
  "ember-cli-app-version": "^5.0.0",
38
38
  "ember-cli-babel": "^7.26.11",
39
- "ember-cli-dependency-checker": "^3.2.0",
39
+ "ember-cli-dependency-checker": "^3.3.1",
40
40
  "ember-cli-htmlbars": "^6.0.1",
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.3.0",
45
- "ember-export-application-global": "^2.0.1",
44
+ "ember-data": "~4.4.0",
46
45
  "ember-fetch": "^8.1.1",
47
46
  "ember-load-initializers": "^2.1.2",
48
47
  "ember-page-title": "^7.0.0",
49
48
  "ember-qunit": "^5.1.5",
50
49
  "ember-resolver": "^8.0.3",
51
- "ember-source": "~4.3.0",
52
- "ember-template-lint": "^4.3.0<% if (welcome) { %>",
50
+ "ember-source": "~4.5.0-beta.1",
51
+ "ember-template-lint": "^4.9.1<% if (welcome) { %>",
53
52
  "ember-welcome-page": "^6.2.0<% } %>",
54
53
  "eslint": "^7.32.0",
55
54
  "eslint-config-prettier": "^8.5.0",
56
- "eslint-plugin-ember": "^10.5.9",
55
+ "eslint-plugin-ember": "^10.6.1",
57
56
  "eslint-plugin-node": "^11.1.0",
58
57
  "eslint-plugin-prettier": "^4.0.0",
59
58
  "eslint-plugin-qunit": "^7.2.0",
60
59
  "loader.js": "^4.7.0",
61
60
  "npm-run-all": "^4.1.5",
62
- "prettier": "^2.6.1",
63
- "qunit": "^2.18.0",
61
+ "prettier": "^2.6.2",
62
+ "qunit": "^2.19.1",
64
63
  "qunit-dom": "^2.0.0",
65
- "webpack": "^5.70.0"
64
+ "webpack": "^5.72.1"
66
65
  },
67
66
  "engines": {
68
67
  "node": "12.* || 14.* || >= 16"
@@ -3,6 +3,7 @@
3
3
  const stringUtil = require('ember-cli-string-utils');
4
4
  const chalk = require('chalk');
5
5
  const { isExperimentEnabled } = require('../../lib/experiments');
6
+ const directoryForPackageName = require('../../lib/utilities/directory-for-package-name');
6
7
 
7
8
  module.exports = {
8
9
  description: 'The default blueprint for ember-cli projects.',
@@ -43,6 +44,7 @@ module.exports = {
43
44
  }
44
45
 
45
46
  return {
47
+ appDirectory: directoryForPackageName(name),
46
48
  name,
47
49
  modulePrefix: name,
48
50
  namespace,